添加xml文件:

 sheepdog+libvirt 随笔

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

官方xml文件:

 1 <disk type='network'>
 2     <driver name="qemu" type="raw" io="threads" ioeventfd="on" event_idx="off"/>
 3     <source protocol="sheepdog" name="image_name">
 4       <host name="hostname" port="7000"/>
 5     </source>
 6     <target dev="hdb" bus="ide"/>
 7     <boot order='1'/>
 8     <transient/>
 9     <address type='drive' controller='0' bus='1' unit='0'/>
10  </disk>

实际测试发现,qemu需要添加path才支持部分功能:如 ioeventfd="on" event_idx="off"和<transient/>

部分patch地址:https://www.redhat.com/archives/libvir-list/2011-August/msg00555.html

实践可用xml文件:

1 <disk type='network'>
2     <driver name="qemu" type="raw" io="threads"/>
3     <source protocol="sheepdog" name="image_name">
4       <host name="hostname" port="7000"/>
5     </source>
6     <target dev="hdb" bus="ide"/>
7     <boot order='1'/>
8     <address type='drive' controller='0' bus='1' unit='0'/>
9 </disk>

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄