[libvirt] virsh create and virsh dumpxml certain code location

Jim Fehlig jfehlig at novell.com
Tue Aug 24 17:31:14 UTC 2010


benian wrote:
> 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.

Opps, I forgot to account for tap2 in functions that generate sexpr.  V2
attached.

Regards,
Jim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-blktap2-support-to-xend-driver.patch
Type: text/x-diff
Size: 3786 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100824/26e8f6ef/attachment-0001.bin>


More information about the libvir-list mailing list