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: <CAGvW9Wd4n0LW6LFPR5KgYyCCmwwBW+fW59kCXOcC=PVH5HvRYQ@mail.gmail.com>
Hi Bruce,

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

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.

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

No success...

mike@himon:~> echo $DISPLAY
:0
mike@himon:~> echo $XAUTHORITY
/var/run/gdm/auth-for-mike-NDRdlY/database
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


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

< Previous Next >
List Navigation