[CentOS] VNC

Wed Nov 20 12:46:17 UTC 2013
Earl A Ramirez <earlaramirez at gmail.com>

On 27 October 2013 12:47, Larry Martell <larry.martell at gmail.com> wrote:

> On Sat, Oct 26, 2013 at 3:07 PM, Earl Ramirez <earlaramirez at gmail.com
> >wrote:
>
> > On Sat, 2013-10-26 at 11:26 -0600, Larry Martell wrote:
> > > On Fri, Oct 25, 2013 at 10:25 PM, Earl Ramirez <earlaramirez at gmail.com
> > >wrote:
> > >
> > > > On Sun, 2013-10-20 at 07:44 -0600, Larry Martell wrote:
> > > > > On Sat, Oct 19, 2013 at 11:15 PM, Earl A Ramirez <
> > earlaramirez at gmail.com
> > > > >wrote:
> > > > >
> > > > > > Sorry for top posting, this is the only option that the phone
> > allow.
> > > > > >
> > > > > > If the host is running a X server you can use -X option with ssh.
> > > > > >
> > > > > > $ ssh -X user at host
> > > > > > And start virt-manager to manage the VMs.
> > > > > >
> > > > >
> > > > >
> > > > > I am running putty from Windows. I do have X11 forwarding enabled.
> > But I
> > > > > still get  'could not open display' I though perhaps I needed to
> > install
> > > > > Xming, but I don't have admin rights on the Windows box, so I
> > couldn't do
> > > > > that.
> > > > >
> > > >
> > > > Hello Larry,
> > > >
> > > > Were you able to connect to the VM using VNC?
> > > >
> > >
> > > No, no one there could make it work on a VM. I switched to using a
> > physical
> > > host.
> > I will be able to replicate your environment within a few days are you
> > willing to give it another shot?
>
>
> I appreciate your offer and it certainly would be nice to get this solved,
> but it not longer critical for me to do my job. Alao I will be super busy
> this coming week.
>
>
>
> > SilverTip257 had an interesting
> > question with regards to how the network is setup.
> >
> > I'm assuming that the host has a bridge nic compared to the bridge that
> > is created by libvirtd "virbr0", which has the default network of
> > 192.168.122.0/24.
> >
> > Can you confirm my assumption and let me know if you are willing to
> > continue to work on a resolution.
> >
>
> I don't know how to answer your question - I am a developer not an admin -
> but if you give me the commands needed I can execute them. I don't have
> access to the physical host - it's 2,000 miles away from where I am. I
> could try and ask an admin there, but they are super busy too and they've
> moved on to other things (We are really short staffed.)
>
> Thanks!
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Good Day Larry,

 I finally got the time to build the test environment


 KVM Host Network Configuration:

eth4==|

              |==bond0==br0

eth5==|


 KVM Guest Network Configuration:

Host device bond0 (Bridge 'br0')


 I have installed tiger VNC server and made the following changes in
/etc/sysconfig/vncserver

VNCSERVERS="2:guest1"

VNCSERVERARGS[2]="-geometry 800x600"


 The vncserver was stopped

/etc/init.d/vncserver stop


Configure authentication

vncserver :2 (I was prompt to create and verify the password)

 From the remote computer I was able to connect to the CentOS 6.4 KVM Guest
using tiger VNC vncviewer.

 Vncviewer 192.168.1.31:2

 netstat -atulp | grep vnc

tcp 0 0 *:5902 *:* LISTEN 28326/Xvnc

tcp 0 0 *:6002 *:* LISTEN 28326/Xvnc

tcp 0 0 192.168.1.31:5902 192.168.1.157:41034 ESTABLISHED 28326/Xvnc

tcp 0 0 *:6002 *:* LISTEN 28326/Xvnc


Seeing that you are able to connect to the server using SSH, I believe that
it's save to assume that the setup is similar to what I created, if you are
using a Bridge connection you will not have to close the KVM Guest neither
will you have to change the display from VNC to spice.


Let me know if this helps.

-- 
Kind Regards
Earl Ramirez