[opensuse-virtual] qemu-kvm question
I'm not sure if this is the right place to ask... I'm attempting to boot OSTree: https://live.gnome.org/OSTree/GnomeOSTree ...using the QEMU method. It works on Fedora using this command line: 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 I'd prefer to get it running on openSUSE so I can take it on my laptop. It fails with this error: (qemu) Could not initialize SDL(No available video device) - exiting Is there an easy way to diagnose this? Thanks, Mike -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On 11/29/2012 at 12:52 PM, Michael Hill <mdhillca@gmail.com> wrote: I'm not sure if this is the right place to ask... I'm attempting to boot OSTree:
https://live.gnome.org/OSTree/GnomeOSTree
...using the QEMU method. It works on Fedora using this command line:
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
I'd prefer to get it running on openSUSE so I can take it on my laptop. It fails with this error:
(qemu) Could not initialize SDL(No available video device) - exiting
Is there an easy way to diagnose this?
Thanks,
Mike
Are you remotely logged into a system using ssh? You would need to use ssh -X ... If that's not the issue, check the value of the DISPLAY environment variable. That needs to be valid. Bruce -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Hi Bruce, On Mon, Dec 3, 2012 at 8:22 PM, Bruce Rogers <brogers@suse.com> wrote:
Are you remotely logged into a system using ssh? You would need to use ssh -X ...
I've used 'sudo -i' to log in as root in a terminal window. Root access is required by the disk image.
If that's not the issue, check the value of the DISPLAY environment variable. That needs to be valid.
I'm using DISPLAY=:0.0 ... is that correct? Thanks, Mike -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On 12/4/2012 at 05:03 AM, Michael Hill <mdhillca@gmail.com> wrote: Hi Bruce,
On Mon, Dec 3, 2012 at 8:22 PM, Bruce Rogers <brogers@suse.com> wrote:
Are you remotely logged into a system using ssh? You would need to use ssh -X ...
I've used 'sudo -i' to log in as root in a terminal window. Root access is required by the disk image.
If that's not the issue, check the value of the DISPLAY environment variable. That needs to be valid.
I'm using DISPLAY=:0.0 ... is that correct?
Thanks,
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 ... Hopefully this helps. Bruce -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <brogers@suse.com> 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.
Yeah, it's recommended not to run the test setup where security is a concern.
ie: sudo -i export DISPLAY=:0.0 export XAUTHORITY=<whatever it was set to before sudo> qemu-kvm ...
Hopefully this helps.
Terrific, Bruce, thanks! I'll give it a try. Mike -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Hi Bruce, On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <brogers@suse.com> 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@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <brogers@suse.com> 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.
Hey Bruce, adding the two to the Defaults line in /etc/sudoers did the trick! Thanks again, Mike -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
On 12/6/2012 at 05:15 PM, Michael Hill <mdhillca@gmail.com> wrote: On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <brogers@suse.com> 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.
Hey Bruce, adding the two to the Defaults line in /etc/sudoers did the trick!
Thanks again,
Mike
Glad you got it working. Bruce -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
participants (2)
-
Bruce Rogers
-
Michael Hill