11.3.
11.3.1. 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
警告
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
virt-xml testguest --add-device --disk /var/lib/libvirt/images/newdisk.qcow2,format=qcow2,size=20 Domain 'testguest' defined successfully. Changes will take effect after the domain is fully powered off.
# virt-xml testguest --add-device --disk /var/lib/libvirt/images/newdisk.qcow2,format=qcow2,size=20 Domain 'testguest' defined successfully. Changes will take effect after the domain is fully powered off.Copy to Clipboard Copied! Toggle word wrap Toggle overflow virt-xml testguest2 --add-device --update --hostdev 002.004 Device hotplug successful. Domain 'testguest2' defined successfully.
# virt-xml testguest2 --add-device --update --hostdev 002.004 Device hotplug successful. Domain 'testguest2' defined successfully.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
11.3.2. 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
virt-xml testguest --edit --cpu host-model,clearxml=yes Domain 'testguest' defined successfully.
# virt-xml testguest --edit --cpu host-model,clearxml=yes Domain 'testguest' defined successfully.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
virsh define testguest.xml
# virsh define testguest.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
注意
11.3.3. 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
virt-xml testguest --remove-device --disk target=vdb Domain 'testguest' defined successfully. Changes will take effect after the domain is fully powered off.
# virt-xml testguest --remove-device --disk target=vdb Domain 'testguest' defined successfully. Changes will take effect after the domain is fully powered off.Copy to Clipboard Copied! Toggle word wrap Toggle overflow virt-xml testguest2 --remove-device --update --hostdev type=usb Device hotunplug successful. Domain 'testguest2' defined successfully.
# virt-xml testguest2 --remove-device --update --hostdev type=usb Device hotunplug successful. Domain 'testguest2' defined successfully.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
virsh define testguest.xml
# virsh define testguest.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow