插入Line 6-13所示代码:
1 <!--vnc方式登录,端口号自动分配,自动加1,可以通过virsh vncdisplay来查询--> 2 <graphics type=‘vnc‘ port=‘-1‘ autoport=‘yes‘ listen=‘0.0.0.0‘> 3 <listen type=‘address‘ address=‘0.0.0.0‘/> 4 </graphics> 5 6 <channel type="unix"> 7 <source mode="bind" path="/var/lib/libvirt/qemu/com.redhat.rhevm.vdsm.instance-00000006.sock"/> 8 <target type="virtio" name="com.redhat.rhevm.vdsm"/> 9 </channel> 10 <channel type="unix"> 11 <source mode="bind" path="/var/lib/libvirt/qemu/com.redhat.rhevm.vdsm.0.instance-00000006.sock"/> 12 <target type="virtio" name="com.redhat.rhevm.vdsm.0"/> 13 </channel> 14 15 </devices> 16 </domain>
时间: 2024-10-22 00:12:40