LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 03-26-2010, 12:21 PM   #1
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 30

Rep: Reputation: 1
KVM: Mouse under Windows Guest performs way better than under Centos Guest


Hi all,
I'm running KVM on a Fedora 12 host. I currently have 2 VMs:
- One running Windows 2003
- One running CentOS 5.4 (32 bit)

When I have both consoles open if I hover over my Windows console it immediately grabs my mouse and I can just click in the window as if it's a normal application on my Linux desktop. That's the way I like it to be. Under my CentOS kvm however, when I hover the mouse over the console I first have to click in the console to enable the mouse in the VM. The mouse is rather bumpy there, making it quite difficult to position it where I want to (hard to click the menu for example). Also I have to press alt-tab to ungrab it.
My question: is there a way to make the mouse in my CentOS VM behave the same as in my Windows VM?

While I'm here anyway, is there a way to enable the VMs to be used with a VNC viewer from another computer than the host?
 
Old 03-28-2010, 01:29 PM   #2
UnderV
Member
 
Registered: Mar 2010
Posts: 38

Rep: Reputation: 18
I use CentOS 5 as host, but in fedora should be almost the same.

To assign vnc server to virtual machine:
1. Open Virtual Machine Manager
2. Add hardware called "Graphic" to guest
3. Choose VNC server.
4. Choose VNC port (usually random)
5. Allow/disable to listen on public network
6. Create password for VNC session
7. Run guest machine

Thats all.

I don't know about "bumpy" mouse You have, but if Your real cursor doesn't have precise position in guest machine then just add hardware called "input -> EvTouch USB graphic Tablet" and configure guest xorg.conf to use it. Here is more detailed description: http://kbase.redhat.com/faq/docs/DOC...0000000HjBZAA0
 
1 members found this post helpful.
Old 03-29-2010, 03:09 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
This is because qemu connects the mouse as an emulation of a tablet device.

Try to use this in xorg.conf in the VM:
Quote:
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Tablet" "SendCoreEvents"
InputDevice "Mouse" "CorePointer"
EndSection

Section "InputDevice"
Identifier "Mouse"
Driver "void"
#Option "Device" "/dev/input/mice"
#Option "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
Identifier "Tablet"
Driver "evdev"
Option "Device" "/dev/input/event2"
Option "CorePointer" "true"
EndSection
 
Old 03-29-2010, 04:20 AM   #4
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 30

Original Poster
Rep: Reputation: 1
The RedHat knowledge base article explained it rather well. My mouse is working well now and basically just like in a windows guest so my goal is reached. Also the VNC tip worked, so thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM Guest Crashes after 1 to 3 days Sander88 Linux - Virtualization and Cloud 5 03-18-2010 10:23 AM
Installing windows server as a kvm guest on ubuntu 8.10 (interpid) vganesh Linux - Virtualization and Cloud 2 10-19-2009 03:56 AM
KVM Hypervisor and Guest OS setup? Help! sheepy Linux - Server 3 10-15-2009 08:45 PM
LXer: Installing Windows XP As A KVM Guest On Ubuntu 8.10 Desktop LXer Syndicated Linux News 0 02-15-2009 10:30 AM
Are KVM guest able to use CPU features ? PlatinumX Linux - Hardware 1 01-03-2009 09:30 AM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration