Jürgen Wohltran
2005-Jul-05 13:02 UTC
[Xen-users] Problems creating additional domains ...
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) -------------------------------------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernst Bachmann
2005-Jul-05 13:06 UTC
Re: [Xen-users] Problems creating additional domains ...
On Tuesday 05 July 2005 15:02, Jürgen Wohltran wrote:> invader:/etc/xen# xm create -c xmdebian1 > Using config file "xmdebian1". > Error: Error creating domain: vbd: Segment phy:hda5 is in writable use[snip, fstab:]> /dev/hda5 on /mnt/vserver1 type ext3 (rw)the entire blockdevice hda5 is exported to your xenU guest, so to prevent corruption from mounting it twice, it needs exclusive access to that blockdevice before starting the xenU kernel. just "umount /mnt/vserver1" and xm create again. HTH /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sascha Retzki
2005-Jul-05 13:10 UTC
Re: [Xen-users] Problems creating additional domains ...
On Tue, Jul 05, 2005 at 03:02:30PM +0200, Jürgen Wohltran wrote:> invader:/etc/xen# xm create -c xmdebian1 > Using config file "xmdebian1". > Error: Error creating domain: vbd: Segment phy:hda5 is in writable useI assume hda5 is mounted RW in the dom0? Then xenUs should not write to it too, so the tool obviously notices that and stops you from a deseaster.> /dev/hda5 on /mnt/vserver1 type ext3 (rw)you could probably make it RO in xen0, or not mount it at all. If you want to write something from dom0 to a domU, you can either use another partition (note that this may be a file in reality, but the xenUs can only see it as a block device (if you config it all that way)) or you can wait for XenFS. Mark will probably announce when xenfs is ready. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marcus Brown
2005-Jul-05 13:58 UTC
Re: Spam:*, [Xen-users] Problems creating additional domains ...
Jürgen Wohltran wrote:>invader:/etc/xen# xm create -c xmdebian1 >Using config file "xmdebian1". >Error: Error creating domain: vbd: Segment phy:hda5 is in writable use > > >Try unmounting /dev/hda5 before starting xmdebian1.>/dev/hda5 on /mnt/vserver1 type ext3 (rw) > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jürgen Wohltran
2005-Jul-06 18:54 UTC
Re: [Xen-users] Problems creating additional domains ...
On Tue, Jul 05, 2005 at 03:10:18PM +0200, Sascha Retzki wrote:>I assume hda5 is mounted RW in the dom0? Then xenUs should not write >to it too, so the tool obviously notices that and stops you from a >deseaster.>> /dev/hda5 on /mnt/vserver1 type ext3 (rw)>you could probably make it RO in xen0, or not mount it at all. If you >want to write something from dom0 to a domU, you can either use >another partition (note that this may be a file in reality, but the >xenUs can only see it as a block device (if you config it all that >way)) or you can wait for XenFS. Mark will probably announce when >xenfs is ready.Oh ... it work''s - what stupid mistake of mine. Thank you all for your suggestions ... ;) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users