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

[xen-users] does libvirt support VHD disk tpye?

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [xen-users] does libvirt support VHD disk tpye?
From: <ben_ian@xxxxxxxxxxxx>
Date: Tue, 10 Aug 2010 14:07:47 +0800
Delivery-date: Thu, 12 Aug 2010 06:19:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acs4UVm66SUM0MIHQ1qeXAN312pzJgAALJGw
Thread-topic: [xen-users] does libvirt support VHD disk tpye?

Sorry for my fault that I just sent  this mail to xen-devel  first.

 

 

Hi,everyone

I am trying to use VHD disk format on guestVM.

 

My environment is  fedora12+ xen-4.0.1-rc6 + xen-stable/2.6.32.15+libvirt-0.8.3

 

I success on booting VM in VHD disk correctly using “xm create VM.cfg” and everything runs alright

 

Where disk = [ "tap2:vhd:/root/tapdisk/vhd-f12,hda,w"]   in VM.cfg

And “vhd-f12” is a VHD type image file created by  vhd-util.

 

However, when I trying to use virsh dumpxml  to dump guestVM’s xml file, there’s no any disk information in the xml.

 

 

On the other hand, I also tried to add the following part into xml manually and then use “virsh create VM.xml“ to create guestVM

 

<disk type='file' device='disk'>

      <driver name='tap' type='vhd'/>

      <source file='/root/tapdisk/vhd-f12'/>

      <target dev='hda' bus='ide'/>

</disk>

 

but guestVM can be started without error but guestVM cannot get disk device correctly.

 

If I replace driver name='tap’ to ‘tap2’, libvirt raise error:

(xend.err 'Error creating domain: Block device type "tap2" is invalid.')

 

 

Is anyone has idea how can I enable vhd format using libvirt?

 

Thank very much!

 

Ben

 

 

 

 

 

TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [xen-users] does libvirt support VHD disk tpye?, ben_ian <=