On Wed, Nov 24, 2010 at 10:38:19PM +0300, Michael Tokarev wrote: > severity 604844 wishlist > retitle 604844 request saner default behavour when run as root and $DISPLAY > is not accessible > tags 604844 + confirmed > thanks > > 24.11.2010 22:10, Hugo Mills wrote: > > Package: qemu-kvm > > Version: 0.12.5+dfsg-4 > > Severity: important > > > > > > When starting a VM with SDL video output, I end up with a black > > screen containing a (blinking) text-mode cursor in the top left > > corner. The kvm process dies immediately. It is impossible to > > console-switch to a text VT (Ctrl-Alt-F1), or indeed do anything at > > all from the main display. Using VNC video output for the guest works > > OK. > > Please don't run kvm as root without $DISPLAY set and without specifing > VNC output. This is the only way to let libSDL to open framebuffer > console on the same VT as your X is running, and thus ruin X -- only > when running as root it has necessary permissions to do that.
h...@ruthven:~ $ sudo bash -c 'echo $DISPLAY' :0.0 $DISPLAY _is_ set. This has always worked before now -- it's only a recent change (last couple of months, I think). > This is on the same theme as complaining that `rm -rf /' destroys your > system - yes it does when run as root, don't do that. I understand this > is not right comparison - rm is designed to remove files, while kvm is > not designed to ruin X session. I'll settle for some way of starting a qemu/kvm session as an ordinary user that will let me set up bridged networking for the resulting VM. That way, I won't need to run as root... Possibly also something that detects that SDL is going to do Bad Things and warns you about it? > I'm retitling this bug to reflect actual situation more closely, and > downgrading it to a wishlist, so that the information will be easy to > find. Maybe we can actually do something with this someday. At least it'll help others who have the same issue. Hugo. -- === Hugo Mills: h...@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- I believe that it's closely correlated with --- the aeroswine coefficient.
signature.asc
Description: Digital signature

