Alexander Wendland
2010-Dec-06 15:32 UTC
[Xen-users] HVM-guest doesn''t boot from virtual disk
Hello, I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an image-file. The installation of the Linux-system (booting from cd, setup,...) was finished sucessful and the maschine will be restarted. The rebooted system doesn''t boot from the virtual harddisk and is booting from "cd" again. After disabling cd-booting via boot="c" and restart the maschine says: Booting from Harddisk... Boot from Harddisk failed: could not read the boot disk No bootable device found. I''ve tried different distributions, also installing in an image-file with the same result. There are data on the disk. I cann see the partitions and can mount it (extract via kapartx). Booting the vm from cd is working. The rescue-system can mount the partitionsand I cann work with it. Booting from "harddisk" will be failed. What is wrong? Who can help? Regards, Alex _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2010-Dec-07 05:44 UTC
Re: [Xen-users] HVM-guest doesn''t boot from virtual disk
On Mon, Dec 6, 2010 at 10:32 AM, Alexander Wendland <nospam@phixom.de> wrote:> Hello, > > I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: > > disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] > > "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an image-file. > > > The installation of the Linux-system (booting from cd, setup,...) was > finished sucessful and the maschine will be restarted. > > The rebooted system doesn''t boot from the virtual harddisk and is booting > from "cd" again. > > > > After disabling cd-booting via boot="c" and restart the maschine says: > > Booting from Harddisk... > Boot from Harddisk failed: could not read the boot disk > > No bootable device found. > > > > I''ve tried different distributions, also installing in an image-file with > the same result. > > There are data on the disk. I cann see the partitions and can mount it > (extract via kapartx). > > Booting the vm from cd is working. The rescue-system can mount the > partitionsand I cann work with it. > Booting from "harddisk" will be failed. > > What is wrong? Who can help? >Could you post your guest config file to the list? Thanks, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexander Wendland
2010-Dec-07 12:31 UTC
Re: [Xen-users] HVM-guest doesn''t boot from virtual disk
On Tue, 7 Dec 2010 00:44:38 -0500, Todd Deshane wrote:> On Mon, Dec 6, 2010 at 10:32 AM, Alexander Wendland > <nospam@phixom.de> wrote: >> Hello, >> >> I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: >> >> disk = >> [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] >> >> "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an >> image-file. >> >> >> The installation of the Linux-system (booting from cd, setup,...) >> was >> finished sucessful and the maschine will be restarted. >> >> The rebooted system doesn''t boot from the virtual harddisk and is >> booting >> from "cd" again. >> >> >> >> After disabling cd-booting via boot="c" and restart the maschine >> says: >> >> Booting from Harddisk... >> Boot from Harddisk failed: could not read the boot disk >> >> No bootable device found. >> >> >> >> I''ve tried different distributions, also installing in an image-file >> with >> the same result. >> >> There are data on the disk. I cann see the partitions and can mount >> it >> (extract via kapartx). >> >> Booting the vm from cd is working. The rescue-system can mount the >> partitionsand I cann work with it. >> Booting from "harddisk" will be failed. >> >> What is wrong? Who can help? >> > > Could you post your guest config file to the list? > > Thanks, > ToddHello, here is it: kernel = "hvmloader" builder=''hvm'' memory = 256 name = "testhvm" vcpus=1 pae=0 acpi=1 apic=1 vif = [''mac=00:16:33:AA:D2:9B, bridge=extern'',''mac=00:16:33:AA:D2:7B, bridge=dmz'',''mac=00:16:33:AA:D2:8C, bridge=intern''] disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' device_model = ''qemu-dm'' boot="c" sdl=0 opengl=1 vnc=1 vnclisten="127.0.0.1" vncpasswd='''' stdvga=0 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2010-Dec-07 17:19 UTC
Re: [Xen-users] HVM-guest doesn''t boot from virtual disk
On Tue, Dec 7, 2010 at 7:31 AM, Alexander Wendland <nospam@phixom.de> wrote:> On Tue, 7 Dec 2010 00:44:38 -0500, Todd Deshane wrote: >> >> On Mon, Dec 6, 2010 at 10:32 AM, Alexander Wendland <nospam@phixom.de> >> wrote: >>> >>> Hello, >>> >>> I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: >>> >>> disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' >>> ] >>> >>> "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an >>> image-file. >>> >>> >>> The installation of the Linux-system (booting from cd, setup,...) was >>> finished sucessful and the maschine will be restarted. >>> >>> The rebooted system doesn''t boot from the virtual harddisk and is booting >>> from "cd" again. >>> >>> >>> >>> After disabling cd-booting via boot="c" and restart the maschine says: >>> >>> Booting from Harddisk... >>> Boot from Harddisk failed: could not read the boot disk >>> >>> No bootable device found. >>> >>> >>> >>> I''ve tried different distributions, also installing in an image-file with >>> the same result. >>> >>> There are data on the disk. I cann see the partitions and can mount it >>> (extract via kapartx). >>> >>> Booting the vm from cd is working. The rescue-system can mount the >>> partitionsand I cann work with it. >>> Booting from "harddisk" will be failed. >>> >>> What is wrong? Who can help? >>> >> >> Could you post your guest config file to the list? >> >> Thanks, >> Todd > > Hello, > > here is it: > > kernel = "hvmloader" > builder=''hvm'' > memory = 256 > name = "testhvm" > vcpus=1 > pae=0 > acpi=1 > apic=1 > vif = [''mac=00:16:33:AA:D2:9B, bridge=extern'',''mac=00:16:33:AA:D2:7B, > bridge=dmz'',''mac=00:16:33:AA:D2:8C, bridge=intern''] > disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ]Try changing this disk line to: disk = [''phy:/dev/vg_virtual/test,hda,w'',''file:/root/foo.iso,hdb:cdrom,r'' ] The boot="c" refers to MS-DOS style disk naming. So, disk order may in fact matter. Hope that helps, Thanks, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
nospam@phixom.de
2010-Dec-09 18:15 UTC
Re: [Xen-users] HVM-guest doesn''t boot from virtual disk
Am 07.12.2010 18:19, schrieb Todd Deshane:> On Tue, Dec 7, 2010 at 7:31 AM, Alexander Wendland <nospam@phixom.de> wrote: >> On Tue, 7 Dec 2010 00:44:38 -0500, Todd Deshane wrote: >>> >>> On Mon, Dec 6, 2010 at 10:32 AM, Alexander Wendland <nospam@phixom.de> >>> wrote: >>>> >>>> Hello, >>>> >>>> I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: >>>> >>>> disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' >>>> ] >>>> >>>> "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an >>>> image-file. >>>> >>>> >>>> The installation of the Linux-system (booting from cd, setup,...) was >>>> finished sucessful and the maschine will be restarted. >>>> >>>> The rebooted system doesn''t boot from the virtual harddisk and is booting >>>> from "cd" again. >>>> >>>> >>>> >>>> After disabling cd-booting via boot="c" and restart the maschine says: >>>> >>>> Booting from Harddisk... >>>> Boot from Harddisk failed: could not read the boot disk >>>> >>>> No bootable device found. >>>> >>>> >>>> >>>> I''ve tried different distributions, also installing in an image-file with >>>> the same result. >>>> >>>> There are data on the disk. I cann see the partitions and can mount it >>>> (extract via kapartx). >>>> >>>> Booting the vm from cd is working. The rescue-system can mount the >>>> partitionsand I cann work with it. >>>> Booting from "harddisk" will be failed. >>>> >>>> What is wrong? Who can help? >>>> >>> >>> Could you post your guest config file to the list? >>> >>> Thanks, >>> Todd >> >> Hello, >> >> here is it: >> >> kernel = "hvmloader" >> builder=''hvm'' >> memory = 256 >> name = "testhvm" >> vcpus=1 >> pae=0 >> acpi=1 >> apic=1 >> vif = [''mac=00:16:33:AA:D2:9B, bridge=extern'',''mac=00:16:33:AA:D2:7B, >> bridge=dmz'',''mac=00:16:33:AA:D2:8C, bridge=intern''] >> disk = [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] > > Try changing this disk line to: > > disk = [''phy:/dev/vg_virtual/test,hda,w'',''file:/root/foo.iso,hdb:cdrom,r'' ] > > The boot="c" refers to MS-DOS style disk naming. So, disk order may in > fact matter. > > Hope that helps, > > Thanks, > Todd > >Hallo Todd, thank you for your input. This was the solution. Regards, Alex _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Erwan RENIER
2010-Dec-17 18:09 UTC
Re: [Xen-users] HVM-guest doesn''t boot from virtual disk
Le 07/12/2010 13:31, Alexander Wendland a écrit :> > On Tue, 7 Dec 2010 00:44:38 -0500, Todd Deshane wrote: >> On Mon, Dec 6, 2010 at 10:32 AM, Alexander Wendland >> <nospam@phixom.de> wrote: >>> Hello, >>> >>> I''ve installed a HVM-guest on xen 4.0.1 with following disk-config: >>> >>> disk = >>> [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] >>> >>> "/dev/vg_virtual/test" is a logical volum (LVM2), the iso is an >>> image-file. >>> >>> >>> The installation of the Linux-system (booting from cd, setup,...) was >>> finished sucessful and the maschine will be restarted. >>> >>> The rebooted system doesn''t boot from the virtual harddisk and is >>> booting >>> from "cd" again. >>> >>> >>> >>> After disabling cd-booting via boot="c" and restart the maschine says: >>> >>> Booting from Harddisk... >>> Boot from Harddisk failed: could not read the boot disk >>> >>> No bootable device found. >>> >>> >>> >>> I''ve tried different distributions, also installing in an image-file >>> with >>> the same result. >>> >>> There are data on the disk. I cann see the partitions and can mount it >>> (extract via kapartx). >>> >>> Booting the vm from cd is working. The rescue-system can mount the >>> partitionsand I cann work with it. >>> Booting from "harddisk" will be failed. >>> >>> What is wrong? Who can help? >>> >> >> Could you post your guest config file to the list? >> >> Thanks, >> Todd > > Hello, > > here is it: > > kernel = "hvmloader" > builder=''hvm'' > memory = 256 > name = "testhvm" > vcpus=1 > pae=0 > acpi=1 > apic=1 > vif = [''mac=00:16:33:AA:D2:9B, bridge=extern'',''mac=00:16:33:AA:D2:7B, > bridge=dmz'',''mac=00:16:33:AA:D2:8C, bridge=intern''] > disk = > [''phy:/dev/vg_virtual/test,sda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] > > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > > device_model = ''qemu-dm'' > > boot="c" > sdl=0 > opengl=1 > vnc=1 > vnclisten="127.0.0.1" > vncpasswd='''' > stdvga=0 > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >can you try with that ? disk = [''phy:/dev/vg_virtual/test,xvda,w'',''file:/root/foo.iso,hda:cdrom,r'' ] _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users