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@lists.xensource.com
http://lists.xensource.com/xen-users
Artur Linhart - Linux communication
2008-Feb-29 19:32 UTC
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@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of sachin goel
Sent: Friday, February 29, 2008 4:28 PM
To: xen-users@lists.xensource.com; xen-api@lists.xensource.com
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@lists.xensource.com
http://lists.xensource.com/xen-users
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@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Artur Linhart -
Linux communication
Sent: Friday, February 29, 2008 2:32 PM
To: ''sachin goel''; xen-users@lists.xensource.com
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@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of sachin goel
Sent: Friday, February 29, 2008 4:28 PM
To: xen-users@lists.xensource.com; xen-api@lists.xensource.com
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@lists.xensource.com
http://lists.xensource.com/xen-users
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@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sunday 02 March 2008 01:24:13 pm Sadique Puthen wrote:> 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>Umm - on what system is xen-vncfb running? On (my) fc8, pv domains are run with ''qemu-dm -M xenpv ...''. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jim burns wrote:> On Sunday 02 March 2008 01:24:13 pm Sadique Puthen wrote: > >> 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> >> > > Umm - on what system is xen-vncfb running? On (my) fc8, pv domains are run > with ''qemu-dm -M xenpv ...''. >On RHEL and its variants. I use KVM on my f8, so probably, i might not have looked into whether this has been changed in f8 or not. --Sadique> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sunday 02 March 2008 01:57:27 pm Sadique Puthen wrote:> > Umm - on what system is xen-vncfb running? On (my) fc8, pv domains are > > run with ''qemu-dm -M xenpv ...''. > > > > On RHEL and its variants. I use KVM on my f8, so probably, i might not > have looked into whether this has been changed in f8 or not.Ok - I do remember this being the case on fc7. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users