WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Can not access VM through VNC

To: sachin goel <sachin.goel@xxxxxxxxxx>
Subject: Re: [Xen-users] Can not access VM through VNC
From: Sadique Puthen <sputhenp@xxxxxxxxxx>
Date: Sun, 02 Mar 2008 23:54:13 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 02 Mar 2008 10:25:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47C82464.2070709@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47C82464.2070709@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Check whether the port 5953 is listening or not by running command "netstat -nalp | grep vnc". If no, check whether the paravirtualized framebuffer for the guest created via XML-RPC is started or not. You should see a process listening for that guest. Something as below.

/usr/lib64/xen/bin/xen-vncfb --vncport 5900 --listen 127.0.0.1 --domid 1 --title <guest name>

What does --vncport say from your ps output?

--Sadique

sachin goel wrote:
Hi,
I am trying to create a Para Virtualized Virtual Machine using a linux distribution ISO. I need to create it using XML-RPCs. If, I use virt-install to create VM it gives me a VNC port on which I can access the machine. But, if I use XML-RPCs to create VM and then start it using 'xm start <domain Name>', the machine can not be accessed on the VNC port specified in the XML dump. I am pasting the XML dumps created by both the methods.

*XML dump using virt-install* *XML dump using XML-RPC and then 'xm create'*
/<domain type='xen' id='50'>
  <name>virtGVM</name>
  <uuid>5d183c21cd6b4479631d6a48c66d1402</uuid>
  <os>
    <type>linux</type>
    <kernel>/var/lib/xen/vmlinuz.7RrTxy</kernel>
    <initrd>/var/lib/xen/initrd.img.PFqBRY</initrd>
    <cmdline> method=nfs://server-1//:/tmp/isoMounted  </cmdline>
  </os>
  <memory>262144</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:1f:a8:18'/>
      <script path='/etc/xen/scripts/vif-bridge'/>
    </interface>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/tmp/DVDISO/disk.img'/>
      <target dev='xvda'/>
    </disk>
    <graphics type='vnc' port='5900'/>
    <console tty='/dev/pts/3'/>
  </devices>
</domain>/        /<domain type='xen' id='53'>
  <name>IsoDomain</name>
  <uuid>39788665d9e8106c933a34253b6be92e</uuid>
  <os>
    <type>linux</type>
    <kernel>/OVS/isoMounted/images/xen/vmlinuz</kernel>
    <initrd>/OVS/isoMounted/images/xen/initrd.img</initrd>
    <cmdline>method=nfs:server-1:/OVS/isoMounted</cmdline>
  </os>
  <memory>262144</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:38:88:e4'/>
      <script path='vif-bridge'/>
    </interface>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/OVS/DVDISO/disk.img'/>
      <target dev='xvda'/>
    </disk>
    <graphics type='vnc' port='5953'/>
    <console tty='/dev/pts/3'/>
  </devices>
</domain>
/


/ / Finally, I need to create the VM's using XML-RPCs and access it on VNC. Any pointers ?

Thanks,
Sachin.
------------------------------------------------------------------------

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>