SPICE

From the Linux and Unix Users Group at Virginia Teck Wiki
Revision as of 20:28, 30 November 2012 by imported>Mutantmonkey
Jump to: navigation, search

Filesystem sharing

Note: There is a bug in virt-manager that causes the Filesystem option to be unavailable even though it will work on your system.

  • Edit your guest's XML file with virsh (replace <name-of-guest> with the name of your guest VM):
virsh -c qemu:///system edit <name-of-guest>
  • Add something similar to the following to your XML file, just above </devices>:
<filesystem type='mount' accessmode='passthrough'>
    <source dir='/path/to/share'/>
    <target dir='share'/>
    <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</filesystem>
  • Quit your text editor. You can run the edit command again or check in virt-manager to make sure that the filesystem device you just added shows up.
  • Add this line to /etc/fstab on your guest:
share /mnt 9p trans=virtio,version=9p2000.L 0 0
  • Put the following in /etc/modules-load.d/9p.conf on your guest:
fscache
9p
9pnet_virtio

Troubleshooting

Graphical corruption or lag with QXL video driver

  • Add the following to /etc/X11/xorg.conf.d/20-qxl.conf:
Section "Device"
    Identifier "qxl"
    Driver     "qxl"
    Option "ENABLE_SURFACES" "False"
EndSection
  • Reboot or restart X

Scroll wheel not working

The current version of x86-input-evdev has a bug that prevents scroll wheels from being used with absolute input devices. There is a patch available that has been applied to the Fedora package by default, and mutantmonkey has made an AUR package that includes this patch. An extracted and update version is also available.