CentOS6 Installed As Virtual Host

Home » CentOS » CentOS6 Installed As Virtual Host
CentOS 2 Comments

Dear All,

I convinced my boss to buy me a new laptop, it arrived today!

So now that I finaly have a X86_64 machine, I want to try Kvm. I’m very excited.

I Anaconda I selected install as virtual host, but after install, update and reboot I try

#[jvermeulen@it root]$ virt-manager Traceback (most recent call last):
File “/usr/share/virt-manager/virt-manager.py”, line 383, in
main()
File “/usr/share/virt-manager/virt-manager.py”, line 286, in main
raise gtk_error RuntimeError: could not open display

I googled this, but found very little info about this type of CentOS
install.

Can anyone advise on how to proceed from the standard install to get this working?

Greetings, J.

Open source Software is the future.

2 thoughts on - CentOS6 Installed As Virtual Host

  • > File “/usr/share/virt-manager/virt-manager.py”, line 383, in
    > main()
    > File “/usr/share/virt-manager/virt-manager.py”, line 286, in main
    > raise gtk_error

    it looks like you logged in as yourself, then did a sudo su – (which is normally how things should be done)
    (or maybe even just a sudo su). there are a couple things you can do to get around that; I think the most expedient is to run (as yourself)
    you@it you> sudo virt-manager

    other options include (although I’m sure I’ll get flames for it) log in directly as root or set your ID to have the permissions to do all that’s needed to run virt-manager, or make sure your X config allows tcp connections and use ‘xhost +localhost’, then export DISPLAY=localhost:0 as root user (probably; you might need to check your DISPLAY settings as your own ID before — env | egrep -i display)

    this is just my guess, though.

  • Did you run this from a terminal in Gnome or another window manager? It looks like it can’t talk to the X server. What exactly did you do to get this error?

    Also, there should be a “VM” logo for “Virtual Machine Manager” in your GUI’s menu.

LEAVE A COMMENT