> Date: Thu, 10 Nov 2011 13:30:34 -0500 > From: David Della Vecchia > Subject: Re: [Xen-users] ubuntu and debian guests cannot find or mount > root partition > To: Mike Viau > Cc: xen-users@lists.xensource.com > Message-ID: > <CAEGWhjGRkn619ZR9eQv77_=qGVg3dwKzuHem7Rzs8OehLBgOVg@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Thu, Nov 10, 2011 at 1:15 PM, Mike Viauwrote: > > > On Thu, 10 Nov 2011 15:42:03 +0000 <adamgold> wrote: > > > > I''ve recently installed xen 4.1 but am having problems getting the guests > > up and running (I''m using ubuntu 11.10 for dom0 and have tried the same > > distro plus squeeze for guests). It seems they can''t find the root > > partition. I''ve left most of the defaults in xen-tools.conf, just changing > > the name of the volume group (I''m testing an lvm installation) and used the > > debootstrap creation process. I went through the following steps: > > > > 1) xen-create-image --hostname vm1 --role=udev --ip=[ ] > > 2) xm new /etc/xen/vm1.cfg > > 3) xm start vm1 > > > > After I started the guest and connected to the console it dropped to a > > busy box shell. Here''s the last part of the output prior to the bb shell > > (I can provide more): > > > > ================================================> > [ 0.277228] EFI Variables Facility v0.08 2004-May-17 > > [ 0.277490] TCP cubic registered > > [ 0.277613] NET: Registered protocol family 10 > > [ 0.278147] NET: Registered protocol family 17 > > [ 0.278168] Registering the dns_resolver key type > > [ 0.278282] registered taskstats version 1 > > [ 0.288490] Magic number: 1:252:3141 > > [ 0.288517] /build/buildd/linux-3.0.0/drivers/rtc/hctosys.c: unable to > > open rtc device (rtc0) > > [ 0.288526] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found > > [ 0.288531] EDD information not available. > > [ 0.288996] Freeing unused kernel memory: 984k freed > > [ 0.289247] Write protecting the kernel read-only data: 10240k > > [ 0.293653] Freeing unused kernel memory: 20k freed > > [ 0.294225] Freeing unused kernel memory: 1400k freed > > Loading, please wait... > > [ 0.339223] udevd[78]: starting version 173 > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... > > done. > > Gave up waiting for root device. Common problems: > > - Boot args (cat /proc/cmdline) > > - Check rootdelay= (did the system wait long enough?) > > - Check root= (did the system wait for the right device?) > > - Missing modules (cat /proc/modules; ls /dev) > > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > > ================================================> > > > Following the suggestions in the shell: > > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > > partition (or should be at least) > > - ''cat /proc/modules'', no output > > - ls /dev - no sign of xvda or any of its partitions > > > > Finally, here''s the config file: > > > > ================================================> > kernel = ''/boot/vmlinuz-3.0.0-12-generic'' > > ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' > > vcpus = ''1'' > > memory = ''256'' > > root = ''/dev/xvda2 ro'' > > disk = [ > > ''phy:/dev/vgxen1/vm1-disk,xvda2,w'', > > ''phy:/dev/vgxen1/vm1-swap,xvda1,w'', > > ] > > name = ''vm1'' > > vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > ================================================> > > > Any advice would be much appreciated. > > > > - Can you try using the sda1/2 instead of xvda1/2 for the disk and swap > > device? > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > Does the initrd have the xenblk drivers included? I know when i try to spin > up Ubuntu 11.04 domU''s on my debian dom0 i have to include the > xenbus_probe_frontend module in the /etc/initramfs-tools/modules file so it > gets included in the initrd on generation. I use pv-grub for my domU''s so > it all exists on the domU but its the same principle. > > -DDVThanks to you both for the feedback. I tried changing xvda to sda but root still failed to mount. Regarding the xenblk drivers, it looks like they are loaded (correct me if I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the following: xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 xen_evtchn 13172 2 - Live 0xffffffffa00c6000 xenfs 18311 1 - Live 0xffffffffa011c000 I also loaded xen-gntdev but still no luck. Next steps :) ? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Adam Gold
2011-Nov-10 21:05 UTC
[Xen-users] RE: ubuntu and debian guests cannot find or mount root partition
From: adamgold@hotmail.com To: xen-users@lists.xensource.com Subject: RE: Xen-users Digest, Vol 81, Issue 21 Date: Thu, 10 Nov 2011 20:53:58 +0000> Date: Thu, 10 Nov 2011 13:30:34 -0500 > From: David Della Vecchia > Subject: Re: [Xen-users] ubuntu and debian guests cannot find or mount > root partition > To: Mike Viau > Cc: xen-users@lists.xensource.com > Message-ID: > <CAEGWhjGRkn619ZR9eQv77_=qGVg3dwKzuHem7Rzs8OehLBgOVg@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Thu, Nov 10, 2011 at 1:15 PM, Mike Viauwrote: > > > On Thu, 10 Nov 2011 15:42:03 +0000 <adamgold> wrote: > > > > I''ve recently installed xen 4.1 but am having problems getting the guests > > up and running (I''m using ubuntu 11.10 for dom0 and have tried the same > > distro plus squeeze for guests). It seems they can''t find the root > > partition. I''ve left most of the defaults in xen-tools.conf, just changing > > the name of the volume group (I''m testing an lvm installation) and used the > > debootstrap creation process. I went through the following steps: > > > > 1) xen-create-image --hostname vm1 --role=udev --ip=[ ] > > 2) xm new /etc/xen/vm1.cfg > > 3) xm start vm1 > > > > After I started the guest and connected to the console it dropped to a > > busy box shell. Here''s the last part of the output prior to the bb shell > > (I can provide more): > > > > ================================================> > [ 0.277228] EFI Variables Facility v0.08 2004-May-17 > > [ 0.277490] TCP cubic registered > > [ 0.277613] NET: Registered protocol family 10 > > [ 0.278147] NET: Registered protocol family 17 > > [ 0.278168] Registering the dns_resolver key type > > [ 0.278282] registered taskstats version 1 > > [ 0.288490] Magic number: 1:252:3141 > > [ 0.288517] /build/buildd/linux-3.0.0/drivers/rtc/hctosys.c: unable to > > open rtc device (rtc0) > > [ 0.288526] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found > > [ 0.288531] EDD information not available. > > [ 0.288996] Freeing unused kernel memory: 984k freed > > [ 0.289247] Write protecting the kernel read-only data: 10240k > > [ 0.293653] Freeing unused kernel memory: 20k freed > > [ 0.294225] Freeing unused kernel memory: 1400k freed > > Loading, please wait... > > [ 0.339223] udevd[78]: starting version 173 > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... > > done. > > Gave up waiting for root device. Common problems: > > - Boot args (cat /proc/cmdline) > > - Check rootdelay= (did the system wait long enough?) > > - Check root= (did the system wait for the right device?) > > - Missing modules (cat /proc/modules; ls /dev) > > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > > ================================================> > > > Following the suggestions in the shell: > > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > > partition (or should be at least) > > - ''cat /proc/modules'', no output > > - ls /dev - no sign of xvda or any of its partitions > > > > Finally, here''s the config file: > > > > ================================================> > kernel = ''/boot/vmlinuz-3.0.0-12-generic'' > > ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' > > vcpus = ''1'' > > memory = ''256'' > > root = ''/dev/xvda2 ro'' > > disk = [ > > ''phy:/dev/vgxen1/vm1-disk,xvda2,w'', > > ''phy:/dev/vgxen1/vm1-swap,xvda1,w'', > > ] > > name = ''vm1'' > > vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > ================================================> > > > Any advice would be much appreciated. > > > > - Can you try using the sda1/2 instead of xvda1/2 for the disk and swap > > device? > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > Does the initrd have the xenblk drivers included? I know when i try to spin > up Ubuntu 11.04 domU''s on my debian dom0 i have to include the > xenbus_probe_frontend module in the /etc/initramfs-tools/modules file so it > gets included in the initrd on generation. I use pv-grub for my domU''s so > it all exists on the domU but its the same principle. > > -DDV> Thanks to you both for the feedback. I tried changing xvda to sda but root still failed to mount. > > Regarding the xenblk drivers, it looks like they are loaded (correct me if I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the following: > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > xenfs 18311 1 - Live 0xffffffffa011c000 > > I also loaded xen-gntdev but still no luck. Next steps :) ?Ouch - sorry about the subject header mess up on the previous message! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Nov-10 21:10 UTC
Re: [Xen-users] RE: Xen-users Digest, Vol 81, Issue 21
On Fri, Nov 11, 2011 at 3:53 AM, Adam Gold <adamgold@hotmail.com> wrote:>> > ALERT! /dev/xvda2 does not exist. Dropping to a shell! >> > ================================================>> > >> > Following the suggestions in the shell: >> > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root >> > partition (or should be at least) >> > - ''cat /proc/modules'', no output >> > - ls /dev - no sign of xvda or any of its partitions >> >> Thanks to you both for the feedback. I tried changing xvda to sda but root > still failed to mount. > > Regarding the xenblk drivers, it looks like they are loaded (correct me if > I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the > following: > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > xenfs 18311 1 - Live 0xffffffffa011c000 > > I also loaded xen-gntdev but still no luck. Next steps :) ?You obviously did something, right, cause the content of /proc/modules is different compared to your previous post. What''s in /proc/partitions AFTER you get xen-related entry in /proc/modules? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Adam Gold
2011-Nov-10 22:44 UTC
[Xen-users] RE: ubuntu and debian guests cannot find or mount root partition
> Date: Fri, 11 Nov 2011 04:10:53 +0700 > Subject: Re: [Xen-users] RE: Xen-users Digest, Vol 81, Issue 21 > From: list@fajar.net > To: adamgold@hotmail.com > CC: xen-users@lists.xensource.com > > On Fri, Nov 11, 2011 at 3:53 AM, Adam Gold <adamgold@hotmail.com> wrote: > >> > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > >> > ================================================> >> > > >> > Following the suggestions in the shell: > >> > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > >> > partition (or should be at least) > >> > - ''cat /proc/modules'', no output > >> > - ls /dev - no sign of xvda or any of its partitions > >> > > > > Thanks to you both for the feedback. I tried changing xvda to sda but root > > still failed to mount. > > > > Regarding the xenblk drivers, it looks like they are loaded (correct me if > > I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the > > following: > > > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > > xenfs 18311 1 - Live 0xffffffffa011c000 > > > > I also loaded xen-gntdev but still no luck. Next steps :) ? > > You obviously did something, right, cause the content of /proc/modules > is different compared to your previous post. > > What''s in /proc/partitions AFTER you get xen-related entry in /proc/modules? > > -- > FajarFajar: thanks for the response. I should clarify: as mentioned above, I ran cat /proc/modules on the *dom0*. When I attach the console to the guest vm, cat /proc/modules and /partitions are both empty. For whatever reason, it seems not to be getting to the stage of creating a full filesystem, even though it can boot part of the way. I''d love to get this to work as it''s such an elegant way of creating guests. In the meantime, I think it will be productive to build a guest from scratch, step by step without the tools, and see where/if it falls down. Of course any further suggestions will be very welcome. Regards, Adam P.S. changed subject header of this message to make up for my previous mess up! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Adam Gold
2011-Nov-11 00:02 UTC
RE: [Xen-users] RE: [UPATE - using pygrub] ubuntu and debian guests cannot find or mount root partition
Hi there. I set the vm to boot using pygrub and it started up just fine. It does raise the question as to what wasn''t working in the dom0 kernel (if that was indeed the issue). From: adamgold@hotmail.com To: list@fajar.net; xen-users@lists.xensource.com Subject: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition Date: Thu, 10 Nov 2011 22:44:24 +0000> Date: Fri, 11 Nov 2011 04:10:53 +0700 > Subject: Re: [Xen-users] RE: Xen-users Digest, Vol 81, Issue 21 > From: list@fajar.net > To: adamgold@hotmail.com > CC: xen-users@lists.xensource.com > > On Fri, Nov 11, 2011 at 3:53 AM, Adam Gold <adamgold@hotmail.com> wrote: > >> > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > >> > ================================================> >> > > >> > Following the suggestions in the shell: > >> > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > >> > partition (or should be at least) > >> > - ''cat /proc/modules'', no output > >> > - ls /dev - no sign of xvda or any of its partitions > >> > > > > Thanks to you both for the feedback. I tried changing xvda to sda but root > > still failed to mount. > > > > Regarding the xenblk drivers, it looks like they are loaded (correct me if > > I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the > > following: > > > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > > xenfs 18311 1 - Live 0xffffffffa011c000 > > > > I also loaded xen-gntdev but still no luck. Next steps :) ? > > You obviously did something, right, cause the content of /proc/modules > is different compared to your previous post. > > What''s in /proc/partitions AFTER you get xen-related entry in /proc/modules? > > -- > FajarFajar: thanks for the response. I should clarify: as mentioned above, I ran cat /proc/modules on the *dom0*. When I attach the console to the guest vm, cat /proc/modules and /partitions are both empty. For whatever reason, it seems not to be getting to the stage of creating a full filesystem, even though it can boot part of the way. I''d love to get this to work as it''s such an elegant way of creating guests. In the meantime, I think it will be productive to build a guest from scratch, step by step without the tools, and see where/if it falls down. Of course any further suggestions will be very welcome. Regards, Adam P.S. changed subject header of this message to make up for my previous mess up! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2011-Nov-11 02:45 UTC
Re: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition
What happens , I change profile like this :- kernel = ''/boot/vmlinuz-3.0.0-12-generic'' ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' vcpus = ''1'' memory = ''256'' root = ''/dev/xvda1 ro'' disk = [ ''phy:/dev/vgxen1/vm1-disk,xvda1,w'', ''phy:/dev/vgxen1/vm1-swap,xvda2,w'', ] name = ''vm1'' vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' Boris --- On Thu, 11/10/11, Adam Gold <adamgold@hotmail.com> wrote: From: Adam Gold <adamgold@hotmail.com> Subject: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition To: xen-users@lists.xensource.com Date: Thursday, November 10, 2011, 4:05 PM From: adamgold@hotmail.com To: xen-users@lists.xensource.com Subject: RE: Xen-users Digest, Vol 81, Issue 21 Date: Thu, 10 Nov 2011 20:53:58 +0000 #yiv508097149 .yiv508097149ExternalClass .yiv508097149ecxhmmessage P {padding:0px;} #yiv508097149 .yiv508097149ExternalClass body.yiv508097149ecxhmmessage {font-size:10pt;font-family:Tahoma;}> Date: Thu, 10 Nov 2011 13:30:34 -0500 > From: David Della Vecchia > Subject: Re: [Xen-users] ubuntu and debian guests cannot find or mount > root partition > To: Mike Viau > Cc: xen-users@lists.xensource.com > Message-ID: > <CAEGWhjGRkn619ZR9eQv77_=qGVg3dwKzuHem7Rzs8OehLBgOVg@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Thu, Nov 10, 2011 at 1:15 PM, Mike Viauwrote: > > > On Thu, 10 Nov 2011 15:42:03 +0000 <adamgold> wrote: > > > > I''ve recently installed xen 4.1 but am having problems getting the guests > > up and running (I''m using ubuntu 11.10 for dom0 and have tried the same > > distro plus squeeze for guests). It seems they can''t find the root > > partition. I''ve left most of the defaults in xen-tools.conf, just changing > > the name of the volume group (I''m testing an lvm installation) and used the > > debootstrap creation process. I went through the following steps: > > > > 1) xen-create-image --hostname vm1 --role=udev --ip=[ ] > > 2) xm new /etc/xen/vm1.cfg > > 3) xm start vm1 > > > > After I started the guest and connected to the console it dropped to a > > busy box shell. Here''s the last part of the output prior to the bb shell > > (I can provide more): > > > > ================================================> > [ 0.277228] EFI Variables Facility v0.08 2004-May-17 > > [ 0.277490] TCP cubic registered > > [ 0.277613] NET: Registered protocol family 10 > > [ 0.278147] NET: Registered protocol family 17 > > [ 0.278168] Registering the dns_resolver key type > > [ 0.278282] registered taskstats version 1 > > [ 0.288490] Magic number: 1:252:3141 > > [ 0.288517] /build/buildd/linux-3.0.0/drivers/rtc/hctosys.c: unable to > > open rtc device (rtc0) > > [ 0.288526] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found > > [ 0.288531] EDD information not available. > > [ 0.288996] Freeing unused kernel memory: 984k freed > > [ 0.289247] Write protecting the kernel read-only data: 10240k > > [ 0.293653] Freeing unused kernel memory: 20k freed > > [ 0.294225] Freeing unused kernel memory: 1400k freed > > Loading, please wait... > > [ 0.339223] udevd[78]: starting version 173 > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... > > done. > > Gave up waiting for root device. Common problems: > > - Boot args (cat /proc/cmdline) > > - Check rootdelay= (did the system wait long enough?) > > - Check root= (did the system wait for the right device?) > > - Missing modules (cat /proc/modules; ls /dev) > > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > > ================================================> > > > Following the suggestions in the shell: > > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > > partition (or should be at least) > > - ''cat /proc/modules'', no output > > - ls /dev - no sign of xvda or any of its partitions > > > > Finally, here''s the config file: > > > > ================================================> > kernel = ''/boot/vmlinuz-3.0.0-12-generic'' > > ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' > > vcpus = ''1'' > > memory = ''256'' > > root = ''/dev/xvda2 ro'' > > disk = [ > > ''phy:/dev/vgxen1/vm1-disk,xvda2,w'', > > ''phy:/dev/vgxen1/vm1-swap,xvda1,w'', > > ] > > name = ''vm1'' > > vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > ================================================> > > > Any advice would be much appreciated. > > > > - Can you try using the sda1/2 instead of xvda1/2 for the disk and swap > > device? > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > Does the initrd have the xenblk drivers included? I know when i try to spin > up Ubuntu 11.04 domU''s on my debian dom0 i have to include the > xenbus_probe_frontend module in the /etc/initramfs-tools/modules file so it > gets included in the initrd on generation. I use pv-grub for my domU''s so > it all exists on the domU but its the same principle. > > -DDV> Thanks to you both for the feedback. I tried changing xvda to sda but root still failed to mount. > > Regarding the xenblk drivers, it looks like they are loaded (correct me if I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the following: > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > xenfs 18311 1 - Live 0xffffffffa011c000 > > I also loaded xen-gntdev but still no luck. Next steps :) ?Ouch - sorry about the subject header mess up on the previous message! -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2011-Nov-11 07:00 UTC
RE: [Xen-users] RE: [UPATE - using pygrub] ubuntu and debian guests cannot find or mount root partition
Adam Gold wrote:>Hi there. I set the vm to boot using pygrub and it started up just >fine. It does raise the question as to what wasn''t working in the >dom0 kernel (if that was indeed the issue).I''ve got some but not all of my guests to boot with pygrub now, and for those that don''t*, and during the conversion process, I''ve taken to copying the kernel and initrd off the guest onto the Dom0 and booting each guest from it''s own setup. Ie I don''t run any of them any more using a generic kernel/initrd from Dom0. Once you have the guest running, you can make it''s own initrd (this is where I think you''ll find the differences) and then copy the kernel and initrd to Dom0 (if you aren''t sticking with pygrub/it doesn''t work for some reason). * For some reason, I''ve had problems booting some guests, and occasions when a guest that was booting with pygrub stops doing so after some minor change. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Adam Gold
2011-Nov-11 12:16 UTC
RE: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition
--- On Thu, 11/10/11, Adam Gold <adamgold@hotmail.com> wrote: From: Adam Gold <adamgold@hotmail.com> Subject: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition To: xen-users@lists.xensource.com Date: Thursday, November 10, 2011, 4:05 PM From: adamgold@hotmail.com To: xen-users@lists.xensource.com Subject: RE: Xen-users Digest, Vol 81, Issue 21 Date: Thu, 10 Nov 2011 20:53:58 +0000> Date: Thu, 10 Nov 2011 13:30:34 -0500 > From: David Della Vecchia > Subject: Re: [Xen-users] ubuntu and debian guests cannot find or mount > root partition > To: Mike Viau > Cc: xen-users@lists.xensource.com > Message-ID: > <CAEGWhjGRkn619ZR9eQv77_=qGVg3dwKzuHem7Rzs8OehLBgOVg@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Thu, Nov 10, 2011 at 1:15 PM, Mike Viauwrote: > > > On Thu, 10 Nov 2011 15:42:03 +0000 <adamgold> wrote: > > > > I''ve recently installed xen 4.1 but am having problems getting the guests > > up and running (I''m using ubuntu 11.10 for dom0 and have tried the same > > distro plus squeeze for guests). It seems they can''t find the root > > partition. I''ve left most of the defaults in xen-tools.conf, just changing > > the name of the volume group (I''m testingan lvm installation) and used the> > debootstrap creation process. I went through the following steps: > > > > 1) xen-create-image --hostname vm1 --role=udev --ip=[ ] > > 2) xm new /etc/xen/vm1.cfg > > 3) xm start vm1 > > > > After I started the guest and connected to the console it dropped to a > > busy box shell. Here''s the last part of the output prior to the bb shell > > (I can provide more): > > > > ================================================> > [ 0.277228] EFI Variables Facility v0.08 2004-May-17 > > [ 0.277490] TCP cubic registered > > [ 0.277613] NET: Registered protocol family 10 > > [ 0.278147] NET: Registered protocol family 17 > > [ 0.278168] Registering the dns_resolver key type > > [ 0.278282] registered taskstats version 1 > > [ 0.288490] Magicnumber: 1:252:3141> > [ 0.288517] /build/buildd/linux-3.0.0/drivers/rtc/hctosys.c: unable to > > open rtc device (rtc0) > > [ 0.288526] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found > > [ 0.288531] EDD information not available. > > [ 0.288996] Freeing unused kernel memory: 984k freed > > [ 0.289247] Write protecting the kernel read-only data: 10240k > > [ 0.293653] Freeing unused kernel memory: 20k freed > > [ 0.294225] Freeing unused kernel memory: 1400k freed > > Loading, please wait... > > [ 0.339223] udevd[78]: starting version 173 > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... > > done. > > Gave up waiting for root device. Common problems: > >- Boot args (cat /proc/cmdline)> > - Check rootdelay= (did the system wait long enough?) > > - Check root= (did the system wait for the right device?) > > - Missing modules (cat /proc/modules; ls /dev) > > ALERT! /dev/xvda2 does not exist. Dropping to a shell! > > ================================================> > > > Following the suggestions in the shell: > > - ''cat /proc/cmdline'' = ''root=/dev/xvda2 ro'' which is the correct root > > partition (or should be at least) > > - ''cat /proc/modules'', no output > > - ls /dev - no sign of xvda or any of its partitions > > > > Finally, here''s the config file: > > > > ================================================> > kernel = ''/boot/vmlinuz-3.0.0-12-generic'' > > ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' > > vcpus ''1'' > > memory = ''256'' > > root = ''/dev/xvda2 ro'' > > disk = [ > > ''phy:/dev/vgxen1/vm1-disk,xvda2,w'', > > ''phy:/dev/vgxen1/vm1-swap,xvda1,w'', > > ] > > name = ''vm1'' > > vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] > > on_poweroff = ''destroy'' > > on_reboot = ''restart'' > > on_crash = ''restart'' > > ================================================> > > > Any advice would be much appreciated. > > > > - Can you try using the sda1/2 instead of xvda1/2 for the disk and swap > > device? > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > >> Does the initrd have the xenblk drivers included? I know when i try to spin > up Ubuntu 11.04 domU''s on my debian dom0 i have to include the > xenbus_probe_frontend module in the /etc/initramfs-tools/modules file so it > gets included in the initrd on generation. I use pv-grub for my domU''s so > it all exists on the domU but its the same principle. > > -DDV> Thanks to you both for the feedback. I tried changing xvda to sda but root still failed to mount. > > Regarding the xenblk drivers, it looks like they are loaded (correct me if I''m wrong). When I run on dom0 ''cat /proc/modules | grep xen'' I get the following: > > xen_netback 27854 0 [permanent], Live 0xffffffffa016a000 > xen_blkback 23177 0 [permanent], Live 0xffffffffa0163000 > xen_evtchn 13172 2 - Live 0xffffffffa00c6000 > xenfs 18311 1 - Live 0xffffffffa011c000 > > I alsoloaded xen-gntdev but still no luck. Next steps :)> Date: Thu, 10 Nov 2011 18:45:27 -0800 > From: bderzhavets@yahoo.com > Subject: Re: [Xen-users] RE: ubuntu and debian guests cannot find or mount root partition > To: xen-users@lists.xensource.com; adamgold@hotmail.com > > What happens , I change profile like this :- > > kernel = ''/boot/vmlinuz-3.0.0-12-generic'' > ramdisk = ''/boot/initrd.img-3.0.0-12-generic'' > vcpus = ''1'' > memory = ''256'' > root = ''/dev/xvda1 ro'' > disk = [ > ''phy:/dev/vgxen1/vm1-disk,xvda1,w'', > ''phy:/dev/vgxen1/vm1-swap,xvda2,w'', > ] > name = ''vm1'' > vif = [ ''ip=[ ],mac=00:16:3E:12:C7:A0'' ] > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > >BorisI tried that, same result unfortunately. However, I did get it to work by booting via pygrub rather than using the dom0 kernel. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users