[Xen-users] Problems creating additional domains ...

Jürgen Wohltran
Tue, 05 Jul 2005 13:02:30 -0000

Hi,

I''m a XEN-rookie and I have some problems with creating additional
domains. I read lots of tutorials, but I couldn''t get any other domain
than dom-0 (surprise ;) ) to run ...

invader:/etc/xen# xm create -c xmdebian1
Using config file "xmdebian1".
Error: Error creating domain: vbd: Segment phy:hda5 is in writable use

My approach:

1.) downloaded the XEN 2.0.6 binary
2.) installed required packages (iproute, libcurl-dev, twisted,
bridge-utils) via apt-get (on Debian 3.1 base-system)
3.) installed the XEN binary
4.) edited the GRUB Config-file (menu.lst)

### menu.lst ###
title           Debian GNU/Linux, kernel 2.4.27-2-386
root            (hd0,0)
kernel          /vmlinuz-2.4.27-2-386 root=/dev/hda3 ro
initrd          /initrd.img-2.4.27-2-386
savedefault
boot

title           Debian GNU/Linux, kernel 2.4.27-2-386 (recovery mode)
root            (hd0,0)
kernel          /vmlinuz-2.4.27-2-386 root=/dev/hda3 ro single
initrd          /initrd.img-2.4.27-2-386
savedefault
boot

title XEN 2.0 / XenLinux 2.6.11
root (hd0,0)
kernel /xen.gz dom0_mem=131072
module /vmlinuz-2.6.11-xen0 root=/dev/hda3 ro console=tty0

5.) deactivated TLS (by renaming /lib/tls)
6.) booted the XEN kernel
7.) installed Debian guest-OS via debootstrap on /dev/hda5
8.) created domain-configuration-file

### xmdebian1 ###
kernel = "/boot/vmlinuz-2.6.11.10-xenU"
memory = 128
name = "xmdebian1"
disk = [''phy:hda5,hda1,w'']
root = "/dev/hda1 ro"

# Network settings
hostname = "Isengart"
nics=1
#vif = [''mac=aa:00:00:00:00:02, bridge=xen-br0'']
dhcp="off"
ip="192.168.1.10"
netmask="255.255.255.0"
gateway="192.168.1.1"
extra = "2"

I hope it''s a beginner''s mistake and not a big issue, would be
nice if
there were any suggestions ... ;)

Jürgen

P.S.: fstab and mount return the following information

-------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>
<dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda3       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda1       /boot           ext3    defaults        0       2
/dev/hda2       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
--------------------------------------------------------------------------
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hda1 on /boot type ext3 (rw)
/dev/hda5 on /mnt/vserver1 type ext3 (rw)
--------------------------------------------------------------------------