Re: virsh create and virsh dumpxml certain code location

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

 



Hi Jim,
Thanks for your reply!

I use xm create to create a tap2 disk and it works well  

disk = [ 'tap2:vhd:/root/tapdisk/vhd-f12,hda,w']


but virsh dumpxml can't get anything about the disk


After i apply the patch, i can catch <disk> information by virsh dumpxml
but it seems that it only recognize "tap" only but not tap2

<disk type='file' device='disk'>
      <driver name='tap' type='vhd'/>
      <source file='/root/tapdisk/vhd-f12'/>
      <target dev='hda' bus='ide'/>
</disk>

Afterwards i try to use this xml file to virsh create VM  and  no active disk is found.


Moreover, if i change driver name='tap' to 'tap2' in xml myself,  virsh seems doesn't support this type and raise error :

error: POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "tap2" is invalid.'



Should i modify the dumpxml and create  function if i want to enable tap2:vhd ??
Thank you very much!

Regards,
Ben

2010/8/24 Jim Fehlig <jfehlig@xxxxxxxxxx>
benian wrote:
> Hi all,
> My libivrt is libvirt-0.8.3
> I would like to add "tap2" recognition when using virsh create and
> dumpxml,

Ah yes, I have a patch laying laying around that needs to go upstream.
No better time to do that than now ..

Regards,
Jim


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]