Linux VM performance (Hyper-V, others?)

Status
Not open for further replies.

Zen Shepherd

Ars Tribunus Angusticlavius
6,877
Subscriptor
My main box has an i7-2600K on an Asus P8P67 with 16 gigs of RAM, coupled with a 256 gig Samsung 830 SSD. Appropriate virtualization options are set in the BIOS.

Seems like this should be plenty fast enough to run a virtual machine and have it feel native.

I have a "generation 2" Hyper-V Ubuntu VM, but when I connect to it, it still feels laggy. There is a small but noticeable delay for everything -- mouse cursor movement, dragging a window, typing at the console, etc. It's not much, but it's enough to make the entire experience shitty. And god forbid I would want to remote to the VM over the LAN using VNC or something -- that is so slow as to be completely unusable; although that is probably more of a VNC and/or Ubuntu issue (?) than Hyper-V.

So what's the secret to "feels like native" VM performance? Can this be achieved with free solutions?
 
[url=http:/civis/viewtopic.php?p=28240667#p28240667:oeawnl63 said:
Lone Shepherd[/url]":eek:eawnl63]So what's the secret to "feels like native" VM performance? Can this be achieved with free solutions?

I don't know what the secret is, but feels-like-native can be achieved with free solutions. You can try VMWare Player or VirtualBox.

How old is your Windows install? Is it old enough for WinRot to be a factor?
 

afidel

Ars Legatus Legionis
18,433
Subscriptor
[url=http:/civis/viewtopic.php?p=28242239#p28242239:1n8fvf81 said:
Korpo[/url]":1n8fvf81]What version of Ubuntu?
What's the OS of the machine running Hyper-V?

In any case though, Hyper-V is mainly geared towards datacenter-type virtualization rather than desktop-type virtualization. It's not really geared towards providing great video performance, because that's not something a server in a datacenter usually needs to have.
Yeah, the version is going to be very important as the jump from generic drivers to the hyper-v compatible virtualization drivers being included in the distro would be huge.
 
[url=http:/civis/viewtopic.php?p=28255393#p28255393:z3mhxtg8 said:
Broslovski[/url]":z3mhxtg8]Possibly silly question: are there hyper-v client extensions for ubuntu, like there are for solutions like vmware? I've had similar laggy performance before, usually resolved by installing client extensions...
Yes, they're built into the newer versions of Ubuntu:
http://technet.microsoft.com/en-us/libr ... 31029.aspx

I believe you can install them in previous versions via some Linux wizardry, if you have a real, real need to run 12.04 or something.
 

carwyn

Seniorius Lurkius
2
I hit this problem too and immediately assumed it was a graphics problem. It seems though to be more of an input device latency problem, particularly to do with the synthetic mouse support. From what I could tell it also affects keyboard input but that's less noticeable than mouse lag.

Try playing a video or something that's 2D graphics intensive (there's no decent 3D support anyway). I was managing to play HD video .. which surely shouldn't work if this is purely a graphics issue?

X2Go and even RDP are faster than the Hyper-V VM Console, unfortunately those don't do 3D at all so I gave up on getting Gnome 3 to work nicely.

I may invert my setup and put linux on the bottom with a pcie pass-through to a windows VM, i.e. intel GPU for linux and discrete graphics for the VM (admittedly you have to use a second monitor or second monitor input for this). My motivation for this is to get full speed 3D for gaming and a workable linux desktop. Windows on the bottom or pass-through seem to be the best options for this.

See: http://vfio.blogspot.co.uk/ in particular the more recent experiments with EFI and OVMF only
 
Status
Not open for further replies.