Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On Ubuntu server 11.10 I am trying to install a virtual machine using virt-manager. I believe that I have everything right, but when I go and run the command virt-manager I get the following error message:

File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
  main()
File "/usr/share/virt-manager/virt-manager.py", line 285, in main
  raise RuntimeError(_("Unable to initialize GTK: %s") % gtk_error)
RuntimeError: Unable to initialize GTK: could not open display

I want to use virt-manager so that I can quickly and efficiently create multiple (6) virtual machines, but is there any other alternative that does not take hours per host system, and is still lightweight?

My machine is as follows:

  • Ubuntu Server 11.10
  • 8 cores @ 2.5ghz
  • 64 gb ram
  • Packages:
    • qemu-kvm
    • libvirt-bin
    • virt-manager
    • bridge-utils
    • gnome-core
share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Are you running X on the server ? If not, you can run it from a second machine over ssh

ssh -X user@server

Or you can run a light weight X session on the server, run a web interface (convirt or similar), or run virsh (command line interface).

https://help.ubuntu.com/community/KVM/Virsh

share|improve this answer
    
how do I install it? on my mac when I try to do ssh like that I get /usr/bin/xauth: file /home/rkersey/.Xauthority does not exist –  Reid Jan 5 '12 at 22:50
2  
Try installing xauth sudo apt-get install xauth –  bodhi.zazen Jan 5 '12 at 22:56
add comment

Have an ubuntu laptop/desktop in the same network as your server. Install virt-manager on it. Use: virt-manager -c qemu+ssh://root@your-server-ip-or-name/system as command.

Alternatively, read on at http://wiki.libvirt.org/page/FAQ

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.