QEMU on OS X (macOS) hosts. While QEMU's main host platform is Linux, it is also supported on operating systems for Apple's Mac computers (known as OS X or macOS).The official support policy covers the last two released versions of OSX; QEMU might work on older versions, but it is not guaranteed and it might not even compile on older versions.
Qemu-system-x8664 -hda 9front.img -enable-kvm -boot d -vga std -m 2512 -cpu host -device intel-hda -device hda-duplex I am running a ICCCM compliant window manager (windowmaker) ontop of X11 using proprietary nvidia drivers. QEMU can emulate several types of VGA card. The card type is passed in the -vga type command line option and can be std, qxl, vmware, virtio, cirrus or none. With -vga std you can get a resolution of up to 2560 x 1600 pixels without requiring guest drivers. This is the default since QEMU 2.2. QXL is a paravirtual graphics driver with. QEMU can emulate several graphics cards: -vga cirrus - Simple graphics card. Every guest OS has a built-in driver.-vga std - Support resolutions = 1280x1024x16. Linux, Windows XP and newer guest have a built-in driver.-vga vmware - VMware SVGA-II, more powerful graphics card.
Jump to:navigation, search
Example using SPICE and QXL for improved Graphics experience in the guest
This example is based on qemu-kvm (0.15.0) as installed in Fedora 15.Will first show how to do this manually, and second how to do it using the virt-manager tool.
For extensive details on SPICE, visit http://spice-space.org
Manually, using qemu-kvm command line directly
The simplest part is adding the qxl graphics device to the guest. By adding
-vga qxl
: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:
Qemu Vga Options
However, this is not enough to use SPICE. We need to enable the spice server in qemu-kvm. We also need a client to view the guest. So first be sure the client is installed:
To keep it simple, we'll not require authentication and simply bind the server to 127.0.0.1 on port 5900.
This will not pop up an SDL window, so launch the client to connect to the guest.
We're getting closer. Now the only thing left is to improve the experience byenabling the spice agent communication channel between the host and the guest (you wanted copy and paste between host and guest right? ;)
This part is a bit arcane. We need to add a virtio-serial device to the guest, and open a port for the spice vdagent. We also need to install the spice vdagent in guest. Be sure the agent is running (and for future, started automatically).
First the guest side, since the guest is running.
Now stop the guest and we'll build up the hostside qemu-kvm commandline.We need to add the virtio-serial device:
-device virtio-serial-pci
We need to add a port for spice in that device: -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0
And we need a spicevmc chardev for that port: -chardev spicevmc,id=spicechannel0,name=vdagent
It's important that the virserialport
chardev=
option matches the id=
given the chardev (spicechannel0
in this example). It's also important that the port's name=
is com.redhat.spice.0
, because that's the namespace spice-vdagentd is looking for in the guest. And finally, you need to specify name=vdagent
so spice knows what this channel is for.Qemu Vga Drivers For Mac Windows 7
So we launch the guest one last time with the complete command line:
And kick off a spice client:
Now you can login to the guest, and you'll still see the qxl display device. In addition, you'll see the virtio-serial port:
Now test it out. Grab some text and copy it to the clipboard in the guest.(In gnome-terminal it's Shift-Ctrl-C to copy). And paste it in the host (again, Shift-Ctrl-V to paste in gnome-terminal).
Enabling SPICE using virt-manager
This assumes you've already installed a guest with virt-manager or virt-install and it's shut off.
Start virt-manager, and open your VM by double clicking on it. Eragon video game. Click the virtual hardware details (lightbulb).
![Free Free](/uploads/1/1/7/7/117793229/125646618.jpg)
First we need to make the Video card a qxl device. Click on Video, and in the Model pulldown, choose, qxl. And Apply.
Next we need to change the display from VNC to Spice. Click on Display VNC, and in the Type pulldown, choose Spice. And Apply. You'll be prompted to add the Spice agent channels, click Yes. (notice the additional Controller Virtio Serial too).
![For For](/uploads/1/1/7/7/117793229/418197471.jpg)
Now start the VM. virt-manager has a spice-gtk client built-in. So you don't need to fuss with a manual spice client like you did above. You still need to be sure that the guest has spice-vdagent installed and running. In the guest:
And you're done. Test copy and paste and enjoy.
Retrieved from 'https://www.linux-kvm.org/index.php?title=SPICE&oldid=173583'