Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 28444  / 3 Years ago, sat, july 3, 2021, 9:13:17

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



More From » server

 Answers
3

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


[#41107] Sunday, July 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
fatuatexen questions
;