[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-users] Can not access VM through VNC
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
|