[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] problems connecting to HVM guest OS via VNC Viewer



On Tue, May 29, 2012 at 5:59 AM, Jane Wayne <jane.wayne2978@xxxxxxxxx> wrote:
> i am following the instructions at
> https://help.ubuntu.com/community/XenProposed to install Xen + Ubuntu.
> i have already installed successfully a PV guest OS (Ubuntu Server
> 12.04). now i am trying to install a HVM guest OS (Ubuntu Desktop
> 12.04). however, i cannot seem to connect to the instance after i
> start it up. the HVM configuration file looks like the following.
>
> builder = "hvm"
> name = "ubuntu-hvm"
> memory = 512
> vcpus = 1
> vif = [' ']
> disk = 
> ['phy:/dev/xenub/ubuntu-hvm,hda,w','file:/home/jwane/ubuntu-12.04-desktop-amd64.iso,hdc:cdrom,r']
> vnc = 1
> boot = "d"
>
 [...]
>
> sudo netstat -tcp --listening --programs
>
> and my results are as follows.
>
> Proto Recv-Q Send-Q Local_Address           Foreign_Address State
> PID/Program_name
> tcp    0          0          localhost:5900            *:*
>         LISTEN   2097/qemu-dm
> tcp    0          0          192.168.122.1:domain *:*
>    LISTEN   5653/dnsmasq
> tcp    0          0          *:ssh                         *:*
>             LISTEN    1198/sshd
> tcp    0          0          [::]:ssh                      [::]:*
>              LISTEN   1198/sshd


Hi,

Your vncserver is only listening on localhost. You should add this
lines in your HVM configuration file or edit a similar line in
xend-config.sxp.

#----------------------------------------------------------------------------
# address that should be listened on for the VNC server if vnc is set.
# default is to use 'vnc-listen' setting from
# auxbin.xen_configdir() + /xend-config.sxp
#vnclisten="127.0.0.1"
vnclisten="192.168.0.0"
#vnclisten="0.0.0.0"


You can also use SSH like
http://ucdirc.ucdavis.edu/computing/vnc_ssh_tunnel.php and keep your
vncserver listen on localhost.

ssh -L 5900:localhost:5900 jane@xxxxxxxxxxxxx
vncviewer localhost:5900


Regards,
Steven

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.