LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2010, 08:24 AM   #1
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
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!
 
Old 06-14-2010, 07:01 AM   #2
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Quote:
Originally Posted by Aeiri View Post
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 View Post
Does VNC through Xen require X to be started in order to function?
No

Last edited by tkmsr; 06-14-2010 at 07:06 AM.
 
Old 06-15-2010, 04:06 PM   #3
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen vs OpenVZ single point of failure grob115 Linux - Virtualization and Cloud 0 05-09-2010 05:26 AM
VNC Server Start Failure on CentOS hotrock3 Linux - Server 14 01-15-2010 06:50 PM
xen client network failure geustace Linux - Networking 2 11-02-2007 03:28 PM
failure in installing new virtual machine using Xen on FC6 z.z! Linux - Kernel 5 07-23-2007 01:09 PM
VNC viewer errors with XEN tarheel92x Linux - Server 0 11-02-2006 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration