Jan Marquardt
2007-Nov-27 09:11 UTC
[Xen-users] Problem with export of physical devices to domU
Hi, I am trying to get a domU working with pyhsical devices exported from dom0, but the boot of domU always fails with the following message in VNC: [..] Booting from Hard Disk... Boot from Hard Disk failed: could not read the boot disk FATAL: No bootable device Xen 3.1.0 was installed from source and is running under Debian Etch. Kernel Version 2.6.18. On the device, which I want to export is also a Debian Etch installed. The config of the domU looks like the following: import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 1024 name = "ExampleHVMDomain" vif = [ ''type=ioemu, bridge=xenbr0'' ] disk = [ ''phy:/dev/sdb1,ioemu:sda1,w'' ] device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' boot="c" sdl=0 vnc=1 vncpasswd='''' stdvga=0 serial=''pty'' I already tried a lot of different values for disk, but each try ends with the same message. Example tries: disk = [ ''phy:/dev/sdb1,sda1,w'' ] disk = [ ''phy:/dev/sdb,ioemu:sda,w'' ] disk = [ ''phy:/dev/sdb,ioemu:sda,w'', ''phy:/dev/sdb1,ioemu:sda1,w'' ] disk = [ ''phy:sdb1,ioemu:sda1,w'' ] I think I just made a beginner''s mistake and I hope someone is able to point me in the right direction. If you need any further information, please let me know. Thanks in advance. Jan Marquardt -- Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95 E-Mail: support@artfiles.de | Web: http://www.artfiles.de Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gémes Géza
2007-Nov-27 09:20 UTC
Re: [Xen-users] Problem with export of physical devices to domU
Jan Marquardt írta:> Hi, > > I am trying to get a domU working with pyhsical devices exported from > dom0, but the boot of domU always fails with the following message in > VNC: > > [..] > Booting from Hard Disk... > Boot from Hard Disk failed: could not read the boot disk > FATAL: No bootable device > > Xen 3.1.0 was installed from source and is running under Debian Etch. > Kernel Version 2.6.18. On the device, which I want to export is also a > Debian Etch installed. > The config of the domU looks like the following: > > import os, re > arch = os.uname()[4] > if re.search(''64'', arch): > arch_libdir = ''lib64'' > else: > arch_libdir = ''lib'' > kernel = "/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > memory = 1024 > name = "ExampleHVMDomain" > vif = [ ''type=ioemu, bridge=xenbr0'' ] > disk = [ ''phy:/dev/sdb1,ioemu:sda1,w'' ] > device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' > boot="c" > sdl=0 > vnc=1 > vncpasswd='''' > stdvga=0 > serial=''pty'' > > I already tried a lot of different values for disk, but each try ends > with the same message. Example tries: > > disk = [ ''phy:/dev/sdb1,sda1,w'' ] > disk = [ ''phy:/dev/sdb,ioemu:sda,w'' ] > disk = [ ''phy:/dev/sdb,ioemu:sda,w'', ''phy:/dev/sdb1,ioemu:sda1,w'' ] > disk = [ ''phy:sdb1,ioemu:sda1,w'' ] > > I think I just made a beginner''s mistake and I hope someone is able to > point me in the right direction. If you need any further information, > please let me know. > > Thanks in advance. > > Jan Marquardt >I supose you installed a paravirtualized guest in that case you do need to specify kernel=/path/to/your/DomU/kernel/in/the/Dom0/filesystem and builder=linux If you installed a hvm domain, then the install obviously failed, and you need to reinstall it. Good Luck Geza Gemes _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2007-Nov-27 09:48 UTC
Re: [Xen-users] Problem with export of physical devices to domU
Jan Marquardt wrote:> Hi, > > I am trying to get a domU working with pyhsical devices exported from > dom0, but the boot of domU always fails with the following message in > VNC: > > [..] > Booting from Hard Disk... > Boot from Hard Disk failed: could not read the boot disk > FATAL: No bootable device > > Xen 3.1.0 was installed from source and is running under Debian Etch. > Kernel Version 2.6.18. On the device, which I want to export is also a > Debian Etch installed. > The config of the domU looks like the following: > > import os, re > arch = os.uname()[4] > if re.search(''64'', arch): > arch_libdir = ''lib64'' > else: > arch_libdir = ''lib'' > kernel = "/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > memory = 1024 > name = "ExampleHVMDomain" > vif = [ ''type=ioemu, bridge=xenbr0'' ] > disk = [ ''phy:/dev/sdb1,ioemu:sda1,w'' ]I suspect scsi emulation is actually supported. You should have to use IDE emulation. disk = [ ''phy:/dev/sdb1,ioemu:hda1,w'' ] --Sadique> device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' > boot="c" > sdl=0 > vnc=1 > vncpasswd='''' > stdvga=0 > serial=''pty'' > > I already tried a lot of different values for disk, but each try ends > with the same message. Example tries: > > disk = [ ''phy:/dev/sdb1,sda1,w'' ] > disk = [ ''phy:/dev/sdb,ioemu:sda,w'' ] > disk = [ ''phy:/dev/sdb,ioemu:sda,w'', ''phy:/dev/sdb1,ioemu:sda1,w'' ] > disk = [ ''phy:sdb1,ioemu:sda1,w'' ] > > I think I just made a beginner''s mistake and I hope someone is able to > point me in the right direction. If you need any further information, > please let me know. > > Thanks in advance. > > Jan Marquardt >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jan Marquardt
2007-Nov-27 10:07 UTC
Re: [Xen-users] Problem with export of physical devices to domU
Thanks for your fast replies. Sorry that I forgot to mention that we want use hvm. If I switch to paravirtualization, the domU boots without any problem with the modified kernel. Changing the disk variable to the following changes nothing. disk = [ ''phy:/dev/sdb1,ioemu:hda1,w'' ] Regards, Jan Marquardt -- Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95 E-Mail: support@artfiles.de | Web: http://www.artfiles.de Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre Erenoglu
2007-Nov-27 10:13 UTC
Re: [Xen-users] Problem with export of physical devices to domU
If I''m not wrong, exporting a device with ioemu makes it behave like a hard disk. Therefore, boot sector and partitions must exist inside this /dev/sdb1 (like a complete disk image) in order for you to boot. Emre On Nov 27, 2007 11:07 AM, Jan Marquardt <jm@artfiles.de> wrote:> Thanks for your fast replies. > > Sorry that I forgot to mention that we want use hvm. If I switch to > paravirtualization, the domU boots without any problem with the modified > kernel. > > Changing the disk variable to the following changes nothing. > disk = [ ''phy:/dev/sdb1,ioemu:hda1,w'' ] > > Regards, > > Jan Marquardt > > -- > Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg > Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95 > E-Mail: support@artfiles.de | Web: http://www.artfiles.de > Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478 > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Emre Erenoglu erenoglu@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jan Marquardt
2007-Nov-27 10:35 UTC
Re: [Xen-users] Problem with export of physical devices to domU
Emre Erenoglu wrote:> If I''m not wrong, exporting a device with ioemu makes it behave like a hard > disk. Therefore, boot sector and partitions must exist inside this /dev/sdb1 > (like a complete disk image) in order for you to boot. > > EmreIt is possible to boot the hard disk, which should be booted by the domU, as standalone. Though everything necessary should be available I think. Regards, Jan -- Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95 E-Mail: support@artfiles.de | Web: http://www.artfiles.de Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jan Marquardt
2007-Nov-27 13:59 UTC
Re: [Xen-users] Problem with export of physical devices to domU
I just solved the issue. The following disk configuration works: disk = [ ''phy:/dev/sdb,ioemu:hda,w'' ] Thanks a lot for all your hints. Regards, Jan -- Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95 E-Mail: support@artfiles.de | Web: http://www.artfiles.de Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users