[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Newbie question: Error creating domain

  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
  • From: "Fredrik Dahlberg" <fdaa@xxxxxxxxxx>
  • Date: Sun, 18 Jul 2004 17:12:24 +0200
  • Delivery-date: Sun, 18 Jul 2004 16:14:09 +0100
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>

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

If I do a dry-run:
root@chekov:~# xm create -n vmid=1
Using config file xmdefaults
    (name 'This is VM 1')
    (memory '64')
    (cpu '1')
            (kernel /boot/vmlinuz-2.4.26-xenU)
            (ip :
            (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.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.