WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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@xxxxxxxxx> 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'





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@xxxxxxxxx>
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@xxxxxxxxx>

I would try repartitioning with "/" on /dev/xvda1


Boris

--- On Fri, 12/3/10, Roberto Scudeller <beto.rvs@xxxxxxxxx> wrote:

From: Roberto Scudeller <beto.rvs@xxxxxxxxx>
Subject: Re: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx>
> 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@xxxxxxxxx> wrote:

From: Roberto Scudeller <beto.rvs@xxxxxxxxx>
Subject: [Xen-users] Kernel DomU 2.6.36.1 dont boot PVonHVM
To: xen-users@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




--
Roberto Scudeller
Especialista Linux/Unix
+55 11 8763-6300
+55 11 8022-6956
beto.rvs@xxxxxxxxx
beto_rvs@xxxxxxxxxxxx




--
Roberto Scudeller
Especialista Linux/Unix
+55 11 8763-6300
+55 11 8022-6956
beto.rvs@xxxxxxxxx
beto_rvs@xxxxxxxxxxxx



--
Roberto Scudeller
Especialista Linux/Unix
+55 11 8763-6300
+55 11 8022-6956
beto.rvs@xxxxxxxxx
beto_rvs@xxxxxxxxxxxx



网易163/126邮箱百分百兼容iphone ipad邮件收发
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>