Virsh QEMU commands

Windows Guests

virsh # qemu-monitor-command --hmp ci.win10 "info block"
drive-ide0-0-0: /dev/GuestVM/lv8-win10-build (raw)

drive-ide0-0-1: /home/penguin/Downloads/Win10_1709_English_x64.iso (raw, read-only)
    Removable device: not locked, tray open


virsh # qemu-monitor-command --hmp ci.win8 "change drive-ide0-0-1 /home/penguin/Downloads/virtio-win-drivers-20120712-1.iso"

virsh # qemu-monitor-command --hmp ci.win10 "eject drive-ide0-0-0"
Device 'drive-ide0-0-0' is not removable

Linux Guests

attach-interface ci.debian bridge br1 --model virtio --persistent --live
attach-disk filesrv /hosts/bugzilla.img vdb
Tag(s): virsh qemu
Profile picture
斟酌 鵬兄
Wed May 02 2018 11:29:29 GMT+0000 (Coordinated Universal Time)
Last modified: Wed May 09 2018 14:39:44 GMT+0000 (Coordinated Universal Time)
Comments
No comments here.
Do you even comment?
website: 
Not a valid website
Invalid email format
Please enter your email
*Name: 
Please enter a name
Submit
抱歉,Google Recaptcha 服務被牆掉了,所以不能回覆了