All of lore.kernel.org
 help / color / mirror / Atom feed
* Newbie question: Error creating domain
@ 2004-07-18 15:12 Fredrik Dahlberg
  2004-07-18 17:38 ` Ian Pratt
  0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-18 15:12 UTC (permalink / raw)
  To: xen-devel

When trying to create a new domain I get the following error:

root@chekov:~# xm create vmid=1
Using config file /etc/xen/xmdefaults
Error: Error creating domain: [Failure instance:
Traceback:xen.xend.XendDomainInfo.VmError, vbd: Segments not
foundXXXXXX:uname=phy:hda3

If I do a dry-run:
root@chekov:~# xm create -n vmid=1
Using config file xmdefaults
(vm
    (name 'This is VM 1')
    (memory '64')
    (cpu '1')
    (image
        (linux
            (kernel /boot/vmlinuz-2.4.26-xenU)
            (ip :1.2.3.4::::eth0:dhcp)
            (root '/dev/sda1 ro')
        )
    )
    (device (vbd (uname phy:hda3) (dev sda1) (mode w)))
    (device (vbd (uname phy:hda4) (dev sda2) (mode w)))
    (device (vif (mac aa:0:0:2e:29:6c)))
)


I have created a Slackware filesystem pretty much the same way I used to do
under UML, the most important steps are shown below:

# I have created 2 partitions for my guest os, hda3 and hda4
root@chekov:~# fdisk -l /dev/hda
Disk /dev/hda: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         697     5598621   83  Linux
/dev/hda2             698         742      361462+  82  Linux swap
/dev/hda3             743         865      987997+  83  Linux
/dev/hda4             866         882      136552+  82  Linux swap

# I created filesystems on both of them:
root@chekov:~# mkfs -t ext3 /dev/hda3
root@chekov:~# mkswap /dev/hda4

# I mounted my new guest root filesystem:
root@chekov:~# mount /dev/hda3 /build/root

# I edited all the tagfiles so they only had ADD or SKP selections and
installed my choice of packages:
root@chekov:/build/slackware# /sbin/installpkg -root /build/root a/*.tgz
ap/*.tgz d/*.tgz l/*.tgz n/*.tgz

# I created a new fstab:
/dev/sda1        /                ext3        defaults         1   1
/dev/sda2        swap             swap        defaults         0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

# And finally, I unmounted /dev/hda3 before trying to create the new domain

Any help is appreciated,
Fredrik Dahlberg




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-07-19 18:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-18 15:12 Newbie question: Error creating domain Fredrik Dahlberg
2004-07-18 17:38 ` Ian Pratt
2004-07-18 22:47   ` Fredrik Dahlberg
2004-07-19  9:45     ` Ian Pratt
2004-07-19 15:08       ` Fredrik Dahlberg
2004-07-19 15:32         ` Ian Pratt
2004-07-19 18:10           ` Fredrik Dahlberg
2004-07-19 18:23             ` Ian Pratt
2004-07-19 18:55               ` Fredrik Dahlberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.