KVM And Vnc Together

Home » CentOS » KVM And Vnc Together
CentOS 2 Comments

Ran into something weird.

I have my machine CentOS 6.2 running KVM guest of Windows 7.
This works fine while I’m in the office…

Then when I remote in using VNC to my machine – the VNC always
works fine. However, when I try to access the KVM session its like
the mouse has lost its brain.

Anyone ran into this?

I startup with this command:
qemu-system-x86_64 -net nic,model=rtl8139 -net user -hda win7.img -usb
-m 4192 -vga std &



2 thoughts on - KVM And Vnc Together

  • I have not had the need to try your scenario.

    Each guest VM can have it’s own vnc console (look at the kvm man
    page). With VNC enabled for your Win7 VM, you can access the Win7
    console directly w/o having to go through your CentOS desktop.

    — Arun Khan

  • Arun Khan writes:

    I’ve seen this behaviior with VMware and Xen also as well as KVM. One level of
    virtualization works fine but two levels of virtualizing the display and the
    mouse appears to be a bit much for the current level of the technology and it
    doesn’t seem to matter which virtualization platform you use.

    The Arun’s response is probably your best bet for acceptable behavior. You just
    need to make the network interface for the VM as visible as your desktop’s.