Mailinglist Archive: opensuse-virtual (9 mails)

< Previous Next >
Re: [opensuse-virtual] qemu-kvm question
  • From: Michael Hill <mdhillca@xxxxxxxxx>
  • Date: Wed, 5 Dec 2012 17:27:23 -0500
  • Message-id: <>
Hi Bruce,

On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <brogers@xxxxxxxx> wrote:

I don't claim to be an expert on security, so I won't comment
on the security implications here, but I was able to get qemu-kvm
to use SDL by exporting both the DISPLAY and XAUTHORITY that is set
in your session before doing a sudo -i, within that session.

sudo -i
export DISPLAY=:0.0
export XAUTHORITY=<whatever it was set to before sudo>
qemu-kvm ...

No success...

mike@himon:~> echo $DISPLAY
mike@himon:~> echo $XAUTHORITY
mike@himon:~> sudo -i
root's password:
himon:~ # export DISPLAY=:0
himon:~ # export XAUTHORITY=/var/run/gdm/auth-for-mike-NDRdlY/database
himon:~ # cd /ostree
himon:/ostree # qemu-kvm -vga vmware -cpu core2duo -M pc-0.15 -kernel
/boot/vmlinuz-$(uname -r) -initrd /boot/initramfs-ostree-$(uname
-r).img -hda ostree-qemu.img -m 1024M -vga vmware -append
'rd.plymouth=0 root=/dev/sda ostree=current ' -monitor stdio
Warning: default mac address being used, creating potential for address conflict
QEMU 1.2.0 monitor - type 'help' for more information
(qemu) No protocol specified
Could not initialize SDL(No available video device) - exiting

To unsubscribe, e-mail: opensuse-virtual+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-virtual+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation