![qemu monitor qemu monitor](https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuyubu/20180702/20180702234149.png)
#Qemu monitor serial#
(notice the additional Controller Virtio Serial too). You'll be prompted to add the Spice agent channels, click Yes. Click on Display VNC, and in the Type pulldown, choose Spice. Next we need to change the display from VNC to Spice. Click on Video, and in the Model pulldown, choose, qxl. Click the virtual hardware details (lightbulb).įirst we need to make the Video card a qxl device. Start virt-manager, and open your VM by double clicking on it. This assumes you've already installed a guest with virt-manager or virt-install and it's shut off. And paste it in the host (again, Shift-Ctrl-V to paste in gnome-terminal). (In gnome-terminal it's Shift-Ctrl-C to copy). Grab some text and copy it to the clipboard in the guest. In addition, you'll see the virtio-serial port: Now you can login to the guest, and you'll still see the qxl display device. # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=.0 -chardev spicevmc,id=spicechannel0,name=vdagent So we launch the guest one last time with the complete command line: And finally, you need to specify name=vdagent so spice knows what this channel is for. It's also important that the port's name= is .0, because that's the namespace spice-vdagentd is looking for in the guest. It's important that the virserialport chardev= option matches the id= given the chardev ( spicechannel0 in this example). We need to add a port for spice in that device: -device virtserialport,chardev=spicechannel0,name=.0Īnd we need a spicevmc chardev for that port: -chardev spicevmc,id=spicechannel0,name=vdagent We need to add the virtio-serial device: -device virtio-serial-pci Now stop the guest and we'll build up the hostside qemu-kvm commandline. Be sure the agent is running (and for future, started automatically).įirst the guest side, since the guest is running.
#Qemu monitor install#
We also need to install the spice vdagent in guest. We need to add a virtio-serial device to the guest, and open a port for the spice vdagent. Now the only thing left is to improve the experience byĮnabling the spice agent communication channel between the host and the guest (you wanted copy and paste between host and guest right? ) This will not pop up an SDL window, so launch the client to connect to the guest. To keep it simple, we'll not require authentication and simply bind the server to 127.0.0.1 on port 5900. So first be sure the client is installed: We need to enable the spice server in qemu-kvm. However, this is not enough to use SPICE. (II) qxl: Driver for QXL virtual graphics: QXL 1 You'll see a normal SDL window pop up, and if you poke inside the guest you'll find that X is using the qxl device to display:Ġ0:02.0 VGA compatible controller: Red Hat, Inc. # /usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -vga qxl The simplest part is adding the qxl graphics device to the guest.
#Qemu monitor how to#
Will first show how to do this manually, and second how to do it using the virt-manager tool.įor extensive details on SPICE, visit Manually, using qemu-kvm command line directly This example is based on qemu-kvm (0.15.0) as installed in Fedora 15. Example using SPICE and QXL for improved Graphics experience in the guest