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-users

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

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] using physical disks with HVM
From: Steve Dobbelstein <steved@xxxxxxxxxx>
Date: Mon, 14 Aug 2006 10:33:28 -0500
Delivery-date: Mon, 14 Aug 2006 08:34:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0608131249q7a7a455td2a5583a1f9a1ae4@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
"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

<Prev in Thread] Current Thread [Next in Thread>