Bug 676746 - random $AUTHORITY makes SDL use difficult
Summary: random $AUTHORITY makes SDL use difficult
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 14
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-11 01:13 UTC by Gary Scarborough
Modified: 2012-01-24 22:37 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-24 22:37:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gary Scarborough 2011-02-11 01:13:28 UTC
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?

How reproducible:
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
  
Actual results:
The virtual machine fails to start

Expected results:
The virtual machine should start in an SDL window.

Additional info:
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.

Comment 1 Daniel Berrangé 2011-02-11 10:12:48 UTC
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.

Comment 2 Fedora Admin XMLRPC Client 2011-09-22 17:55:43 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-09-22 17:58:55 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-11-30 19:54:27 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-11-30 19:56:37 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-11-30 20:00:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-11-30 20:02:03 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Cole Robinson 2012-01-24 22:37:26 UTC
F14 is EOL, closing.


Note You need to log in before you can comment on or make changes to this bug.