[CentOS] VNC

Earl Ramirez earlaramirez at gmail.com
Sun Oct 20 03:03:42 UTC 2013


On Sat, 2013-10-19 at 17:23 -0600, Larry Martell wrote:
> On Sat, Oct 19, 2013 at 4:56 PM, Larry Martell <larry.martell at gmail.com>wrote:
> 
> > I had posted last week about trying to get VNC working. I was never
> > successful nor were multiple admins. But we realized that all the hosts we
> > tried on were VMs. We followed the same procedure (
> > http://wiki.centos.org/HowTos/VNC-Server) on a machine with physical HW
> > and it worked with no problem. But on the VM I can connect, but I don't get
> > any window displayed. Here is what is in the log:
> >
> > Sat Oct 19 18:39:55 2013
> >  vncext:      VNC extension running!
> >  vncext:      Listening for VNC connections on all interface(s), port 5902
> >  vncext:      created VNC server for screen 0
> > GNOME_KEYRING_SOCKET=/tmp/keyring-Y6Tg3c/socket
> > SSH_AUTH_SOCK=/tmp/keyring-Y6Tg3c/socket.ssh
> > GNOME_KEYRING_PID=19728
> > Failed to play sound: File or data not found
> >
> > ** (nm-applet:19775): WARNING **: <WARN>  request_name(): Could not
> > acquire the NetworkManagerUserSettings service.
> >   Error: (9) Connection ":1.552" is not allowed to own the service
> > "org.freedesktop.NetworkManagerUserSettings" due to security policies in
> > the configuration file
> >
> 
> Googling that error I found this:
> https://bbs.archlinux.org/viewtopic.php?id=63576 and I followed the advice
> there. Now I don't get that error, but I still get no display. Now all I
> get in the log is this:
> 
> 
> 19/10/2013 07:14:27 PM [IPv6] Got connection from client
> ::ffff:10.250.151.75
> 19/10/2013 07:14:27 PM   other clients:
> 19/10/2013 07:14:27 PM Client Protocol Version 3.7
> 19/10/2013 07:14:27 PM Advertising security type 2
> 19/10/2013 07:14:28 PM Client returned security type 2
> 
> My xstartup file is identical on the VM and the physical host.
> 
> Does anyone out there have VNC working on a VM?
> 
> 
> > 19/10/2013 06:39:59 PM Autoprobing TCP port in (all) network interface
> > 19/10/2013 06:39:59 PM Listening IPv{4,6}://*:5900
> > 19/10/2013 06:39:59 PM Autoprobing selected port 5900
> > 19/10/2013 06:39:59 PM Advertising authentication type: 'VNC
> > Authentication' (2)
> > 19/10/2013 06:39:59 PM Advertising security type: 'VNC Authentication' (2)
> >
> > (polkit-gnome-authentication-agent-1:19796): GLib-GObject-WARNING **:
> > cannot regster existing type `_PolkitError'
> >
> > (polkit-gnome-authentication-agent-1:19796): GLib-CRITICAL **:
> > g_once_init_leave: assertion `initialization_value != 0' failed
> > Initializing nautilus-gdu extension
> > Initializing nautilus-open-terminal extension
> >
> > ** (gnome-panel:19761): CRITICAL **: panel_applet_frame_change_background:
> > assertion `PANEL_IS_WIDGET (GTK_WIDGET (frame)->parent)' failed
> >
> > (polkit-gnome-authentication-agent-1:19796): polkit-gnome-1-WARNING **: No
> > icon for themed icon with name 'preferences-system-network-proxy'
> > Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message
> > with a timestamp of 0 for 0x2c00003 (Authentica)
> > Window manager warning: meta_window_activate called by a pager with a 0
> > timestamp; the pager needs to be fixed.
> > Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message
> > with a timestamp of 0 for 0x2c00003 (Authentica)
> > Window manager warning: meta_window_activate called by a pager with a 0
> > timestamp; the pager needs to be fixed.
> > 19/10/2013 06:40:48 PM [IPv6] Got connection from client
> > ::ffff:10.250.151.75
> > 19/10/2013 06:40:48 PM   other clients:
> > 19/10/2013 06:40:49 PM Client Protocol Version 3.7
> > 19/10/2013 06:40:49 PM Advertising security type 2
> > 19/10/2013 06:40:49 PM Client returned security type 2
> >
> >
> > Anyone have any clues as to what could be wrong and why it works on a
> > physical host and not on a VM?
> >

I believe that I just find the answer for this question. I have been
beating up myself for the last few hours and I was getting the same
error that you posted. 

****************Test Environment**************
2 Laptops
1 of the two laptop has several linux KVMs

**********************************************

The reason why you are not able to connect with the KVM Guest is because
by default KVM Guest uses VNC, which will conflict with tiger-vncserver.

What is your current VM environment, to resolved the issue I switch from
VNC to spice for the choice of display for the KVM Guest and I was
finally able to establish communication with the KVM guest.

Let me know if this works for you.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

-- 


Kind Regards
Earl Ramirez
GPG Key: http://trinipino.com/PublicKey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20131020/72237a6f/attachment.sig>


More information about the CentOS mailing list