[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] using physical disks with HVM


  • To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Steve Dobbelstein <steved@xxxxxxxxxx>
  • Date: Mon, 14 Aug 2006 10:33:28 -0500
  • Delivery-date: Mon, 14 Aug 2006 08:34:33 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

"Henning Sprang" <henning_sprang@xxxxxx> wrote on 08/13/2006 02:49:37 PM:

> Hi,
> As a previous thread in
> http://lists.xensource.com/archives/html/xen-users/2006-06/msg01111.html
> tells, it should be possible tun run hvm domains with a physical disk.
> There where other threads about this, but no solution for my current
> problem.
> When I try to use a disk defined as
>
> disk    = [ 'phy:data/faitest-client-generic-hvm-disk,ioemu:hda,w']
>
> (The device is a lvm volume) in my hvm domU, I get the message:
>
> Error: hvm: for qemu vbd type=file&dev=hda~hdd
>
> It seems qemu is expecting to get a file-based disk. What do I need to
> do to get hvm use a physical disk?

I'm using LVM volumes for my HVM disks just fine.  Did you try specifying
the full name of the device with the "/dev/" prefix?  For example:
disk    = [ 'phy:/dev/data/faitest-client-generic-hvm-disk,ioemu:hda,w']

My HVM domU config file has:
disk = ['phy:/dev/virt-blkdev-backend/hvm1,ioemu:hda,w',
'phy:/dev/virt-blkdev-backend/usr,ioemu:hdb,r','phy:/dev/virt-blkdev-disk_io_test/hvm1,ioemu:hdd,w']

and it works fine.  The first entry is the domU boot disk with the root
file system partition, the second entry is the read-only /usr file system,
the third entry is a blank disk for testing disk I/O.

Steve D.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.