Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

qemu + spice with spicec/spicy

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
eleanor
l33t
l33t
User avatar
Posts: 666
Joined: Mon Nov 01, 2004 4:23 am

qemu + spice with spicec/spicy

  • Quote

Post by eleanor » Tue Dec 03, 2013 1:00 pm

Hi,

I have a problem with connecting to qemu guest virtual machine by using SPICE with clients:
  • spicec
  • spicy
Spicec works, but it automatically grabs my keyboard/mouse, which is undesirable, because then I cannot use my host system shortcuts anymore. On the following link I was reading that it's possible to disable automatic keyboard/mouse grab by setting SPICE_NOGRAB to 1: http://lists.freedesktop.org/archives/s ... 14643.html

The following command doesn't work, and spicec will still grab my keyboard/mouse:
# export SPICE_NOGRAB=1; spicec -h 127.0.0.1 -p 5900

Spicy doesn't grab keyboard/mouse by default, which is ok, but when connecting to the virtual machine, the screen doesn't get updated. When I connect to the guest VM and start a program like Chrome, it starts, but isn't visible on the screen. The really weird part is that if I move my mouse over the desktop, the mouse pointer will change whenever occurring the screen border, letting me resize the window although I don't see it. If I reconnect with spicy I can see the window now and it's like this for everything I do regarding screen updating: closing the window, starting a new program, pressing the start menu, etc.

Any ideas how to solve any of the above problems?
Top
paradigm-X
Apprentice
Apprentice
Posts: 168
Joined: Thu Sep 19, 2013 6:04 pm

  • Quote

Post by paradigm-X » Fri Dec 06, 2013 7:18 pm

Try adding a tablet device to the Qemu guest, which may help prevent the mouse grabbing issue. It worked for me when I was having a similar issue. It is also recommended in such case.
Top
eleanor
l33t
l33t
User avatar
Posts: 666
Joined: Mon Nov 01, 2004 4:23 am

  • Quote

Post by eleanor » Fri Dec 06, 2013 9:47 pm

Hi,

I'm already using the "-usbdevice tablet" option now, but that only synces the mouse pointers correctly, it doesn't have anything to do with mouse grabbing: that's the job of the spice client.
Top
paradigm-X
Apprentice
Apprentice
Posts: 168
Joined: Thu Sep 19, 2013 6:04 pm

  • Quote

Post by paradigm-X » Fri Dec 06, 2013 11:31 pm

> ... it doesn't have anything to do with mouse grabbing: that's the job of the spice client.

Hmm. We must be using different version of Google. You may want to double-check your references because I found quite a few that said on the contrary that the tablet setting can indeed affect grabbing of the mouse one way or another:


http://wiki.qemu.org/download/qemu-doc.html

"‘tablet’

Pointer device that uses absolute coordinates (like a touchscreen). This means qemu is able to report the mouse position without having to grab the mouse. Also overrides the PS/2 mouse emulation when activated."



https://bugs.launchpad.net/qemu/+bug/906864

"Always mouse grabbing with -usbdevice tablet"

QEMU
Bugs
Bug #906864

----------

Also, as I mentioned, it did indeed have a similar effect on one of my VMs.
Top
eleanor
l33t
l33t
User avatar
Posts: 666
Joined: Mon Nov 01, 2004 4:23 am

  • Quote

Post by eleanor » Sat Dec 07, 2013 8:23 am

Hi,

What I'm trying to say is that spice client also affects when the mouse gets grabbed or not. I'm using the tablet option and the mouse gets grabbed with spicec, but not with spicy, which is why I'm trying to use spicy, but it doesn't work (the problem I already described).

Maybe you can post your whole qemu-kvm command so I can try it out with exact settings as you have?

I should probably also mention I'm running Windows 7 guest VM inside qemu.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic