Date: Thu, 29 Jan 2015 09:25:21 -0600 From: "William A. Mahaffey III" <wam@hiwaay.net> To: "FreeBSD Questions !!!!" <freebsd-questions@freebsd.org> Subject: Re: Is QEMU working/reliable under .... Message-ID: <54CA50E1.2060607@hiwaay.net> In-Reply-To: <54C9B188.2050808@cyberleo.net> References: <54C7C62A.5030605@hiwaay.net> <20150127210422.GA27921@slackbox.erewhon.home> <54C838CE.7040502@hiwaay.net> <20150128071441.GA29698@slackbox.erewhon.home> <54C8EFF3.6050803@hiwaay.net> <54C8FB09.5030305@cyberleo.net> <54C90E98.3080304@hiwaay.net> <54C9B188.2050808@cyberleo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/28/15 22:05, CyberLeo Kitsana wrote: > On 01/28/2015 10:30 AM, William A. Mahaffey III wrote: > <snip> >> [root@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@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? > Someone else already pointed out that running qemu as root is unnecessary :-). I suppose my answer would be 'out of ignorance' (I *think* I recall you had to do that under FC14, the last time I used it there was several years back). In any event, I copied the .Xauthority from my $USER to /root & all went well. I have the VM (guest) setup & can boot it from $USER (Hooray, couldn't do that under FC14), so I am relatively happy. The guest can't see the host, which is a problem, my read of the man page & the qemu help output implies that I can fix this on the fly w/ a combination of more args to qemu &/or host configuration. I will be back w/ questions there if needed, but I seem to be OK for now. Thanks to all who assisted :-) !!!! -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54CA50E1.2060607>