Monday, September 22, 2008


PV-Grub on OpenSuse 11 PV DomU at Xen 3.3 CentOS Dom0 (all 64-bit)



We use the most recent Xen 3.3 port to CentOS 5.2 via http://www.gitco.de/repo/xen3.3.0.
Regarding Xen 3.3 Feature: PV-GRUB in general, please, view
blog.xen.org


Prepare grub's /boot/grub/menu.lst at DomU side for pv-grub booting.
Actually, we need just one entry into menu.lst and it has
to be created mannualy:-



SUSE11PV:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Mon Sep 22 12:27:54 UTC 2008
default 0
timeout 30
##YaST - generic_mbr
gfxmenu (hd0,0)/boot/message
##YaST - activate


###Don't change this comment - YaST2 identifier: Original name: linux###
title PV Xen 3.3 openSUSE 11.0 - 2.6.25.5-1.1 DomU
root (hd0,0)
kernel /boot/vmlinuz-2.6.25.5-1.1-xen root=/dev/xvda1 resume=/dev/xvda2 showopts
initrd /boot/initrd-2.6.25.5-1.1-xen




Prepare OpenSuse 11 DomU profile for pv-grub:-



[root@ServerCentOS52 vm]# cat suse.pv-grub
name = "suse-pvgrub"
memory = 2048
vcpus = 1
vfb = [ 'type=vnc' ]
disk = [ 'file:/etc/xen/SuseImage/disk0,xvda,w' ]
vif = [ "bridge=eth0" ]
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,0)/boot/grub/menu.lst"




Start DomU:-



[root@ServerCentOS52 vm]# xm create suse.pv-grub
Using config file "./suse.pv-grub".
Started domain suse-pvgrub




Open another terminal session and issue:-



# xm console suse-pvgrub




Select option:-



Booting 'PV Xen 3.3 openSUSE 11.0 - 2.6.25.5-1.1 DomU'




Booting up DomU:-



root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.25.5-1.1-xen root=/dev/xvda1 resume=/dev/xvda2 showop
ts
initrd /boot/initrd-2.6.25.5-1.1-xen

close blk: backend at /local/domain/0/backend/vbd/12/51712
Linux version 2.6.25.5-1.1-xen (geeko@buildhost) (gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux) ) #1 SMP 2008-06-07 01:55:22 +0200
Command line: root=/dev/xvda1 resume=/dev/xvda2 showopts
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000080800000 (usable)
end_pfn_map = 526336
early res: 0 [200000-702e57] TEXT DATA BSS
early res: 1 [703000-1528fff] Xen provided
early res: 2 [1529000-1529fff] INITMAP
early res: 3 [152a000-1932fff] PGTABLE
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 526336
No mptable found.
PERCPU: Allocating 21568 bytes of per cpu data
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 519140
Kernel command line: root=/dev/xvda1 resume=/dev/xvda2 showopts
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 3005.554 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
console [xvc-1] enabled
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Software IO TLB disabled
Memory: 2041020k/2105344k available (2258k kernel code, 55844k reserved, 1829k data, 224k init)
Calibrating delay using timer specific routine.. 6013.17 BogoMIPS (lpj=12026355)
Security Framework initialized
AppArmor: AppArmor initialized
AppArmor: Registered secondary security module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
, L1 D cache: 32K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 23k freed
Brought up 1 CPUs
net_namespace: 1016 bytes
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: Fatal: No config space access function found
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
PCI: System does not support PCI
PCI: System does not support PCI
AppArmor: AppArmor Filesystem Enabled
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Unpacking initramfs... done
Freeing initrd memory: 10320k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1222112227.659:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Non-volatile memory driver v1.2
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Console: switching to colour frame buffer device 100x37
input: Xen Virtual Keyboard as /devices/virtual/input/input0
input: Xen Virtual Pointer as /devices/virtual/input/input1
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
NET: Registered protocol family 1
registered taskstats version 1
XENBUS: Device with no driver: device/vbd/51712
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Freeing unused kernel memory: 224k freed
Write protecting the kernel read-only data: 1564k
netfront: Initialising virtual ethernet driver.
xen-vbd: registered block device major 202
xvda: xvda1 xvda2 xvda3
kjournald starting. Commit interval 5 seconds
EXT3 FS on xvda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
JBD: barrier-based sync failed on xvda1 - disabling barriers
Adding 2104472k swap on /dev/xvda2. Priority:-1 extents:1 across:2104472k
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
loop: module loaded
kjournald starting. Commit interval 5 seconds
EXT3 FS on xvda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
fuse init (API version 7.9)
type=1505 audit(1222112229.360:2): operation="profile_load" name="/bin/ping" name2="default" pid=681
type=1505 audit(1222112229.388:3): operation="profile_load" name="/sbin/klogd" name2="default" pid=689
JBD: barrier-based sync failed on xvda1 - disabling barriers
type=1505 audit(1222112229.412:4): operation="profile_load" name="/sbin/syslog-ng" name2="default" pid=698
type=1505 audit(1222112229.432:5): operation="profile_load" name="/sbin/syslogd" name2="default" pid=700
type=1505 audit(1222112229.456:6): operation="profile_load" name="/usr/sbin/avahi-daemon" name2="default" pid=707
type=1505 audit(1222112229.484:7): operation="profile_load" name="/usr/sbin/identd" name2="default" pid=711
type=1505 audit(1222112229.500:8): operation="profile_load" name="/usr/sbin/mdnsd" name2="default" pid=719
type=1505 audit(1222112229.520:9): operation="profile_load" name="/usr/sbin/nscd" name2="default" pid=720
type=1505 audit(1222112229.544:10): operation="profile_load" name="/usr/sbin/ntpd" name2="default" pid=722
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
IA-32 Microcode Update Driver: v1.14a-xen
ip6_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team


Welcome to openSUSE 11.0 (X86-64) - Kernel 2.6.25.5-1.1-xen (xvc0).

SUSE11PV login: root
Password:
Last login: Mon Sep 22 15:22:25 EDT 2008 from console on :0
Have a lot of fun...
SUSE11PV:~ # uname -a
Linux SUSE11PV 2.6.25.5-1.1-xen #1 SMP 2008-06-07 01:55:22 +0200 x86_64 x86_64 x86_64 GNU/Linux
SUSE11PV:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 5.0G 3.3G 1.4G 71% /
udev 1.1G 88K 1.1G 1% /dev
/dev/xvda3 996M 27M 919M 3% /home
SUSE11PV:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:34:7F:A6
inet addr:192.168.1.12 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41300 (40.3 Kb) TX bytes:10830 (10.5 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:200 (200.0 b) TX bytes:200 (200.0 b)







PV-Grub starting OpenSuse 11 DomU at Xen 3.3 CentOS 5.2 Dom0:-

















Open VNC connection to OpenSuse11 DomU brought up via pv-grub :-











References


1.Install Xen 3.3 on CentOS 5.2 via http://www.gitco.de/repo/xen3.3.0


Pygrub & loading OpenSuse 11 PV DomUs at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)



Due to known issue attempt to virt-install OpenSuse 11 PV DomU at Xen 3.3 CentOS 5.2 Dom0
from nfs share fails immediately at startup. Approved procedure via Internet repositories for OpenSuse 10.3 requires internet connection speed at least 700 Kbit/sec to take reasonable time. OpenSuse 11.1 (with pygrub implemented) is due only in December 2008.
However, pygrub coming along with current Xen Release 3.3(3.2.1) does allow to load
OpenSuse 11 DomUs at CentOS 5.2 (RHEL 5.2) Dom0 with no problems. I have not made any
testing for native Xen 3.1 pygrub coming with CentOS 5.X, but there is a good chance,
that it would work as well. Schema shortly described bellow would never work vice versa unless OpenSuse 11.1 would have pygrub issue fixed.
Per release notes for OpenSuse 11.1 looks like RH PV Guests are supposed to run
at OpenSuse 11.1 via pygrub, e.g. vm-install for this quests would work via NFS shares, not only via Internet Repositories like it works at mean time



************************************************************************************
OpenSuse11 DomU profile in case of "scp" root image file to Xen 3.3 CentOS 5.2 Dom0
************************************************************************************

name="Suse11pv"
memory=2048
disk = ['tap:aio:/etc/xen/SuseImage/disk0,xvda,w']
vif =[ 'bridge=eth0']
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = "/usr/bin/pygrub"
kernel = "/boot/vmlinuz-2.6.25.5-1.1-xen"
ramdisk = "/boot/initrd-2.6.25.5-1.1-xen"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

********************************************************************************************
OpenSuse11 DomU profile in case of sharing same disk partition with Xen 3.3 CentOS 5.2 Dom0
********************************************************************************************

name="OpenSuse11PV"
memory=2048
disk = ['phy:/dev/sdb12,xvda,w']
vif =[ 'bridge=eth0']
vfb = [ 'type=vnc,vncunused=1' ]
bootloader = "/usr/bin/pygrub"
kernel = "/boot/vmlinuz-2.6.25.5-1.1-xen"
ramdisk = "/boot/initrd-2.6.25.5-1.1-xen"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

*****************************************************************************************
xm list -l DomainName report in case of "scp" root image file to Xen 3.3 CentOS 5.2 Dom0
*****************************************************************************************

[root@ServerCentOS52 SuseImage]# xm list -l Suse11pv
(domain
(domid 7)
(on_crash restart)
(uuid fc53327a-3a3c-e78f-04aa-69ea5f09c1a5)
(bootloader_args -q)
(vcpus 1)
(name Suse11pv)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1222093318.02)
(cpu_time 7.412679481)
(online_vcpus 1)
(image
(linux
(kernel /boot/vmlinuz-2.6.25.5-1.1-xen)
(ramdisk /boot/initrd-2.6.25.5-1.1-xen)
(device_model /usr/lib64/xen/bin/qemu-dm)
(notes
(FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
)
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 0)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564197888)
(LOADER generic)
(SUSPEND_CANCEL 1)
(ENTRY 18446744071564165120)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 2207100)
(console_mfn 2207099)
(device
(vif
(bridge eth0)
(mac 00:16:3e:11:79:2c)
(script vif-bridge)
(uuid 216d961f-36b3-e775-1bb7-4d240c5ed360)
(backend 0)
)
)
(device (vkbd (backend 0)))
(device
(vfb
(vncunused 1)
(uuid 6b0077d3-36cb-18ba-cc02-f351ba4c30ef)
(location localhost:5900)
(type vnc)
(display :0.0)
(xauthority /tmp/.gdmUALZHU)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 48bfb279-9647-87f6-870c-b53f6d76002a)
)
)
(device
(tap
(protocol x86_64-abi)
(uuid 98bcb586-f8d6-83fb-80e3-89af668a94ad)
(dev xvda:disk)
(uname tap:aio:/etc/xen/SuseImage/disk0)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
)
***********************************************************************************************
xm list -l DomainName report in case of sharing same disk partition with Xen 3.3 CentOS 5.2 Dom0
***********************************************************************************************

[root@ServerCentOS52 ~]# xm list -l OpenSuse11PV
(domain
(domid 3)
(on_crash restart)
(uuid 598b5009-353d-1345-cde0-65eeccd05d6e)
(bootloader_args -q)
(vcpus 1)
(name OpenSuse11PV)
(on_poweroff destroy)
(on_reboot restart)
(bootloader /usr/bin/pygrub)
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1222096578.81)
(cpu_time 12.760360955)
(online_vcpus 1)
(image
(linux
(kernel /boot/vmlinuz-2.6.25.5-1.1-xen)
(ramdisk /boot/initrd-2.6.25.5-1.1-xen)
(device_model /usr/lib64/xen/bin/qemu-dm)
(notes
(FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
)
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 0)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564197888)
(LOADER generic)
(SUSPEND_CANCEL 1)
(ENTRY 18446744071564165120)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 2205134)
(console_mfn 2205133)
(device
(vif
(bridge eth0)
(mac 00:16:3e:09:fd:f8)
(script vif-bridge)
(uuid b4ecd9f9-90d5-191a-712e-3b87b157d0f4)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 1ef01a2d-5432-6a0c-820b-bd8d6e7f1f25)
(dev xvda:disk)
(uname phy:/dev/sdb12)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device (vkbd (backend 0)))
(device
(vfb
(vncunused 1)
(uuid 9d1e5b21-e58e-e4b5-c9eb-6db6e52566f4)
(location localhost:5900)
(type vnc)
(display :0.0)
(xauthority /tmp/.gdmM56OHU)
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 9a2059bc-4067-0d3f-3d41-4c879e572d50)
)
)
)




Actually any image transfered via "scp" to CentOS 5.2 Dom0 may be easily converted
to LVM for performance improvement. In case when Suse DomU is utilizing LVM for
root image two "dd" conversions might be required to transfer DomU to remote
Xen 3.3 CentOS 5.2 Dom0.















Thursday, September 11, 2008


FireFox 3.0.1 & Java Web Start on 64-bit Xen 3.3 CentOS 5.2 Dom0



This posting follows up the recent one Vncserver on SNV97 DomU at Xen 3.3 CentOS 5.2 Dom0 (64-bit) and is targeting enabling Sun's Java Web Start in FireFox 3.0.1 Web Browser with 32-bit JRE 6.0 plugin installed on 64-bit Linux.
First of all install 32-bit Sun JRE 6.0 for Linux by running
./jre-6u<version>-linux-i586-rpm.bin.
Then install FireFox 3.0.1 (32-bit) into folder /usr/tmp/firefox for instance
Create following symlink to make firefox aware of JRE :-



[root@ServerRHL52]# cd /usr/tmp/firefox/plugins
[root@ServerRHL52 plugins]# ln -s /usr/java/jre1.6.0_07/plugin/i386/ns7/libjavaplugin_oji.so \
> libjavaplugin_oji.so









Sun's test:-








Consider two samples for verification.


1. Vncserver started on SNV97 DomU allocates two ports 580(X) and 590(X),where (X) is available display number.Port 580(X) may be used for http://IP-DomU:580(X) connection to DomU , port 590(X) may be used by vncviewer IP-DomU:(X) connection.Both ways initiate loading Java Applets from DomU into Dom0.Snapshots bellow demonstrates loading VncViewer Applet via launching Firefox 3.0.1 browser to http://IP-DomU:5801.














2. Another demonstration of Java Web Start availability is running Sun Download Manager
(SDM) in browser FireFox 3.0.1.












Sunday, September 07, 2008


Vncserver on SNV97 DomU at Xen 3.3 CentOS 5.2 Dom0 (64-bit)



Sun Xvnc implementation for Nevada, committed in build 76 provides 3 options. Third one is to start vncserver by hands. It allocates two ports 580(X) and 590(X),where (X) is available display number.Port 580(X) may be used for http://IP-DomU:580(X) connection to DomU , port 590(X) may be used by vncviewer IP-DomU:(X) connection.Both ways initiate loading Java Applets from DomU into Dom0. Connection via vncviewer has been selected on CentOS 5.2 Dom0 (with Sun JDK 6.0 installed) due to issue with Java Web Start and FireFox on 64-bit Linux. By some reasons first and second options provided by official Sun Xvnc failed on SNV97 DomU, successfully installed via pygrub in text mode as usual.Following bellow is a snapshot of DomU start up.



[root@RHEL52 vm]# uname -a
Linux RHEL52 2.6.18-92.1.6.el5xen #1 SMP Wed Jun 25 14:13:10 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@RHEL52 vm]# xm info|grep xen_
xen_major : 3
xen_minor : 3
xen_extra : .0
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
xen_changeset : unavailable
[root@RHEL52 vm]# xm create -c snv97.pygrun
Using config file "./snv97.pygrun".
Started domain Solaris79PV
v3.3.0 chgset 'unavailable'
SunOS Release 5.11 Version snv_97 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTICE: xdf@0: failed to read feature-barrier
Hostname: Solaris97pvm
/dev/rdsk/c0d0s7 is clean
Reading ZFS config: done.

Solaris97pvm console login: root
Password:
Last login: Sun Sep 7 15:38:08 on console
Sep 7 15:43:31 Solaris97pvm login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_97 November 2008
# bash
bash-3.2# export PATH=/opt/SUNWtvnc/bin:/usr/openwin/bin:$PATH
bash-3.2# vncserver

New 'X' desktop is Solaris97pvm:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Solaris97pvm:1.log

bash-3.2# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
xnf0: flags=201000843 mtu 1500 index 2
inet 192.168.1.27 netmask ffffff00 broadcast 192.168.1.255
ether 0:16:3e:31:51:50
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128




File ~/.vnc/xstartup generated by vncviewer in this case looks like:-



#!/bin/sh

unset SESSION_MANAGER
OS=`uname -s`
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ $OS = 'SunOS' -a -f $HOME/.dt/sessions/lastsession ]; then
exec `cat $HOME/.dt/sessions/lastsession`
fi
if [ -f /usr/dt/config/Xsession.jds ]; then
exec /usr/dt/config/Xsession.jds
else
if [ -f /usr/dt/bin/Xsession ]; then
exec /usr/dt/bin/Xsession
else
if [ -x /opt/sfw/bin/fvwm2 ]; then
/opt/sfw/bin/fvwm2
else
which fvwm2 && {
fvwm2
} || {
which twm && {
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm
} || {
echo No window manager found!
}
}
fi
fi
fi




In case of replacement packages SUNWvncviewer,SUNWxvnc from any recent Nevada build
less than 97. Standard Xvnc gets back in place. However same file xstartup in this
case looks like:-



#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &




What provides just X-terminal window instead of gnome desktop


Issue vncviewer 192.168.1.27:1 from another terminal session.




















Web Login to SNV97 DomU from Windows HVM at the same Xen 3.3 CentOS 5.2 Dom0.











Regarding same task at SNV97 Dom0 view:-
Setting up VNC on SNV97 DomU at SNV97 Dom0

Saturday, September 06, 2008


Setting up VNC on SNV97 DomU at SNV97 Dom0



Solaris97PVM console login: root
Password:
Last login: Sat Sep 6 11:41:12 on console
Sep 6 17:30:23 Solaris97PVM login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_97 November 2008
# bash
bash-3.2# export TERM=vt100
bash-3.2# export PATH=/opt/SUNWtvnc/bin:/usr/openwin/bin:$PATH
bash-3.2# echo $PATH
/opt/SUNWtvnc/bin:/usr/openwin/bin:/usr/sbin:/usr/bin
bash-3.2# vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
xauth: creating new authority file /root/.Xauthority

New 'X' desktop is Solaris97PVM:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Solaris97PVM:1.log

bash-3.2# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
xnf0: flags=201000843 mtu 1500 index 2
inet 192.168.1.9 netmask ffffff00 broadcast 192.168.1.255
ether 0:16:3e:1b:cd:91
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128


bash-3.2# ps -ef | grep vnc
root 790 1 0 17:31:25 console 0:00 /opt/SUNWtvnc/bin/Xvnc :1 -desktop X -httpd /opt/SUNWtvnc/bin/../vnc/classes -a


bash-3.2# netstat -a | grep 580
*.5801 *.* 0 0 49152 0 LISTEN
ffffff014aa7d580 stream-ord 00000000 00000000 /var/run/dbus/system_bus_socket
bash-3.2#


Launch browser to http://IP-Dom0:5801, submit password and get graphical console in browser, actually Java applet "VncViewer" loaded from DomU
in browser at Dom0.























As appears vncserver also activates port 5901:-


-bash-3.2# netstat -a | grep 580
*.5801 *.* 0 0 49152 0 LISTEN
ffffff014b9f7580 stream-ord ffffff014bb12480 00000000 /var/run/hald/dbus-9fQYRGL6mm


-bash-3.2# netstat -a | grep 590
*.5901 *.* 0 0 49152 0 LISTEN
Solaris97PVM.5901 192.168.1.7.47087 49640 0 49640 0 ESTABLISHED
ffffff014bd62590 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-3b1-0-48c30efadf528


providing usual vnc connection to SNV97 DomU via 5901.


Working with with GlassFish V2 at SNV97 Dom0.