On 02/03/2010 09:23 PM, Stephen Liu wrote:
*From:* Cole Robinson <crobinso(a)redhat.com>*
To:* Stephen Liu <satimis(a)yahoo.com>*
Cc:* libvirt-users(a)redhat.com*
Sent:* Wed, February 3, 2010 11:11:46 PM*
Subject:* Re: [libvirt-users] virt-manager can't start
- snip -
> You shouldn't be changing the ownership of the .virt-manager directory. If
> running virt-manager and connecting to qemu:///system, a policykit
dialog will
> appear asking for root (on fedora at least), however the app will still be
> running as a regular user.
Hi Cole,
Host - Debian 5.0
KVM
Libvert
This Virtual Machine has been running sometimes.
Before, on Gnome desktop
Applications - Sytem Tools -> Virtual Machine Manager
starts;
Autheticate
System Policy prevents management of local virtualized systems
.....
After entering root password -> Authenticate
starts "Virtual Machine Manager"
For unknown cause/incident ;
On Gnome desktop;
Applications - Sytem Tools -> Virtual Machine Manager
popup following error
> popup following error;
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virt-manager.py", line 346, in
<module>
> main()
> File "/usr/share/virt-manager/virt-manager.py", line 248, in main
> setup_logging()
> File "/usr/share/virt-manager/virt-manager.py", line 124, in
setup_logging
> os.mkdir(vm_dir)
> OSError: [Errno 17] File exists: '/home/satimis/.virt-manager'
> - end -
Then I ran "apt-get remove libvert" to remove it. And reinstalled it later.
However
Applications - System Tools -> Virtual Machine Manager
starts "Virtual Machine Manager" without asking for root password to
authenticate
$ ls -al /home/satimis/ | grep virt-manager
drwxr-xr-x 2 satimis satimis 4096 2009-05-31 06:11 .virt-manager
If I change its owner to "root root" it popup above warning. I can't
start "Virtual Machine Manager".
How can I restore its original state requesting root password for
authentication before starting "Virtual Machine Manager"? TIA
Firstly, delete ~/.virt-manager, and let the app create it with correct
permissions. Second, make sure libvirtd is installed and running. Finally,
when virt-manager is running, make sure it is connecting to the qemu:///system
connection: there should be a row name 'qemu' in the main window, right click
-> connect. This should ask for the root password.
If the qemu row isn't there for some reason, you can use File->Open Connection
to connect.
- Cole