Hi, Guys I encountered an error while booting HVM DomU with scsi disk. See the attachment for the boot failure info (screenshot). seems that the bios could not find the boot disk of the DomU. The xen version is xen-4.0.0, and both the Dom0 and DomU kernel are 2.6.32. Here is the config of the DomU: builder="hvm" device_model="/usr/lib/xen/bin/qemu-dm" kernel="/usr/lib/xen/boot/hvmloader" boot="c" disk=[ ''file:/startup_disk/vm/vm.img,sda,w'' ] When I changed the disk type from "sda" to "hda", everthing works well. But I need the DomU booting via sda mode because of the business demand. Can anyone take a look at this issue? Any suggestions will be appreciated, Best Regards, _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hello. On 19/03/12 04:51, tangming wrote:> When I changed the disk type from "sda" to "hda", everthing works well. But I need the DomU > booting via sda mode because of the business demand.Historically, Xen HVM can''t emulate SCSI. Quote from http://ian.blenke.com/xen/hvm/svm/vtx/qemu (quite old, btw, 2006): "HVM hardware is emulated via a patched QEMU "device manager" (qemu-dm) daemon running as a backend in dom0. There is no SCSI emulation, only PIIX3 IDE (with some rudimentary PIIX4 capabilities), Cirrus Logic or vanilla VGA emulated video, RTL8139 or NE2000 network emulation, PAE, and somewhat limited ACPI and APIC support. Basically the same devices available in QEMU 0.8.2 today (with a number of patches for performance, etc)." There are references of presenting the drive to HVM guest as "sda" and even "xvda", but i have never done that: http://wiki.xen.org/wiki/Using_Xen_PV_Drivers_on_HVM_Guest Can you see in your /var/log/xen/qemu-dm-*.log any complain about the drive naming? What is that "business demand"? Maybe it''s solvable in some different manner? -- Alexandre Kouznetsov
On Mon, Mar 19, 2012 at 5:51 PM, tangming <tangming@huaweisymantec.com> wrote:> When I changed the disk type from "sda" to "hda", everthing works well. But I need the DomU > booting via sda mode because of the business demand.I''d actually suggest looking at your "business demand". There should be no such thing, as when using Xen HVM, whatever name you use will have identical performance. And if you use newer linux domU, both ATA and SCSI disks will ALL be shown as sda anyway. -- Fajar
Hi, Fajar Thanks for your patient explanations and suggestions. And when I changed a newer Linux DomU, the boot disk was shown as scsi disk sda, and it is just what I need. Another question, there is a usb device on Dom0, and now I need this usb device to be used by several DomUs. I enabled the usb in the DomUs' config file like this: usb=1 usbdevice="host:xxxx:xxxx" but seems that only one DomU can use this usb normally. Is there any way to share usb device with two or more DomUs? is PVUSB possible? Any suggestions will be appreciated, Best Regards, Ming ----- 原始邮件 ----- 发件人: "Fajar A. Nugraha" <list@fajar.net> 日期: 2012年 3月 20日, 星期二, 上午9:53 主题: Re: [Xen-users] HVM DomU boot failure with scsi disk 收件人: tangming <tangming@huaweisymantec.com> 抄送: xen-users@lists.xen.org> On Mon, Mar 19, 2012 at 5:51 PM, tangming > <tangming@huaweisymantec.com> wrote: > > When I changed the disk type from "sda" to "hda", everthing works > well. But I need the DomU > > booting via sda mode because of the business demand. > > I'd actually suggest looking at your "business demand". There should > be no such thing, as when using Xen HVM, whatever name you use will > have identical performance. > > And if you use newer linux domU, both ATA and SCSI disks will ALL be > shown as sda anyway. > > -- > Fajar_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users