Hello, I am newbe to Xen and I have problems with creation of domU. I have installed Xen and created dom0 following the guidelines at: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/readmes-2.0/user/user.html#s:xend and http://www.vislab.uq.edu.au/research/accessgrid/xenag/configuring_xen.html I am tring to create domU (being booted into dom0). I have created the file /vm1disk and populated it with the relevant directories of installed Linux (the same Linux which I have on dom0). I have started the xend daemon and it has started mormally (I have checked the /var/log/xend.log). I have also connected the loop1 loop device to the vm1disk file: "losetup /dev/loop0 /path/to/file". Then I have created the following conf file (/etc/xen/vm1conf): ==============begin======================kernel = "/boot/vmlinuz-2.6.11-xenU" memory = 128 name = "alpha" nics=1 #disk = [ ''phy:sda5,sda1,w'' ] #disk = [ ''file:/vm1disk, sda1,w'' ] disk = [ ''phy:loop1, sda1 ,w'' ] root = "/dev/sda1 ro" extra = "3" ===============end===================== When I am issuing the following command: "xm create /etc/xen/vm1conf -c", it dies with: ''Using config file "/etc/xen/vm1conf". Error: Error creating domain: vbd: Device not found: sda1'' I am getting the same error when I use "disk = [ ''file:/vm1disk, sda1,w'' ]" So, can anyone explain me what is the problem? Thank you in advance, Arsen. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Arsen Hayrapetyan schrieb:> I am tring to create domU (being booted into dom0). > I have created the file /vm1disk and populated it with the relevant > directories of installed Linux (the same Linux which I have on dom0). > I have started the xend daemon and it has started mormally (I have > checked the /var/log/xend.log). > I have also connected the loop1 loop device to the vm1disk file: > "losetup /dev/loop0 /path/to/file". > > Then I have created the following conf file (/etc/xen/vm1conf): > > ==============begin======================> kernel = "/boot/vmlinuz-2.6.11-xenU" > memory = 128 > name = "alpha" > nics=1 > > #disk = [ ''phy:sda5,sda1,w'' ] > #disk = [ ''file:/vm1disk, sda1,w'' ] > disk = [ ''phy:loop1, sda1 ,w'' ] > > root = "/dev/sda1 ro" > extra = "3" > ===============end=====================> > When I am issuing the following command: > "xm create /etc/xen/vm1conf -c", > it dies with: > ''Using config file "/etc/xen/vm1conf". > Error: Error creating domain: vbd: Device not found: sda1'' > > I am getting the same error when I use > "disk = [ ''file:/vm1disk, sda1,w'' ]" >Arsen, you don''t have to mount or losetup anything. In fact it will cause Xen to not start the domain. Your "file" line looks okay, except you should eliminate the blank before sda1 (syntax problem?). Also check that /etc/fstab in your guest-image specifies sda1 as the root device. Bye, Andrej _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Quoting Arsen Hayrapetyan <ahairape@mail.cern.ch>:> Error: Error creating domain: vbd: Device not found: sda1''is there a /dev/sda1 in Dom0? i know that the ''sda1'' name will be the virtual device in DomU and not in Dom0; but the Xen hypervisor can''t use the ''sda1'' name, it uses major:minor device numbers, and the scripts use Dom0 device files to translate from name to number. you can: 1) use hda1 (assuming there''s /dev/hda1 in Dom0) 2) put major:minor numbers in the config 3) create a /dev/sda1 file in Dom0, even if you don''t have a SCSI card ------ Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Andrej, On Wed, 19 Jul 2006, Andrej Radonic wrote:> Arsen Hayrapetyan schrieb: > > I am tring to create domU (being booted into dom0). I have created the file > > /vm1disk and populated it with the relevant directories of installed Linux > > (the same Linux which I have on dom0). > > I have started the xend daemon and it has started mormally (I have checked > > the /var/log/xend.log). > > I have also connected the loop1 loop device to the vm1disk file: > > "losetup /dev/loop0 /path/to/file". > > > > Then I have created the following conf file (/etc/xen/vm1conf): > > > > ==============begin======================> > kernel = "/boot/vmlinuz-2.6.11-xenU" > > memory = 128 > > name = "alpha" > > nics=1 > > > > #disk = [ ''phy:sda5,sda1,w'' ] > > #disk = [ ''file:/vm1disk, sda1,w'' ] > > disk = [ ''phy:loop1, sda1 ,w'' ] > > > > root = "/dev/sda1 ro" > > extra = "3" > > ===============end=====================> > > > When I am issuing the following command: > > "xm create /etc/xen/vm1conf -c", > > it dies with: > > ''Using config file "/etc/xen/vm1conf". > > Error: Error creating domain: vbd: Device not found: sda1'' > > > > I am getting the same error when I use "disk = [ ''file:/vm1disk, sda1,w'' ]" > > > > Arsen, > > you don''t have to mount or losetup anything. In fact it will cause Xen to not > start the domain.OK, I''ve detached it.> Your "file" line looks okay, except you should eliminate the blank before sda1 > (syntax problem?). Also check that /etc/fstab in your guest-image specifies > sda1 as the root device. >After removing the blank which had crept in :) it started to work - at least it opened remote console... Thank you and all who answered for the help. Arsen. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users