Monday, 25 June 2018

error viewer connection to Hypervisor host got refused or disconnected

error viewer connection to Hypervisor host got refused or disconnected

How to resolve the below error while accessing hypervisior host getting refused or disconnected.


Resolution:

Make an entry in /etc/hosts for loopback address like below:

127.0.0.1      localhost.localdomain     localhost

:wq!

# service libvirtd restart   (restart the service for make changes.)

save and exit. Now you will able to connect to newly created hots.

FYI



Thanks

How to Access Linux Graphical Applications Remotely Over SSH

Prerequisite for access the application remotely:


1:- Putty (Which is Client side emulator)

2:- Xming  (XMing is a free of cost X window server for Microsoft Windows systems. It allows you to use Linux graphical applications remotely on your Dekstop.)

Step to Access:

Step 1 Open Putty to server session.


Step 2 Go to SSH icon below Down, Expend it and click on X11 option:



step 3  Now check on Enable X11 Forwarding option and Browse the Location where you installed the Xming SOftware. (assume you have installed the Xming)


Step 4 start the xming from windows startup it will appeared with X icon in Notification area.  Now Browse the location and Select the Config.xlauch

Step 5 Now go on the Session and enter the Server details and login.(Its not necessary to enter details now you can enter the details before doing the same)

after login in putty run any application for example Firefox:


It might be you will get en issue an on prompt like this: unable to initialize gtk: could not open display centos

So in My Case I have Done below things to Resolve to issue:

#yum update -y 

#yum install xorg-x11-xauth -y

#yum install xorg-x11-fonts* -y

#yum install xorg-x11-utils -y

#export DISPLAY="127.0.0.1:10.0"

#echo $DISPLAY  (To confirm)

Now again check it should be work fine if still not working you should enable X11Forwarding yes in /etc/ssh/sshd_config.

If you logged with user might you will get en error like below:

PuTTY X11 proxy: wrong authorisation protocol attemptedError 

Resolution:  Copy the file to user home directory 

#cp -rvf /root/.Xauthority /home/USERNAME/ 


ERROR: Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match

Resolution: login with root user

# su - root

#xauth list 

Output like this:  domainname.com/unix:11  MIT-MAGIC-COOKIE-1  5df0ff364167a2b86f38309586e2199c 

copy output and login with user and run the below command

#xauth add domainname.com/unix:11  MIT-MAGIC-COOKIE-1  5df0ff364167a2b86f38309586e2199c


check now.

Thanks ! Still have any concern please let me know feel free in comment section.