[libvirt-users] Libvirt fullscreen sdl problem

Hi all, I use libvirt/kvm for my virtualization needs and have a little scerio in mind that I want to implement: a small linux box boots up, launches an X session and after that launches a virtual machine with a fullscreen sdl window, With this I hope to achive several goals: user gets a familiar experience with guest os ( I had windows in mind), near native graphics responsiveness ( we deploy cctv video servers and viewing live video in a virt machine is a must) and security based on isolation from i/o ports. But when I tried this scenario with <graphics type='sdl' display=':0.0' xauth='/home/stein/.XAuthority'/> in xml file I got: linux-aeo3:/etc/libvirt/qemu # virsh start wintest setlocale: No such file or directory error: Failed to start domain wintest error: internal error: early end of file from monitor: possible problem: No protocol specified xcb_connection_has_error() returned true pulseaudio: pa_context_connect() failed pulseaudio: Reason: Connection refused pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: Device or resource busy ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: Device or resource busy audio: Failed to create voice `dac' No protocol specified Could not initialize SDL(No available video device) - exiting Even if I disable audio and get rid of alsa problems, I still get Could not initialize SDL(No available video device) - exiting error. What am I doing wrong? Please not that lauching qemu-kvm with sdl window goes without problems. Thanks in advance!

On 11/21/2014 03:33 AM, Дориан Грей wrote:
Hi all,
I use libvirt/kvm for my virtualization needs and have a little scerio in mind that I want to implement: a small linux box boots up, launches an X session and after that launches a virtual machine with a fullscreen sdl window, With this I hope to achive several goals: user gets a familiar experience with guest os ( I had windows in mind), near native graphics responsiveness ( we deploy cctv video servers and viewing live video in a virt machine is a must) and security based on isolation from i/o ports.
You may be interested in 'virt-viewer --kiosk', which can serve as a starting point for beginning a guest in fullscreen. However, I don't have much experience with sdl graphics to know if that is supported. Why not SPICE graphics? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Has anyone ever tried this? Or this is barely supported scenario? Kind of confused here 2014-11-21 13:33 GMT+03:00 Дориан Грей <stein.hak@gmail.com>:
Hi all,
I use libvirt/kvm for my virtualization needs and have a little scerio in mind that I want to implement: a small linux box boots up, launches an X session and after that launches a virtual machine with a fullscreen sdl window, With this I hope to achive several goals: user gets a familiar experience with guest os ( I had windows in mind), near native graphics responsiveness ( we deploy cctv video servers and viewing live video in a virt machine is a must) and security based on isolation from i/o ports.
But when I tried this scenario with <graphics type='sdl' display=':0.0' xauth='/home/stein/.XAuthority'/>
in xml file I got:
linux-aeo3:/etc/libvirt/qemu # virsh start wintest setlocale: No such file or directory error: Failed to start domain wintest error: internal error: early end of file from monitor: possible problem: No protocol specified xcb_connection_has_error() returned true pulseaudio: pa_context_connect() failed pulseaudio: Reason: Connection refused pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: Device or resource busy ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: Device or resource busy audio: Failed to create voice `dac' No protocol specified Could not initialize SDL(No available video device) - exiting
Even if I disable audio and get rid of alsa problems, I still get Could not initialize SDL(No available video device) - exiting error.
What am I doing wrong?
Please not that lauching qemu-kvm with sdl window goes without problems.
Thanks in advance!
participants (3)
-
Eric Blake
-
Krutskikh Ivan
-
Дориан Грей