Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qemu KVM Spice QXL X.org X-server KDE - Out of Surfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Sat Jan 16, 2016 9:17 am    Post subject: Qemu KVM Spice QXL X.org X-server KDE - Out of Surfaces Reply with quote

I run Gentoo on my host and in my guest VM.
In the Guest i have install und run xf86-video-qxl and qemu-guest-agent.

I start Qemu with:
Code:
/usr/bin/qemu-system-x86_64 \
-M pc-q35-2.4 \
-cpu host \
-machine accel=kvm \
-smp 4 \
-m 4096 \
-name __vm82__ \
-k de \
-rtc base=localtime \
-drive file=vm82_disk.qed,id=drive-sata0-0-2 \
-realtime mlock=off \
-net nic,model=virtio,macaddr=00:00:00:00:00:82 \
-net tap,ifname=qtap82,script=no,downscript=no \
-vga qxl \
-device qxl,id=video0,ram_size_mb=256,vram_size_mb=256,vgamem_mb=512 \
-spice port=5901,addr=127.0.0.1,disable-ticketing,image-compression=off,jpeg-wan-compression=never,streaming-video=off,zlib-glz-wan-compression=never \
-device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent \
-usbdevice tablet \
-runas sarah


With spicy or remote-viewer i connect to the VM.
The VM runs in KDE often very very slow. I the X.org-Logfiles i see a lot of "out of surfaces" messages.
If i start Firefox the VM runs more slowly and the "out of surfaces" messages comes 10 a second or so.

Whats wrong here?

How can i fix this problem?
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Mon Jan 18, 2016 10:39 pm    Post subject: Reply with quote

What have i to do?
Back to top
View user's profile Send private message
zino
n00b
n00b


Joined: 14 Jan 2016
Posts: 21
Location: Switzerland

PostPosted: Tue Jan 19, 2016 2:42 am    Post subject: Reply with quote

Do you have a configuration file for X?

If not create a file named 20-qxl.conf containing

Code:
 Section "Device"
   Identifier "qxl"
   Driver     "qxl"
   Option  "DPI"   "96 x 96"
   Option "ENABLE_IMAGE_CACHE" "True"
   Option "ENABLE_FALLBACK_CACHE" "False"
   Option "ENABLE_SURFACES" "False"
EndSection


and put into your /etc/X11/xorg.conf.d/ directory of your Gentoo guest system

This should speed up things but don't expect any miracles.
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Tue Jan 19, 2016 5:16 am    Post subject: Reply with quote

Thanks for your info. No, i do not have set this. I will try and report.
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Tue Jan 19, 2016 9:26 pm    Post subject: Reply with quote

Damn, it seem to be working now - how do you know that?
Thank you very very much for helping me.
Back to top
View user's profile Send private message
zino
n00b
n00b


Joined: 14 Jan 2016
Posts: 21
Location: Switzerland

PostPosted: Thu Jan 21, 2016 11:08 pm    Post subject: Reply with quote

Glad you got it working.

I really can't remember where I got the information from, but I do recall that it took a while to find it.

By the way, after looking at your initial post again, I noticed that you didn't mention installing spice-vdagent on your guest system. If you haven't done so already I'd recommend you to install it and add it to your default runlevel, since it's apparently needed for certain spice features to work.
On the other hand, I don't think that qemu-guest-agent is absolutely necessary to run a KVM guest with spice.
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Fri Feb 12, 2016 6:49 pm    Post subject: Reply with quote

Do you know what i have to do to put the spicy windows with the mouse, and move it to the sitze i will have and the vm inside the windows change the resolution automaticly?
Back to top
View user's profile Send private message
zino
n00b
n00b


Joined: 14 Jan 2016
Posts: 21
Location: Switzerland

PostPosted: Sun Feb 14, 2016 4:14 pm    Post subject: Reply with quote

That's supposed to be a functionality that you'll get by installing spice-vdagent on your guest system.

However, I can't properly test it with my own setup since I'm using a tiling window manager on the host system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum