No protocol specified - Unable to init server: Could not connect: Connection refused

No protocol specified - Unable to init server: Could not connect: Connection refused

Let us see how to fix this No protocol specified error on fedora 29 and open virt-manager successfully in this page,

[username@localhost ~]$ sudo -i
[root@localhost ~]# virt-manager

virt-manager is not opened and got below errors in console,

[root@localhost ~]# No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused

(virt-manager:2994): Gtk-WARNING **: 14:11:33.277: cannot open display: :0
^C

Please try xhost commnd,

[root@localhost ~]# xhost +local:
No protocol specified
xhost:  unable to open display ':0'

Not worked as root user,

[root@localhost ~]# exit
logout

Exit root user mode and tried in normal loggedin user

[username@localhost ~]$ xhost +local:
non-network local connections being added to access control list

Now try to open virt-manager,

[username@localhost ~]$ virt-manager

Now virt-manager is opened but not connected to create instance. so trying with sudo acces

[username@localhost ~]$ sudo virt-manager

Now opened virt-manager in connected mode and could able to create instances.




Python installation

Privacy Policy  |  Copyrightcopyright symbol2020 - All Rights Reserved.  |  Contact us   |  Report website issues in Github   |  Facebook page   |  Google+ page

Email Facebook Google LinkedIn Twitter
^