Hi Jim,<div>Thanks for your reply!</div><div><br></div><div>I use xm create to create a tap2 disk and it works well  </div><div><div><br></div><div>disk = [ 'tap2:vhd:/root/tapdisk/vhd-f12,hda,w']</div></div><div><br>
</div><div><br></div><div>but virsh dumpxml can't get anything about the disk</div><div><br></div><div><br></div><div>After i apply the patch, i can catch <disk> information by virsh dumpxml</div><div>but it seems that it only recognize "tap" only but not tap2<br>
</div><div><br></div><div><disk type='file' device='disk'></div><div>      <driver name='tap' type='vhd'/></div><div>      <source file='/root/tapdisk/vhd-f12'/></div>
<div>      <target dev='hda' bus='ide'/></div><div></disk></div><div><br></div><div>Afterwards i try to use this xml file to virsh create VM  and  no active disk is found.</div><div><br></div><div>
<br></div><div>Moreover, if i change driver name='tap' to 'tap2' in xml myself,  virsh seems doesn't support this type and raise error :<br><br></div><div>error: POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "tap2" is invalid.'</div>
<div><br></div><div><br></div><div><br></div><div>Should i modify the dumpxml and create  function if i want to enable tap2:vhd ??</div><div>Thank you very much!</div><div><br>Regards,</div><div>Ben</div><div><br><div class="gmail_quote">
2010/8/24 Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@novell.com">jfehlig@novell.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
benian wrote:<br>
> Hi all,<br>
> My libivrt is libvirt-0.8.3<br>
> I would like to add "tap2" recognition when using virsh create and<br>
> dumpxml,<br>
<br>
</div>Ah yes, I have a patch laying laying around that needs to go upstream.<br>
No better time to do that than now ..<br>
<br>
Regards,<br>
<font color="#888888">Jim<br>
<br>
</font></blockquote></div><br></div>