LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   VNC on Xen failure (https://www.linuxquestions.org/questions/linux-server-73/vnc-on-xen-failure-813338/)

Aeiri 06-10-2010 08:24 AM

VNC on Xen failure
 
The following config works and creates a good VM in Xen:

Code:

# Kernel Setup
kernel = "/boot/vmlinuz-2.6.18.8-xenU"

# Memory
memory = "256"

# Disk
disk = [
"file:/opt/xen/domains/110/sda1.img,sda1,w",
"file:/opt/xen/domains/110/swap.img,sda2,w"
]

# container name
name = "110"
hostname = "boo"

# Networking
vif = ["type=ieomu, bridge=xenbr0"]

# VNC
vnc = 1
#vfb = [ 'type=vnc,vncdisplay=2,vnclisten=0.0.0.0,vncpasswd=110' ]
# Behavior Settings
root = "/dev/sda1"
extra = "fastboot"

But when I uncomment the VFB line, I get the following error after it hangs for at least 30 seconds:

Code:

[root@customer 110]# xm create boo.cfg
Using config file "./boo.cfg".
Error: Device 0 (vkbd) could not be connected. Hotplug scripts not working.

Any ideas?

Part two of this question:

Sometimes it actually works, and a port is opened. When this happens, nmap shows the VNC ports open and I can connect via the VNC client, but it just hangs at "Connection established." and no VNC display shows up. I've tried multiple VNC clients (TightVNC, TightVNC Java Console, RealVNC), but they all fail to connect.

Does VNC through Xen require X to be started in order to function? I was under the impression that it would show the console screen, so I'm confused as to why all these issues are occurring.

Thanks!

tkmsr 06-14-2010 07:01 AM

Quote:

Originally Posted by Aeiri (Post 3998962)
But when I uncomment the VFB line, I get the following error after it hangs for at least 30 seconds:

Code:

[root@customer 110]# xm create boo.cfg
Using config file "./boo.cfg".
Error: Device 0 (vkbd) could not be connected. Hotplug scripts not working.

Any ideas?


To answer your question /etc/xen/xend-config.sxp you may like to check
what bridge you are using and check if Spanning Tree Protocol is enabled by default
Code:

brctl show
If you use bridged networking on Xen some times Spanning Tree Protocol causes delay in detecting nodes in your case Virtual Machines on network and hence you can not connect.


100's of reasons for this to happen.
This question you may got more replies here
Subscribe here.



Quote:

Originally Posted by Aeiri (Post 3998962)
Does VNC through Xen require X to be started in order to function?

No

Aeiri 06-15-2010 04:06 PM

Thanks for the response.

I had already tried posting on that mailing list, and got no responses.

I think it's because I'm missing "xen-vncfb", but I can't find a copy of it ANYWHERE. I've searched binary distributions, source trees (even after compilation), and the internet all over and it just seems to be vaporware or something.

Thanks for the help.


All times are GMT -5. The time now is 01:12 AM.