Roberto Scudeller
2010-Dec-03 17:37 UTC
[Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi all, I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 and I try with ubuntu 10.10. In boot I receive error "Cannot find a root partition /dev/xvda2" and a prompt (initramfs) appear. In dmesg (initramfs) appear: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 I try to create n initramfs, with any modules and the DomU dont boot. I forgot something? Can someone help me? Thanks for any help. -- Roberto Scudeller Especialista Linux/Unix _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-Dec-03 18:26 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi! All my Ubuntu 10.04 servers are using the Linux 2.6.36 compiled by me. Basically you should do: aptitude install build-essential libncurses5-dev wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.1.tar.bz2 tar xf linux-2.6.36.1.tar.bz2 cd linux-2.6.36.1 make defconfig make menuconfig Enable Xen within the menuconfig... make make deb-pkg dpkg -i ../linux-image*.deb depmod 2.6.36.1 update-initramfs -c -k 2.6.36.1 update-grub reboot PS.: You must use the GRUB1 if your dom0 is a XenServer or some old version of Xen... Hope to help! Cheers! Thiago On 3 December 2010 15:37, Roberto Scudeller <beto.rvs@gmail.com> wrote:> Hi all, > > > I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, > xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 > and I try with ubuntu 10.10. > > In boot I receive error "Cannot find a root partition /dev/xvda2" and a > prompt (initramfs) appear. > > In dmesg (initramfs) appear: > blkfront: xvda: barriers enabled (tag) > xvda: xvda1 > vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 > > > I try to create n initramfs, with any modules and the DomU dont boot. > I forgot something? Can someone help me? > > > Thanks for any help. > > > -- > Roberto Scudeller > Especialista Linux/Unix > > _______________________________________________ > 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
Roberto Scudeller
2010-Dec-03 19:12 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi Martinx, thanks for you help. How you create DomU.cfg ? Especially disks? My DomU.cfg, in disks: disk=[ ''tap2:tapdisk:aio:/PATH/ubuntu10-04/hda.img,hda,w'' , ''tap2:tapdisk:aio:/PATH/ubuntu10-04/xvda.img,xvda,w'' ] In hda.img I have a /boot and in xvda.img I have swap and root (xvda1 is swap and xvda2 is / ). Cheers, Roberto. 2010/12/3 Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com>> Hi! > > All my Ubuntu 10.04 servers are using the Linux 2.6.36 compiled by me. > > Basically you should do: > > aptitude install build-essential libncurses5-dev > wget -c > http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.1.tar.bz2 > tar xf linux-2.6.36.1.tar.bz2 > cd linux-2.6.36.1 > make defconfig > make menuconfig > > Enable Xen within the menuconfig... > > make > make deb-pkg > dpkg -i ../linux-image*.deb > depmod 2.6.36.1 > update-initramfs -c -k 2.6.36.1 > update-grub > > reboot > > PS.: You must use the GRUB1 if your dom0 is a XenServer or some old > version of Xen... > > Hope to help! > > Cheers! > Thiago > > On 3 December 2010 15:37, Roberto Scudeller <beto.rvs@gmail.com> wrote: > >> Hi all, >> >> >> I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, >> xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 >> and I try with ubuntu 10.10. >> >> In boot I receive error "Cannot find a root partition /dev/xvda2" and a >> prompt (initramfs) appear. >> >> In dmesg (initramfs) appear: >> blkfront: xvda: barriers enabled (tag) >> xvda: xvda1 >> vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 >> >> >> I try to create n initramfs, with any modules and the DomU dont boot. >> I forgot something? Can someone help me? >> >> >> Thanks for any help. >> >> >> -- >> Roberto Scudeller >> Especialista Linux/Unix >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > >-- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Dec-03 19:54 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
> Cannot find a root partition /dev/xvda2Looks like your root partition is /dev/xvda1 Boris. --- On Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com> wrote: From: Roberto Scudeller <beto.rvs@gmail.com> Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM To: xen-users@lists.xensource.com Date: Friday, December 3, 2010, 12:37 PM Hi all, I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 and I try with ubuntu 10.10. In boot I receive error "Cannot find a root partition /dev/xvda2" and a prompt (initramfs) appear. In dmesg (initramfs) appear: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 I try to create n initramfs, with any modules and the DomU dont boot. I forgot something? Can someone help me? Thanks for any help. -- Roberto Scudeller Especialista Linux/Unix -----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
Roberto Scudeller
2010-Dec-03 20:22 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi Boris, My root partition is /dev/xvda2, in kernel not PVonHVM my root partition is /dev/sda2 and a swap is /dev/sda1. Looks like this kernel not found the second partition (the root partition). This kernel "jump" the swap partition?? Thanks for you help. Cheers, Roberto 2010/12/3 Boris Derzhavets <bderzhavets@yahoo.com>> > Cannot find a root partition /dev/xvda2 > Looks like your root partition is /dev/xvda1 > > Boris. > > --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com>* wrote: > > > From: Roberto Scudeller <beto.rvs@gmail.com> > Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM > To: xen-users@lists.xensource.com > Date: Friday, December 3, 2010, 12:37 PM > > > Hi all, > > > I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, > xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 > and I try with ubuntu 10.10. > > In boot I receive error "Cannot find a root partition /dev/xvda2" and a > prompt (initramfs) appear. > > In dmesg (initramfs) appear: > blkfront: xvda: barriers enabled (tag) > xvda: xvda1 > vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 > > > I try to create n initramfs, with any modules and the DomU dont boot. > I forgot something? Can someone help me? > > > Thanks for any help. > > > -- > Roberto Scudeller > Especialista Linux/Unix > > -----Inline Attachment Follows----- > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > >-- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-Dec-04 11:49 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
I would try repartitioning with "/" on /dev/xvda1 Boris --- On Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com> wrote: From: Roberto Scudeller <beto.rvs@gmail.com> Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc: xen-users@lists.xensource.com Date: Friday, December 3, 2010, 3:22 PM Hi Boris, My root partition is /dev/xvda2, in kernel not PVonHVM my root partition is /dev/sda2 and a swap is /dev/sda1. Looks like this kernel not found the second partition (the root partition). This kernel "jump" the swap partition?? Thanks for you help. Cheers, Roberto 2010/12/3 Boris Derzhavets <bderzhavets@yahoo.com>> Cannot find a root partition /dev/xvda2Looks like your root partition is /dev/xvda1 Boris. --- On Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com> wrote: From: Roberto Scudeller <beto.rvs@gmail.com> Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM To: xen-users@lists.xensource.com Date: Friday, December 3, 2010, 12:37 PM Hi all, I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 and I try with ubuntu 10.10. In boot I receive error "Cannot find a root partition /dev/xvda2" and a prompt (initramfs) appear. In dmesg (initramfs) appear: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 I try to create n initramfs, with any modules and the DomU dont boot. I forgot something? Can someone help me? Thanks for any help. -- Roberto Scudeller Especialista Linux/Unix -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Roberto Scudeller
2010-Dec-06 17:22 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi Boris, I try mount my root partition in /dev/xvda1 and I receive a new error: mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn''t have /sbin/init No init found. Try passing init= bootarg (initramfs) I used a raw disk in my Xen, and this disks have a partition table create when I installed a HVM VM. This machine boot with my old kernel 2.6.32 with a pvdrivers (used this patch: http://blog.alex.org.uk/tag/xen/ ). I created a VM with this parameters for disk: ''tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w'' , ''tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w'', This is a xml dump (virsh dumpxml VM): <disk type=''file'' device=''disk''> <driver name=''tap'' type=''tapdisk''/> <source file=''aio:/PATH/ubuntu10.04/hda''/> <target dev=''hda'' bus=''ide''/> </disk> <disk type=''file'' device=''disk''> <driver name=''tap'' type=''tapdisk''/> <source file=''aio:/PATH/ubuntu10.04/xvda''/> <target dev=''xvda'' bus=''xen''/> </disk> In hda I have my /boot, and xvda I have my / (root partition). Anyone have any idea? Cheers, Roberto Scudeller 2010/12/4 Boris Derzhavets <bderzhavets@yahoo.com>> I would try repartitioning with "/" on /dev/xvda1 > > > Boris > > --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com>* wrote: > > > From: Roberto Scudeller <beto.rvs@gmail.com> > Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM > To: "Boris Derzhavets" <bderzhavets@yahoo.com> > Cc: xen-users@lists.xensource.com > Date: Friday, December 3, 2010, 3:22 PM > > > Hi Boris, > > My root partition is /dev/xvda2, in kernel not PVonHVM my root partition is > /dev/sda2 and a swap is /dev/sda1. > > > Looks like this kernel not found the second partition (the root partition). > This kernel "jump" the swap partition?? > > Thanks for you help. > > > Cheers, > Roberto > > > 2010/12/3 Boris Derzhavets <bderzhavets@yahoo.com<http://mc/compose?to=bderzhavets@yahoo.com> > > > > > Cannot find a root partition /dev/xvda2 > Looks like your root partition is /dev/xvda1 > > Boris. > > --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> > >* wrote: > > > From: Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> > > > Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM > To: xen-users@lists.xensource.com<http://mc/compose?to=xen-users@lists.xensource.com> > Date: Friday, December 3, 2010, 12:37 PM > > > Hi all, > > > I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, > xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 > and I try with ubuntu 10.10. > > In boot I receive error "Cannot find a root partition /dev/xvda2" and a > prompt (initramfs) appear. > > In dmesg (initramfs) appear: > blkfront: xvda: barriers enabled (tag) > xvda: xvda1 > vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 > > > I try to create n initramfs, with any modules and the DomU dont boot. > I forgot something? Can someone help me? > > > Thanks for any help. > > > -- > Roberto Scudeller > Especialista Linux/Unix > > -----Inline Attachment Follows----- > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > > > > -- > Roberto Scudeller > Especialista Linux/Unix > +55 11 8763-6300 > +55 11 8022-6956 > beto.rvs@gmail.com <http://mc/compose?to=beto.rvs@gmail.com> > beto_rvs@yahoo.com.br <http://mc/compose?to=beto_rvs@yahoo.com.br> > > >-- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Roberto Scudeller
2010-Dec-07 13:54 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi all again, I try other kernel and the problem continues. My DomU.cfg: name=''ubuntu10.04'' memory=512 vcpus=2 disk=[ ''tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w'', ''tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w'', ] boot=''c'' on_reboot=''restart'' on_shutdown=''destroy'' on_crash=''destroy'' With the old kernel, 2.6.32.24, with pvdrivers (used this patch: http://blog.alex.org.uk/tag/xen/ ) this VM boot OK. I try kernels 2.6.36.1 and 2.6.37-rc4, and the problem continues: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 Build the new kernel does not seem to be able to view all disk partitions in xvda disk (I have / on xvda1 and swap on xvda2) with raw disks (sparse). I try vhd disks and problem continues. These disks contains the partition table. The xen-blkfront have a problem with the disks right? Could someone give me some more help? Cheers, Roberto Scudeller 2010/12/6 Roberto Scudeller <beto.rvs@gmail.com>> Hi Boris, > > I try mount my root partition in /dev/xvda1 and I receive a new error: > > mount: mounting /dev on /root/dev failed: No such file or directory > mount: mounting /sys on /root/sys failed: No such file or directory > mount: mounting /proc on /root/proc failed: No such file or directory > Target filesystem doesn''t have /sbin/init > No init found. Try passing init= bootarg > (initramfs) > > I used a raw disk in my Xen, and this disks have a partition table create > when I installed a HVM VM. > > This machine boot with my old kernel 2.6.32 with a pvdrivers (used this > patch: http://blog.alex.org.uk/tag/xen/ ). > > I created a VM with this parameters for disk: > ''tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w'' , > ''tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w'', > > This is a xml dump (virsh dumpxml VM): > <disk type=''file'' device=''disk''> > <driver name=''tap'' type=''tapdisk''/> > <source file=''aio:/PATH/ubuntu10.04/hda''/> > <target dev=''hda'' bus=''ide''/> > </disk> > <disk type=''file'' device=''disk''> > <driver name=''tap'' type=''tapdisk''/> > <source file=''aio:/PATH/ubuntu10.04/xvda''/> > <target dev=''xvda'' bus=''xen''/> > </disk> > > > In hda I have my /boot, and xvda I have my / (root partition). > > Anyone have any idea? > > Cheers, > Roberto Scudeller > > > 2010/12/4 Boris Derzhavets <bderzhavets@yahoo.com> > > I would try repartitioning with "/" on /dev/xvda1 >> >> >> Boris >> >> --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com>* wrote: >> >> >> From: Roberto Scudeller <beto.rvs@gmail.com> >> Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM >> To: "Boris Derzhavets" <bderzhavets@yahoo.com> >> Cc: xen-users@lists.xensource.com >> Date: Friday, December 3, 2010, 3:22 PM >> >> >> Hi Boris, >> >> My root partition is /dev/xvda2, in kernel not PVonHVM my root partition >> is /dev/sda2 and a swap is /dev/sda1. >> >> >> Looks like this kernel not found the second partition (the root >> partition). >> This kernel "jump" the swap partition?? >> >> Thanks for you help. >> >> >> Cheers, >> Roberto >> >> >> 2010/12/3 Boris Derzhavets <bderzhavets@yahoo.com<http://mc/compose?to=bderzhavets@yahoo.com> >> > >> >> > Cannot find a root partition /dev/xvda2 >> Looks like your root partition is /dev/xvda1 >> >> Boris. >> >> --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> >> >* wrote: >> >> >> From: Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> >> > >> Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM >> To: xen-users@lists.xensource.com<http://mc/compose?to=xen-users@lists.xensource.com> >> Date: Friday, December 3, 2010, 12:37 PM >> >> >> Hi all, >> >> >> I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, >> xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 >> and I try with ubuntu 10.10. >> >> In boot I receive error "Cannot find a root partition /dev/xvda2" and a >> prompt (initramfs) appear. >> >> In dmesg (initramfs) appear: >> blkfront: xvda: barriers enabled (tag) >> xvda: xvda1 >> vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 >> >> >> I try to create n initramfs, with any modules and the DomU dont boot. >> I forgot something? Can someone help me? >> >> >> Thanks for any help. >> >> >> -- >> Roberto Scudeller >> Especialista Linux/Unix >> >> -----Inline Attachment Follows----- >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users >> >> >> >> >> >> -- >> Roberto Scudeller >> Especialista Linux/Unix >> +55 11 8763-6300 >> +55 11 8022-6956 >> beto.rvs@gmail.com <http://mc/compose?to=beto.rvs@gmail.com> >> beto_rvs@yahoo.com.br <http://mc/compose?to=beto_rvs@yahoo.com.br> >> >> >> > > > -- > Roberto Scudeller > Especialista Linux/Unix > +55 11 8763-6300 > +55 11 8022-6956 > beto.rvs@gmail.com > beto_rvs@yahoo.com.br >-- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Roberto Scudeller
2010-Dec-07 17:10 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
I try with the kernel 2.6.34, using this tutorial ( http://bderzhavets.wordpress.com/2010/05/27/pv-on-hvm-at-xen-4-0-on-top-of-fedora-13/ ). My ubuntu fail on boot. "No init found" Cheers, Roberto Scudeller 2010/12/7 Roberto Scudeller <beto.rvs@gmail.com>> Hi all again, > > I try other kernel and the problem continues. > > My DomU.cfg: > name=''ubuntu10.04'' > memory=512 > vcpus=2 > disk=[ > ''tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w'', ''tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w'', > ] > boot=''c'' > on_reboot=''restart'' > on_shutdown=''destroy'' > on_crash=''destroy'' > > > With the old kernel, 2.6.32.24, with pvdrivers (used this patch: > http://blog.alex.org.uk/tag/xen/ ) this VM boot OK. > > I try kernels 2.6.36.1 and 2.6.37-rc4, and the problem continues: > > blkfront: xvda: barriers enabled (tag) > xvda: xvda1 > vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 > > Build the new kernel does not seem to be able to view all disk partitionsin xvda disk (I have / on xvda1 and swap on xvda2) with raw disks (sparse). > I try vhd disks and problem continues. These disks contains the partition > table. The xen-blkfront have a problem with the disks right? > > > Could someone give me some more help? > > > Cheers, > Roberto Scudeller > > > > 2010/12/6 Roberto Scudeller <beto.rvs@gmail.com> > > Hi Boris, >> >> I try mount my root partition in /dev/xvda1 and I receive a new error: >> >> mount: mounting /dev on /root/dev failed: No such file or directory >> mount: mounting /sys on /root/sys failed: No such file or directory >> mount: mounting /proc on /root/proc failed: No such file or directory >> Target filesystem doesn''t have /sbin/init >> No init found. Try passing init= bootarg >> (initramfs) >> >> I used a raw disk in my Xen, and this disks have a partition table create >> when I installed a HVM VM. >> >> This machine boot with my old kernel 2.6.32 with a pvdrivers (used this >> patch: http://blog.alex.org.uk/tag/xen/ ). >> >> I created a VM with this parameters for disk: >> ''tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w'' , >> ''tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w'', >> >> This is a xml dump (virsh dumpxml VM): >> <disk type=''file'' device=''disk''> >> <driver name=''tap'' type=''tapdisk''/> >> <source file=''aio:/PATH/ubuntu10.04/hda''/> >> <target dev=''hda'' bus=''ide''/> >> </disk> >> <disk type=''file'' device=''disk''> >> <driver name=''tap'' type=''tapdisk''/> >> <source file=''aio:/PATH/ubuntu10.04/xvda''/> >> <target dev=''xvda'' bus=''xen''/> >> </disk> >> >> >> In hda I have my /boot, and xvda I have my / (root partition). >> >> Anyone have any idea? >> >> Cheers, >> Roberto Scudeller >> >> >> 2010/12/4 Boris Derzhavets <bderzhavets@yahoo.com> >> >> I would try repartitioning with "/" on /dev/xvda1 >>> >>> >>> Boris >>> >>> --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com>* wrote: >>> >>> >>> From: Roberto Scudeller <beto.rvs@gmail.com> >>> Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM >>> To: "Boris Derzhavets" <bderzhavets@yahoo.com> >>> Cc: xen-users@lists.xensource.com >>> Date: Friday, December 3, 2010, 3:22 PM >>> >>> >>> Hi Boris, >>> >>> My root partition is /dev/xvda2, in kernel not PVonHVM my root partition >>> is /dev/sda2 and a swap is /dev/sda1. >>> >>> >>> Looks like this kernel not found the second partition (the root >>> partition). >>> This kernel "jump" the swap partition?? >>> >>> Thanks for you help. >>> >>> >>> Cheers, >>> Roberto >>> >>> >>> 2010/12/3 Boris Derzhavets <bderzhavets@yahoo.com<http://mc/compose?to=bderzhavets@yahoo.com> >>> > >>> >>> > Cannot find a root partition /dev/xvda2 >>> Looks like your root partition is /dev/xvda1 >>> >>> Boris. >>> >>> --- On *Fri, 12/3/10, Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> >>> >* wrote: >>> >>> >>> From: Roberto Scudeller <beto.rvs@gmail.com<http://mc/compose?to=beto.rvs@gmail.com> >>> > >>> Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM >>> To: xen-users@lists.xensource.com<http://mc/compose?to=xen-users@lists.xensource.com> >>> Date: Friday, December 3, 2010, 12:37 PM >>> >>> >>> Hi all, >>> >>> >>> I try to use kernel 2.6.36.1 in HVM but building the drivers >>> xen-blkfront, xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a >>> ubuntu 10.04 and I try with ubuntu 10.10. >>> >>> In boot I receive error "Cannot find a root partition /dev/xvda2" and a >>> prompt (initramfs) appear. >>> >>> In dmesg (initramfs) appear: >>> blkfront: xvda: barriers enabled (tag) >>> xvda: xvda1 >>> vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 >>> >>> >>> I try to create n initramfs, with any modules and the DomU dont boot. >>> I forgot something? Can someone help me? >>> >>> >>> Thanks for any help. >>> >>> >>> -- >>> Roberto Scudeller >>> Especialista Linux/Unix >>> >>> -----Inline Attachment Follows----- >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com<http://mc/compose?to=Xen-users@lists.xensource.com> >>> http://lists.xensource.com/xen-users >>> >>> >>> >>> >>> >>> -- >>> Roberto Scudeller >>> Especialista Linux/Unix >>> +55 11 8763-6300 >>> +55 11 8022-6956 >>> beto.rvs@gmail.com <http://mc/compose?to=beto.rvs@gmail.com> >>> beto_rvs@yahoo.com.br <http://mc/compose?to=beto_rvs@yahoo.com.br> >>> >>> >>> >> >> >> -- >> Roberto Scudeller >> Especialista Linux/Unix >> +55 11 8763-6300 >> +55 11 8022-6956 >> beto.rvs@gmail.com >> beto_rvs@yahoo.com.br >> > > > > -- > Roberto Scudeller > Especialista Linux/Unix > +55 11 8763-6300 > +55 11 8022-6956 > beto.rvs@gmail.com > beto_rvs@yahoo.com.br >-- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
topperxin
2010-Dec-09 05:24 UTC
Re:[Xen-devel] Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
Recently, I just use the pvdriver patch of Alex for ubuntu 10.04 2.6.32, but in my opinion, that patch is not generic for all kinks of kernel version, so, if you want to use pvdriver on the target kernel version, you should compile it & debug it on the target kernel version platform, this is a final solution. so now, I'm studying the debug method on xen use gdbsx. good luck. At 2010-12-07 21:54:24,"Roberto Scudeller" <beto.rvs@gmail.com> wrote: Hi all again, I try other kernel and the problem continues. My DomU.cfg: name='ubuntu10.04' memory=512 vcpus=2 disk=[ 'tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w', 'tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w', ] boot='c' on_reboot='restart' on_shutdown='destroy' on_crash='destroy' With the old kernel, 2.6.32.24, with pvdrivers (used this patch:http://blog.alex.org.uk/tag/xen/ ) this VM boot OK. I try kernels 2.6.36.1 and 2.6.37-rc4, and the problem continues: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 Build the new kernel does not seem to be able to view all disk partitions in xvda disk (I have / on xvda1 and swap on xvda2) with raw disks (sparse). I try vhd disks and problem continues. These disks contains the partition table. The xen-blkfronthave a problem with the disks right? Could someone give me some more help? Cheers, Roberto Scudeller 2010/12/6 Roberto Scudeller<beto.rvs@gmail.com> Hi Boris, I try mount my root partition in /dev/xvda1 and I receive a new error: mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init No init found. Try passing init= bootarg (initramfs) I used a raw disk in my Xen, and this disks have a partition table create when I installed a HVM VM. This machine boot with my old kernel 2.6.32 with a pvdrivers (used this patch:http://blog.alex.org.uk/tag/xen/ ). I created a VM with this parameters for disk: 'tap2:tapdisk:aio:/PATH/ubuntu10.04/hda,hda,w' , 'tap2:tapdisk:aio:/PATH/ubuntu10.04/xvda,xvda,w', This is a xml dump (virsh dumpxml VM): <disk type='file' device='disk'> <driver name='tap' type='tapdisk'/> <source file='aio:/PATH/ubuntu10.04/hda'/> <target dev='hda' bus='ide'/> </disk> <disk type='file' device='disk'> <driver name='tap' type='tapdisk'/> <source file='aio:/PATH/ubuntu10.04/xvda'/> <target dev='xvda' bus='xen'/> </disk> In hda I have my /boot, and xvda I have my / (root partition). Anyone have any idea? Cheers, Roberto Scudeller 2010/12/4 Boris Derzhavets<bderzhavets@yahoo.com> I would try repartitioning with "/" on /dev/xvda1 Boris --- OnFri, 12/3/10, Roberto Scudeller<beto.rvs@gmail.com> wrote: From: Roberto Scudeller <beto.rvs@gmail.com> Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc:xen-users@lists.xensource.com Date: Friday, December 3, 2010, 3:22 PM Hi Boris, My root partition is /dev/xvda2, in kernel not PVonHVM my root partition is /dev/sda2 and a swap is /dev/sda1. Looks like this kernel not found the second partition (the root partition). This kernel "jump" the swap partition?? Thanks for you help. Cheers, Roberto 2010/12/3 Boris Derzhavets<bderzhavets@yahoo.com>> Cannot find a root partition /dev/xvda2Looks like your root partition is /dev/xvda1 Boris. --- OnFri, 12/3/10, Roberto Scudeller<beto.rvs@gmail.com> wrote: From: Roberto Scudeller <beto.rvs@gmail.com> Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM To:xen-users@lists.xensource.com Date: Friday, December 3, 2010, 12:37 PM Hi all, I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 and I try with ubuntu 10.10. In boot I receive error "Cannot find a root partition /dev/xvda2" and a prompt (initramfs) appear. In dmesg (initramfs) appear: blkfront: xvda: barriers enabled (tag) xvda: xvda1 vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 I try to create n initramfs, with any modules and the DomU dont boot. I forgot something? Can someone help me? Thanks for any help. -- Roberto Scudeller Especialista Linux/Unix -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br -- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br -- Roberto Scudeller Especialista Linux/Unix +55 11 8763-6300 +55 11 8022-6956 beto.rvs@gmail.com beto_rvs@yahoo.com.br _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2010-Dec-16 18:02 UTC
Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
On Fri, Dec 03, 2010 at 03:37:41PM -0200, Roberto Scudeller wrote:> Hi all, > > I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront, > xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04 > and I try with ubuntu 10.10. > > In boot I receive error "Cannot find a root partition /dev/xvda2" and a > prompt (initramfs) appear. > > In dmesg (initramfs) appear: > blkfront: xvda: barriers enabled (tag) > xvda: xvda1 > vbd vbd-51712: 16 xlvbd_add at /local/domain/0/backend/vbd/470/51712 > > I try to create n initramfs, with any modules and the DomU dont boot. > I forgot something? Can someone help me? > > Thanks for any help. >Btw you should switch to another kernel, 2.6.31.x is not supported/maintained anymore. All the recent testing/bugfixing has happened on 2.6.32.x (and upstream) kernels. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users