OpenVZ with X11 and VNC server

  • Thread starter Thread starter mikhmv
  • Start date Start date
M

mikhmv

Guest
Hi,
On this weekend i tried to make OpenVZ container with gnome and VNC server.
it could be done by following steps:
1. download appliance with X11 from: http://download.proxmox.com/appliances/system/debian-5.0-xserver_5.0-1_i386.tar.gz
2. install it. and login to it
3. apt-get update
4. apt-get upgrade
it is already have X11 and vnc4server but it doesn't work properly (at least for me). running vnc4server :1 and connection gave me black screen. Look like vnc4server configure gnome not properly.
Solution: DON'T RUN vnc4server !!! Need to make following steps on clear machine.
Simplest way to configure it was:
5. apt-get install tightvncserver tightvnc-java
6. configure gnome by tightvnc.
tightvncserver :1
Now you can connect to machine like to normal vncserver. you will have working gnome. BUT tightvnc have bug with keyboard.
Solution was simple. after configuring by tightvnc don't use tightvnc.
you can use vnc4server it is work pretty well.
7. run vncserver by command:
vnc4server :1 -httpport 7001
and everything work.

I have question: how to activate vnc4server by request on port?
I guess it could be done by openbsd-inetd.

I tried to use following links:
http://ubuntuforums.org/archive/index.php/t-569451.html
http://ubuntuforums.org/showthread.php?t=122402&page=56

but without any success. usually i got gray screen with "x" mouse

thanks advance.
 
I found how to run X by direct connection from Vncviewer:

install VM from ubuntu 8.04 template
I used ubuntu 8.04 x64.

apt-get install screen xfce4 mousepad thunar-archive-plugin vnc4server vnc-java xserver-xorg-core xdm xinetd

-----------------------------------------
vnc4server :55
inter password for vnc
vnc4server -kill :55
------------------------------------------

edit xdm parameters:
---------------------------------------------------------------------
xdm

These changes are only required, if your display manager is XDM. If you use GDM or KDM, see the next sections.

Open /etc/X11/xdm/xdm-config with your favorite editor.

Look at the last line : "DisplayManager.requestPort: 0"

Comment it out by inserting a ! at the beginning of the line. File: /etc/X11/xdm/xdm-config

!DisplayManager.requestPort: 0

Edit /etc/X11/xdm/Xaccess and uncomment the line " '* #any host can get a login window" by removing the single quote. You could also change it to 192.168.0.* for some security
(from: http://en.gentoo-wiki.com/wiki/XVNC_Server#xdm )
--------------------------------------------------------------------

edit services for xinetd:

nano /etc/xinetd.d/Xvnc

service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vnc/passwd -extension XFIXES
port = 5901
}

if need more ports add these lines to file:

service Xvnc_xx
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :xx -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 59xx
}
for each copy you should use different "xx" ( 10, 11, 12 .....).
---------------------------------------------------------------
/etc/init.d/xinetd restart
but better reboot.

connect by vncviewer :xx
 
Does anybody know how to add option to Xvnc -httpport xxxxx and -httpd path?

In my case it wasn't work.
 
what for are you doing it ? Openvz is build not for Graphic user , it is for services or cloud computing . If you run graphic , i think you use KVM . Using openvz for gnome or program use processors for computing like that make it become useless
 
what for are you doing it ? Openvz is build not for Graphic user , it is for services or cloud computing . If you run graphic , i think you use KVM . Using openvz for gnome or program use processors for computing like that make it become useless

Our X11 appliance works as X11 terminal server (XDMCP). You do not need a graphic card for that, so openvz works perfectly.

- Dietmar
 
Hi Dietmar:
Our X11 appliance works as X11 terminal server (XDMCP). You do not need a graphic card for that, so openvz works perfectly
But It doesn't work with VNC server. I found that you tried to install vncserver in this appliance (in config file for openbsd-inetd). I think main problem why debian X11 terminal with resumable session don't working properly with vncserver is because it use older version vnc4server. Debian version of vnc4server don't recognized option -extension XFIXES.

ndhuy:
I am using this for have gui for running some our programs. For us more simple to make programm with sliders and acseptable gui and give to customer link on server which he can use for work than spend a lot of time with him and change all parameters in files.
we are working on computer modeling and simulation where are critical to fast change parameters and see immediately results.
and Yes we are using it for cloud computation. And xfce4 and gnome little bit better than cloud appliance which i found.
 
Last edited by a moderator:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!