Is QEMU working/reliable under ....

CyberLeo Kitsana cyberleo at cyberleo.net
Thu Jan 29 04:05:32 UTC 2015


On 01/28/2015 10:30 AM, William A. Mahaffey III wrote:
<snip>
> [root at kabini1, WinXP, 10:21:44am] 503 % qemu-system-i386 -cdrom
> ../../../ISOs/winxp.iso -hda HDD.img -m 256 -boot d -cpu athlon -vga std
> -no-acpi -localtime
> Invalid MIT-MAGIC-COOKIE-1 key
> (<unknown>:20227): Gtk-WARNING **: cannot open display: :0.0
> [root at kabini1, WinXP, 10:21:48am] 504 %
> 
> I am logged into root via 'su' from my regular user, rxvt-2.6.4_6
> terminal window, system tcsh, xfce-4.10_7 desktop,
> xorg-server-1.14.7_1,1, FreeBSD 9.3-RELEASE-p5 .... The su process
> doesn't get the graphics environment set correctly for root, I see this
> a lot :-/ .... What do I need to do to get the GUI to display for me ?
> TIA & thanks for your reply.

Either authorize root by running this, as the user logged into X:

xhost +si:localuser:root

or copy the xauth cookie into root's account using something like the
following:

sh -c 'xauth list "${DISPLAY}" | sed -e "s/^/add /" | sudo xauth'

But I suppose a better question is: why are you running qemu as root?

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo at CyberLeo.Net>

Furry Peace! - http://www.fur.com/peace/


More information about the freebsd-questions mailing list