Setup VNC at Ubuntu Jaunty Server PV DomU at Xen 3.4 Dom0 (kernel 2.6.30-rc1-tip) via IP6v

Well known schema ([1]) tuning gdm.conf and running Xvnc via xinetd worked fine for Ubuntu Hardy and Intrepid PV DomUs fails for Ubuntu 9.04 Server PV DomU . Setup vncserver to start via /etc/rc.local and /usr/bin/gnome-session via ~/.vnc/xstartup known as a way to manage on Debian Etch. I’ve also noticed :-
Remote Desktop Viewer VNC over IPv6: works on Ubuntu 9.04 Jaunty (Alpha 6)
Yes IPv6 works:-

Auto detection Ubuntu Jaunty PV DomU from another remote Intrepid Server on the same LAN :-

UPDATE on 04/21/2009
Activation Remote Desktop access causes vino-server to start up
automatically. As appears it’s PPID is PID of /usr/bin/gnome-session. Vino-server stop/start via command line :-

gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

Activating remote access to Jaunty Server PV DomU via old fashioned vnc connection ( still required).

Runtime DomU profile

root@ServerXen331:/home/boris/vm# cat
memory = 6000
name = "Ubuntu9.04PV"
vcpus = 2
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb7,xvda,w']

Start DomU via serial console

root@ServerXen331:~# xm create -c

Running Domains

root@ServerXen331:~# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 2066 2 r----- 146.2
Ubuntu9.04PV 6 6000 2 -b---- 6.8
root@ServerXen331:~# xm list -l Ubuntu9.04PV
(domid 6)
(on_crash restart)
(uuid 371dd6fe-6889-20ff-bb73-c5f1645ee327)
(bootloader_args )
(vcpus 2)
(name Ubuntu9.04PV)
(on_poweroff destroy)
(on_reboot restart)
(cpus (() ()))
(bootloader )
(maxmem 6000)
(memory 6000)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1240169415.16)
(cpu_time 6.849031651)
(online_vcpus 2)
(kernel )
(videoram 4)
(HV_START_LOW 18446603336221196288)
(FEATURES '!writable_page_tables|pae_pgdir_above_4gb')
(VIRT_BASE 18446744071562067968)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564201984)
(LOADER generic)
(PAE_MODE yes)
(ENTRY 18446744071572460032)
(XEN_VERSION xen-3.0)
(status 2)
(state -b----)
(store_mfn 2205277)
(console_mfn 2205276)
(bridge eth0)
(mac 00:16:3e:0d:87:be)
(script /etc/xen/scripts/vif-bridge)
(uuid 3ada5fb8-8a16-56a7-f340-4b2a23e27ce5)
(backend 0)
(protocol x86_64-abi)
(uuid 22c30913-ceff-e564-31a5-317fce8fbd17)
(bootable 1)
(dev xvda:disk)
(uname phy:/dev/sdb7)
(mode w)
(backend 0)
(bootable 1)
(VDI )
(protocol vt100)
(location 2)
(uuid 78e4902a-46b0-11a2-2065-6b17231c4327)

VNC setup at Ubuntu Jaunty Server DomU

ServerU904 login: root
Last login: Sun Apr 19 15:08:25 EDT 2009 on hvc0
Linux ServerU904 2.6.28-11-server #41-Ubuntu SMP Wed Apr 8 05:29:01 UTC 2009 x86_64
The programs included with the Ubuntu system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
To access official Ubuntu documentation, please visit:

1 failure since last login.
Last was Sun 19 Apr 2009 03:30:40 PM EDT on hvc0.

Tuning /etc/rc.local

root@ServerU904:~# cat /etc/rc.local
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the #execution bits.
# By default this script does nothing.
export HOME=/root
vncserver :1 -geometry 1280x1024 -depth 16
exit 0
root@ServerU904:~# cd .vnc
root@ServerU904:~/.vnc# pwd

Tuning ~/.vnc/xstartup file to start gnome-session immediately
at remote vncviewer’s login to Ubuntu Jaunty PV DomU.

root@ServerU904:~/.vnc# cat xstartup
# Uncomment the following two lines for normal desktop:
# exec /etc/X11/xinit/xinitrc
/usr/bin/gnome-session &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
twm &

Another version of ~/.vnc/xstartup :-

# Uncomment the following two lines for normal desktop:
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
/usr/bin/gnome-session &
# twm &

1.Setup Xen Unstable Dom0 with 2.6.29-tip pvops enabled kernel on top Ubuntu Intrepid Server (64 bit)
2.GDM and VNC with xinetd in Jaunty

About these ads

One Response to Setup VNC at Ubuntu Jaunty Server PV DomU at Xen 3.4 Dom0 (kernel 2.6.30-rc1-tip) via IP6v

  1. [...] module /boot/vmlinuz-2.6.31-rc3 root=/dev/sdb2 ro console=tty0 module /boot/initrd-2.6.31-rc3.img Setup VNC at Dom0 to be able to manage Xen Dom0 with PVOPS kernel remotely via vinagre or vncviewer Different option is to install xenified kernel via download :- wget [...]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: