|
|
|
|
|
|
|
|
|
|
xen-users
RE: [Xen-users] Can not access VM through VNC
Hey,
Just a pointer. Check the xend-config.sxp file and search for any options about
VNC, there will be instructions on how to enable etc.
The file is in /etc/xen/
Best of luck,
Tait
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Artur Linhart -
Linux communication
Sent: Friday, February 29, 2008 2:32 PM
To: 'sachin goel'; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Can not access VM through VNC
Hello,
I do not use such configuration form, but I know, than in the
classical form You must define something like
vnc=1
vncunused=0
vncdisplay=4
vnclisten='10.0.0.1'
and in this case You will connect to the port 5904 on address 10.0.0.1.
BUT: The port specified by vnclisten is ignored if You do not specify
vncunused=0 - in other cases Xen (at least version 3.1.0) will allocate the
port randomly.
After You started the domain, You can see by
netstat -a -n
what ports are allocated - it there something from 5900 I think, this
will be then Your port and You can try to connect to it.
Maybe this will be similar situation here...
Archie
________________________________________
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of sachin goel
Sent: Friday, February 29, 2008 4:28 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx; xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [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.
__________ Informace od NOD32 2912 (20080229) __________
Tato zprava byla proverena antivirovym systemem NOD32.
http://www.nod32.cz
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|