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-api

[Xen-users] Can not access VM through VNC

To: xen-users@xxxxxxxxxxxxxxxxxxx, xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Can not access VM through VNC
From: sachin goel <sachin.goel@xxxxxxxxxx>
Date: Fri, 29 Feb 2008 20:57:32 +0530
Delivery-date: Fri, 29 Feb 2008 07:28:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Can not access VM through VNC, sachin goel <=