VM Ubuntu performance issue with spice (browser)

Hey folks,

i created a VM and installed Ubuntu on it. But the Spice viewer (browser) is incredible slow. Moving the mouse, clicking or keyboard commands, are not working or with a delay of multiple seconds.

I’ve tried different solutions but nothing is working:

  • Higher memory → up to 16 GiB and no minimun memory set
  • disk from AHCI to virtIO


I’ve red that using the spice viewer desktop client is solving the problem. But i don’t want to install somewhere a windows machine just for this purpose.

You don’t need a Windows machine. What is your desktop machine? If it’s not Windows, maybe it’s Linux? Let me know. There are other Spice clients for other desktops. But many have had trouble with browser based so spice client definitely best choice.

You are assigning 4 cores with 8 threads each.

Thats 32 Threads !

If you want 8 Threads, you need to enter it as 4 cores, 2 threads

Also, i would try without CPU sets first.

If nothing helps, sometimes a HDMI dummy plug solves this problem. Not sure if this also helps with spice, it does with other remote software if you have a GPU assigned/passed through.

Browser based SPICE sucks. I have never used it for anything more than the initial OS install. For proper remote access, use something guest native (xrdp, etc).

As mentioned as well though, you are possibly(?) setting this up wrong - I’m assuming you have a 4-Core/8-Thread machine, in which case you would want to be setting “Cores” to 4 and “Threads” to 2. CPU Set also starts from 0.

Possibly stupid question, but you have installed “ubuntu_server” “for docker”. Why are you using a SPICE viewer in the first place? Have you installed a DE (if so, why??), would it not be easier to use SSH?

1 Like

Of course, an even better option might be to use a Jailmaker Sandbox to run docker.

I demonstrate it in this video

omg thanks, i thought its the total amount of threads and not per core …

@Stux
thanks, i will have a look at it. Is it also easy to migrate with the new update from ix in a few month?

Yes.

I’ve already tested the migration and it is easy.

I’m waiting for the apps support to progress further before making a migration video.

oh wow nice, ok i will check your video out! Thanks.

I’ve had this issue too, even using non-browser options. Swapping VM OS away from Ubuntu fixed it. Specifically, Devuan xfce. Not ideal, but it worked.

1 Like

Hah, didn’t even look as his VM options, lol. I use spice for everything, it’s wonderful on Linux and super fast.