Red Hat Bugzilla – Bug 676746
random $AUTHORITY makes SDL use difficult
Last modified: 2012-01-24 17:37:26 EST
Description of problem:
The value of $XAUTHORITY is now random, so the xml file for virtual machines has to be updated every log in. Otherwise trying to use SDL display type fails.
Version-Release number of selected component (if applicable):
Depends on which item you want to fix: SDL, libvirt, X?
Standard behavior in Fedora 14 with the change to random $XAUTHORITY path
Steps to Reproduce:
1. create a virtual machine using virt-manager
2. change display type to SDL
3. VM will fail to start
The virtual machine fails to start
The virtual machine should start in an SDL window.
This might be a duplicate but this particular problem wasn't on the known problems page for KVM. This may also be moot if SDL is being removed in favor of SPICE in the future. Just wanted to make sure it was noted.
From a libvirt POV, we're not removing SDL for SPICE - that's upto distros, and Fedora policy is to generally enable all features practical.
I don't see a good ways to solve this in libvirt for the qemu://system URI, because there's no association between libvirt & a desktop session. For qemu:///session, libvirtd ought to inherit the XAUTHORITY env var, so we should check that.
If you need predictable xauthority== attributes for your guest XML, then perhaps a quick hack would be in order. eg in your .xsession file (or similar), do
rm -f $HOME/.xauthority
ln -s $XAUTHORITY $HOME/.xauthority
Now your XML can just use /home/yourname/.xauthority, regardless of where GDM put the random file this time.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
F14 is EOL, closing.