如何使用qcow2创建虚拟机

<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/> <!--注意⽂件格式-->
<source file='/root/fly-kvm/fly-1.qcow2'/> <!--qcow⽂件-->
论防卫过当
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
smw工法桩<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>    </controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>    </controller>
<interface type='bridge'> <!--⽹卡1-->
<mac address='52:54:00:84:b0:f2'/>
<source bridge='br1'/>
<target dev='vnet3'/>
<model type='rtl8139'/>
<alias name='net0'/>                          <!--注意slot为pci插槽-->
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>    </interface>
爱英优选
<interface type='bridge'> <!--⽹卡2-->
<mac address='52:54:00:5d:a5:42'/>
<source bridge='br2'/>
<target dev='vnet4'/>
<model type='rtl8139'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>    </interface>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'/>
皂基<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='5903' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
pbo纤维</graphics>
<sound model='ich6'>
<alias name='sound0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>    </sound>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>    </video>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>    </memballoon>
</devices>盘条
<seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-98c38a09-395b-d7e9-81e8-44d46ef7d61c</label>
<imagelabel>libvirt-98c38a09-395b-d7e9-81e8-44d46ef7d61c</imagelabel>  </seclabel>
</domain>

本文发布于:2024-09-24 00:17:54,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/103856.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:注意   格式   插槽
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议