Set up Spice-Gtk 0.9 with USB redirection on Ubuntu Precise

******************************************************************************
UPDATE on 02/14/2012 Set up Spice-Gtk 0.9 on Ubuntu Oneiric
******************************************************************************
New upstream release.
– add USB redirection support, see Hans comments in the log and that
post for details: http://hansdegoede.livejournal.com/11084.html
– introduce SpiceGtkSession to deal with session-wide Gtk events, such
as clipboard, instead of doing it per display
– many cursor and keyboard handling improvements
– handle the new “semi-seamless” migration
– support new Spice mini-headers
– better coroutines: fibers on windows & jmp on linux
– add Vala vapi bindings generation
– Add command line options for setting the cache size and the glz
window size
– Add a USB device selection widget to libspice-client-gtk
– many bug fixes and code improvements
Build requires spice-protocol 0.10.1 and the most recent usbredir 0.3.3
******************************************************************************************
Link to PPA Set up Spice-Gtk 0.9 on Ubuntu Precise (v.3)
******************************************************************************************
$ sudo add-apt-repository ppa:bderzhavets/lib-usbredir64
$ sudo apt-get update
$ sudo apt-get install qemu-kvm qemu qemu-common qemu-utils \
spice-client libusb-1.0-0 libusb-1.0-0-dev \
libusbredir libusbredir-dev usbredir-server \
libspice-protocol-dev libspice-server-dev \
libspice-client-glib-2.0-1 libspice-client-glib-2.0-dev \
libspice-client-gtk-2.0-1 libspice-client-gtk-2.0-dev \
libspice-client-gtk-3.0-1 libspice-client-gtk-3.0-dev \
python-spice-client-gtk spice-client-gtk

$ sudo groupadd libvirtd
$ sudo adduser $USER libvirtd
RELOGIN
$ sudo apt-get install virtinst virt-manager virt-viewer
$ sudo ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/

To start default network :-

sudo virsh net-start default
sudo virsh net-autostart default

Works with QEMU-KVM 1.0 with no special patch

You can now redirect already plugged in devices / un-redirect devices without unplugging them, go to the Input menu and click “Select USB Devices for redirection”.









However , I still have to run “sudo spicy” to get USB redirection on Ubuntu. Otherwhise, following error appears on console :-
“spice-client-glib-usb-helper: Error setting facl: Operation not permitted”

3 Responses to Set up Spice-Gtk 0.9 with USB redirection on Ubuntu Precise

  1. […] is filed underneath Spice-Gtk 0.9 Spice 0.10.1. You can follow any responses to this entrance by a RSS 2.0 feed. You can leave a response, or trackback from your possess […]

  2. […] New upstream release.Add USB redirection support, see Hans comments in the log and thatpost for details: http://hansdegoede.livejournal.com/11084.html ;introduce SpiceGtkSession to deal with session-wide Gtk events, such as clipboard, instead of doing it per display ;many cursor and keyboard handling improvements ;handle the new “semi-seamless” migration ;support new Spice mini-headers ;better coroutines: fibers on windows and jmp on linux ;add Vala vapi bindings generation ;Add command line options for setting the cache size and the glz window size ;Add a USB device selection widget to libspice-client-gtk ;many bug fixes and code improvements ;    Linux Read the original post on LXer… […]

Leave a comment