hi Stefano
thanks for your time As your method, I modified my /boo/grub/grub.cfg of ubuntu10.10 like this: ==================================================== menuentry 'Ubuntu, with Linux 2.6.35.4.pvonhvm' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 3336889c-576e-4088-a6ff-89e869289766 linux /boot/vmlinuz-2.6.35.4 root=UUID=3336889c-576e-4088-a6ff-89e869289766 ro xen_emul_unplug=aux-ide-disks initrd /boot/initrd.img-2.6.35.4.pvonhvm.0415 } =======================================================
then I reboot the Guest OS , I found the boot disk is still the xen-blkfront, not the qemu emulate. I reviewed the source of ./arch/x86/xen/platform-pci-unplug.c. there are several parameters, such as:
=================================================================== if (!strncmp(p, "all", l)) xen_emul_unplug |= XEN_UNPLUG_ALL; else if (!strncmp(p, "ide-disks", l)) xen_emul_unplug |= XEN_UNPLUG_ALL_IDE_DISKS; else if (!strncmp(p, "aux-ide-disks", l)) xen_emul_unplug |= XEN_UNPLUG_AUX_IDE_DISKS; else if (!strncmp(p, "nics", l)) xen_emul_unplug |= XEN_UNPLUG_ALL_NICS; else if (!strncmp(p, "unnecessary", l)) xen_emul_unplug |= XEN_UNPLUG_UNNECESSARY; else if (!strncmp(p, "never", l)) xen_emul_unplug |= XEN_UNPLUG_NEVER; ========================================================= In my opinion , If I want to use the emulated disk , I should set
xen_emul_unplug = XEN_UNPLUG_UNNECESSARY or
xen_emul_unplug = XEN_NEVER
right? I try these two ways, but I still failed.
Could you please tell me where can I get the source of
kernel 2.6.35 with pvonhvm???
Thank you very much.
At 2011-04-18 22:05:43��"Stefano Stabellini" <stefano.stabellini@xxxxxxxxxxxxx> wrote:
>On Mon, 18 Apr 2011, topperxin wrote:
>> thanks for your timethe version of ubuntu 10.10 is 2.6.35.
>>
>> the domU can boot successfully, but when I operate some commands such
>> as :ls ,touch , it'll be blocked, just like I stated before.
>>
>> I have another question:
>> when I debug the xen-blkfront, I found the most difficult thing
>> is debug it. I want to know can I use xen-blkfront substitute a slave
>> disk, not the boot disk(primary disk), thus I can boot the system on qemu emulated disk, and then mount the xen-blkfront
>> disk, then to debug it. Can I do this???
>> waiting...
>
>You can add xen_emul_unplug=aux-ide-disks to the linux command line
>options, so that the kernel will not unplug the emulated primary disk.
>Then you can use root=/dev/hda to make sure that the kernel uses the
>emulated interface to access the primary disk.
>Afterwards you should be able to debug blkfront accessing the secondary
>disk that should appear as /dev/xvdb for example.
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|