Monday, December 17, 2007

Testing patch for "6633784 checksum offload with Linux dom0 produces invalid checksum" on SNV76 DomU at CentOS 5.0 Dom0 per David Edmondson

Please, view description of original bug affecting SNV66,75A,76,77:-

6633784 checksum offload with Linux dom0 produces invalid checksum

Testing environment:- Xen 3.1 SNV76 DomU at CentOS 5.0 Dom0 (x86_64).
Patch has been applied when system rebooted the first time after
fresh install. File /etc/system has never been touched.
Original file layout:-

# mkdir /mnt/tmp
# mkdir /usr/lib/xen-solaris
# cd /usr/lib/xen-solaris/
# mount -o loop,ro snv76.iso /mnt/tmp
# cp /mnt/tmp/boot/amd64/x86.miniroot /usr/lib/xen-solaris/x86.miniroot-76
# cp /mnt/tmp/boot/platform/i86xpv/kernel/amd64/unix /usr/lib/xen-solaris/unix-76
# umount /mnt/tmp

Installation profile SolarisInstall.conf :-

name = 'Solaris76'
memory = '1024'
disk = [ 'file:/usr/lib/xen-solaris/snv76.iso,6:cdrom,r', 'phy:/dev/sdb3,0,w' ]
vif = [ '' ]
on_shutdown = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
kernel = '/usr/lib/xen-solaris/unix-76'
ramdisk = '/usr/lib/xen-solaris/x86.miniroot-76'
extra = '/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom'

# xm create -c SolarisInstall.conf

Runtime profile SolarisRunTime.conf:-

name = 'Solaris76'
memory = '1024'
disk = [ 'phy:/dev/sdb3,0,w' ]
vif = [ '' ]
on_shutdown = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
kernel = '/usr/lib/xen-solaris/unix-76'
ramdisk = '/usr/lib/xen-solaris/x86.miniroot-76'
extra = '/platform/i86xpv/kernel/amd64/unix -kd'
root = '/dev/dsk/c0d0s0'

# xm create -c SolarisRunTime.conf

Patching xnf driver during SNV76 DomU booting up:-

SSH connection from SNV DomU to CentOS 5 Dom0:-

Patched SNV76 DomU at CentOS 5 Dom0 has been tested to work
on Internet through proxy server on remote host.

SNV DomU still properly communicates with remote proxy server :-)

Querying Oracle 10gR2 Instance running on patched SNV76 DomU from Linux Dom0:-

Shutdown patched SNV76 DomU:-

Wednesday, December 05, 2007

Install Oracle 11g on Fedora 7 DomU at SXDE 76 Dom0 (x64/x86)

First install F7 DomU. Size of image file ( f7pvm.img ) should be
at least 15 GB in case when OUI 11g database folder would be located
on NFS share. If you intend upload on DomU
filesystem increase image size up to 20 GB to install all packages at a time
and reduce number of additional packages required afterwards :-

# lofiadm -a /export/home/isos/f7.iso
# mount -o ro -F hsfs /dev/lofi/1 /mnt
# share -F nfs /mnt
# virt-install -n F7pvm -p -r 1024 --nographics -x "console=hvc0" \
-f /second_root/images/f7pvm.img -l nfs:<IP-ADDRESS Dom0>:/mnt

When installer brings you to "Software to be installed" customization screen,
select option customize for the set of the packages to be placed on the system
and mark all groups except "Clusters".
When install will be completed following additional rpms
will have be downloaded from the Net and installed on F7 DomU

# rpm -Uvh libaio-0.3.106-3.2.x86_64 \
# rpm -Uvh unixODBC-devel-2.2.12-2.fc7.x86_64.rpm
# rpm -Uvh sysstat-7.0.4-3.fc7.x86_64.rpm

Tune F7 DomU for Oracle 11g install as advised in [1], except
adding lines to /etc/pam.d/login, otherwise console login to
F7 DomU will be lost and more over F7 DomU will start malfunction.
Enable SSH X11 forwarding on F7 DomU to perform remote Oracle
installation with Cygwin/X remote Windows XP desktop.
Start X-Server and open X-terminal on Windows desktop and issue:-

$ xhost +<IP-ADDRESS DomU>
$ ssh -X oracle@<IP-ADDRESS DomU>
$ /mnt/runIstaller &

In my case remote nfs share , containing OUI database folder,
was previously mounted on /mnt directory of F7 DomU

When done verify remote connections to Oracle Instance at F7 DomU,
launching windows Internet explorer to

https://<IP-ADDRESS DomU>:1158/em/

Shutdown oracle and F7 domU:-

oracle@ServerFDR7$ emctl stop dbconsole
oracle@ServerFDR7$ dbshut $ORACLE_HOME
oracle@ServerFDR7$ su -
# shutdown -y -i0 -g0

Run "xm list" at SXDE 76 Dom0 and make sure F7 DomU
has been shutdown.

# xm start F7pvm
# xm console F7pvm

Login as root to DomU:-

# su - oracle
oracle@ServerFDR7$ dbstart $ORACLE_HOME
oracle@ServerFDR7$ emctl start console

Verify connections to Oracle instance from Solaris 76 Dom0 :-


Monday, December 03, 2007

Install Oracle on Solaris 10 (08/07) HVM at SXDE 76 Dom0

Configure the vnc password and default nic for xend service.
Run "dladm show-link" to determine default nic for xend service.

# svccfg -s xvm/xend setprop config/vncpasswd = astring: \"secret\"
# svccfg -s xvm/xend setprop config/vnc-listen = astring: \"\"
# svccfg -s xvm/xend setprop config/default-nic="rtls0"
# svcadm refresh xvm/xend
# svcadm restart xvm/xend

Copy by "dd" ISO image of Solaris 10 (08/07) to /export/home/isos/solaris0807.iso
at SXDE 76 Dom0 and proceed with virt-install Solaris 10 HVM:-

Booting Solaris HVM the first time:-

Now we have to install two additional packages from S10 U4 DVD.
Perform at SXDE 76 Dom0 side:-

# lofiadm -a /export/home/isos/solaris0807.iso
# mount -o ro -F hsfs /dev/lofi/1 /mnt
# share -F nfs /mnt

At Solaris 10 ( 08/07) HVM DomU:

# mount -F nfs <IP-ADDRESS Dom0>:/mnt /mnt
# pkgadd -d /mnt/Solaris_10/Product SUNWi1cs SUNWi15cs

Proceed with tuning Solaris 10 ( 08/07) HVM as advised in [1]
for Oracle install on Solaris 10 (32 bit).

1.Run OUI in advanced mode and select option "Install Software Only"

2.Run dbca and create a database

3.Run netca to create LISTENER and perform Local Network Names configuration

Perform Oracle Instance verification connecting from SXDE 76 Dom0 side:-