Tuesday, May 27, 2008


Install OpenSolaris 2008/05 DomU at Ubuntu 8.04 Desktop Xen 3.2 Dom0 (both 64-bit)



Instructions mentioned bellow in general follow up the ones in my previous post,
regarding OpenSolaris 2008/05 DomU at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit).
However, Xen 3.2.1 Dom0 had been built on CentOS 5.1 from the source obtained
by cloning Mercurial Repository@xensource.com. Install Xen on Ubuntu 8.04 had
been performed from Ubuntu Repositories and patched as usual:



sudo apt-get install ubuntu-xen-server
wget http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/linux-headers-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb
wget http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/linux-image-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb
sudo dpkg -i linux-headers-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb linux-image-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb






Current install is targeting test Ubuntu 8.04 Desktop(Server) Xen 3.2 Dom0 (amd64)
with DomU a bit different form regular SNV87(89) DomU due to ZFS file system
has been utilized for root in OS 2008/05.
Ubuntu 8.04 allows utilize "pygrub" for initial load from Live CD , but for
runtime it is still useless (no ZFS support for pygrub in Xen 3.2.0).
Patched kernel and boot_archive have been copied from DomU to Dom0 , exactly like
on CentOS 5.1. Runtime uses "extra" line suggested by Mark Jonson at xen-discuss
forum@opensolaris.org. Kernel has been patched in DomU per Jurgen Keil instruction
suggested by him at the same forum to put in work SNV85,86 at Xen 3.2 Linux Dom0s (64-bit)


Create startup profile as follows:-



# losetup -f /etc/xen/isos/os200805.iso


root@boris-desktop:/etc/xen/vm# cat os0805.install
name = "OpensolarisPV1"
vcpus = 1
memory = "1024"
bootloader = "/usr/bin/pygrub"
kernel = "/platform/i86xpv/kernel/amd64/unix"
ramdisk = "/boot/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom"
disk = ['phy:/dev/loop0,6:cdrom,r','phy:/dev/sdb11,0,w']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "preserve"


# xm create -c os0805.install




During startup at kmdb prompt :-



Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]> gnttab_init+0xce/W 403
gnttab_init+0xce: 0x3 = 0x403
[0]> :c









Login as jack/jack and to perform
graphical install from Live CD to hard drive.














When graphical install ends don't click reboot.
Open root's terminal session,with password assigned by yourself
at installation startup, and run:-



# mdb -w /a/platform/i86xpv/kernel/amd64/unix
> gnttab_init+0xce?W 403
unix`gnttab_init+0xce: 0x403 = 0x403
> $q

# /usr/bin/scp -S /usr/bin/ssh /a/platform/i86xpv/kernel/amd64/unix \
> 192.168.1.36:/usr/lib/xen-solaris/unix-0805

# /usr/bin/scp -S /usr/bin/ssh /a/platform/i86pc/amd64/boot_archive \
> 192.168.1.36:/usr/lib/xen-solaris/boot_archive

bash-3.2# shutdown -y -i0 -g0









Runtime profile:-



name = "OpenSolarisPV"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-0805"
ramdisk = "/usr/lib/xen-solaris/boot_archive"
extra = "/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27"
disk = ['phy:/dev/sdb11,0,w']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"


# xm create -c os200805.runtime









Notice that patched kernel and boot_archive are already copied to Dom0.
Login as user, been created during graphical install,into domU and tune
vncserver startup in same way like after boot from Live CD.
User's environment to start vncserver and file ./vnc/xtstartup are printed
bellow, you might be missing them after login :-



#!/bin/ksh
#
# CDDL HEADER START
# For automatic login, we just invoke the default Gnome desktop
exec /usr/bin/dtstart jds


# export PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
# vncserver













References
1.http://lxer.com/module/newswire/view/102728/index.html

Sunday, May 25, 2008


Install OpenSolaris2008/05 HVM DomU at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit)



This posting attempts to address several issues raised up
during the recent discussion at Lxer.com. View:-
OpenSolaris 2008/05 Live CD worked for me just now
Install on bare metal is quite simple if OpenSolaris HCL has been
consulted before it began.
Create installation profile for OS200805 HVM Guest:-



[root@dhcppc3 vm]# cat OS0805.hvm
name = "OS200805HVM"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/sdb11,ioemu:hda,w','file:/usr/lib/xen-solaris/os200805.iso,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="d"
vcpus=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'




Then run:-
# xm create OS200805.hvm
Open another terminal and issue:-
# vncviewer localhost:0
To connect to HVM console and proceed with install.

















Change profile to runtime and start up OS200805 HVM DomU:-



[root@dhcppc3 vm]# cat OS0805RT.hvm
name = "OS200805HVM"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/sdb11,ioemu:hda,w']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="c"
vcpus=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'




Edit Solaris Grub entries to load 64-bit kernel.
When logged in make this changes permanent to
/rpool/boot/grub/menu.lst






Press "b" at kernel line to continue booting:-









References.
1.http://lxer.com/module/newswire/view/100541/index.html

Saturday, May 24, 2008


Evidence of loading from Live CD OpenSolaris 2008/05



Just now I've loaded from Live CD OpenSolaris 2008/05.
Opened Internet session with blogger.com via ADSL modem
acting as DHCP Bridge and uploaded screenshot bellow , been prepared during
the session :-








As soon as I logged in as jack/jack Gnome desktop started automatically in a few seconds.
Performance seems to be the same as provided by Ubuntu 7.10 Live CD
environment.
Hardware:-
CPU - C2D6600
Board - ASUS P5B Deluxe
4 GB RAM (Kingston)
Video Card - GeForce 8500 GT


Actually, only one component might affect Gnome Desktop startup.
It is GeForce Video Adapter. I would expect problem with 7300 GT
due to some experience with regular Nevada Builds and SNV86 in
particular.


Install SNV89 HVM DomU (64-bit) at Ubuntu 8.04 Desktop Xen 3.2 Dom0 (amd64)



Install Ubuntu 8.04 Xen Desktop (amd64) as advised by Todd Deshane ([1]):-



sudo apt-get install ubuntu-xen-server
wget http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/linux-headers-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb
wget http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/linux-image-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb
sudo dpkg -i linux-headers-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb linux-image-2.6.24-16-xen_2.6.24-16.30zng1_amd64.deb




Verify Xen environment at Ubuntu 8.04 Desktop Dom0:-



root@boris-desktop:/etc/xen/vm# xm info
host : boris-desktop
release : 2.6.24-16-xen
version : #1 SMP Sat Apr 19 05:03:28 JST 2008
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 3005
hw_caps : bfebfbff:20100800:00000000:00000140:0008e3fd:00000000:00000001
total_memory : 4095
free_memory : 2087
max_free_memory : 3597
max_para_memory : 3593
max_hvm_memory : 3576
node_to_cpu : node0:0-1
xen_major : 3
xen_minor : 2
xen_extra : .1-rc1-pre
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
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
cc_compiler : gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
cc_compile_by : buildd
cc_compile_domain : buildd
cc_compile_date : Fri Apr 11 01:13:51 UTC 2008
xend_config_format : 4
root@boris-desktop:/etc/xen/vm# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.001e8c25cca5 no peth0




Create /dev/loop0 for ISO image file:-



# losetup -f /etc/xen/isos/snv89.iso
# losetup -a
/dev/loop0: [080b]:1566837 (/etc/xen/isos/snv89.iso)




First option for profiles:-


********
Install
********



root@boris-desktop:/etc/xen/vm# cat sol.hvm
name="Solaris89"
builder='hvm'
memory=1024
disk=['phy:/dev/sdb13,ioemu:hda,w','phy:/dev/loop0,hdc:cdrom,r']
vif=['type=ioemu,bridge=eth0']
device_model = '/usr/lib64/xen/bin/qemu-dm'
kernel='/usr/lib64/xen/boot/hvmloader'
vcpus=1
serial="pty"
sdl=1
boot="d"
on_reboot = 'restart'
on_crash = 'restart'




************
Runtime
************



root@boris-desktop:/etc/xen/vm# cat sol89.hvm
name="Solaris89"
builder='hvm'
memory=1024
disk=['phy:/dev/sdb13,ioemu:hda,w']
vif=['type=ioemu,bridge=eth0']
device_model = '/usr/lib64/xen/bin/qemu-dm'
kernel='/usr/lib64/xen/boot/hvmloader'
vcpus=1
serial="pty"
sdl=1
boot="c"
on_reboot = 'restart'
on_crash = 'restart'




Second option for profiles:-


********
Install
********



root@boris-desktop:/etc/xen/vm# cat solaio.hvm
name="Solaris89HVM"
builder='hvm'
memory=1024
disk=['tap:aio:/etc/xen/images/snv.img,hda,w','phy:/dev/loop0,hdc:cdrom,r']
vif=['type=ioemu,bridge=eth0']
device_model = '/usr/lib64/xen/bin/qemu-dm'
kernel='/usr/lib64/xen/boot/hvmloader'
vcpus=1
serial="pty"
sdl=1
boot="d"
on_reboot = 'restart'
on_crash = 'restart'




***********
Runtime
***********



root@boris-desktop:/etc/xen/vm# cat sol89aio.hvm
name="Solaris89HVM"
builder='hvm'
memory=1024
disk=['tap:aio:/etc/xen/images/snv.img,hda,w']
vif=['type=ioemu,bridge=eth0']
device_model = '/usr/lib64/xen/bin/qemu-dm'
kernel='/usr/lib64/xen/boot/hvmloader'
vcpus=1
serial="pty"
sdl=1
boot="c"
on_reboot = 'restart'
on_crash = 'restart'





















References.
1.http://deshantm.livejournal.com/29959.html
2.http://blogs.sun.com/breakdown/

Saturday, May 17, 2008


Pygrub install Solaris (Nevada build 87) DomU at Xen 3.2 Ubuntu 8.04 Desktop&Server Dom0 (64-bit)



Install Ubuntu 8.04 Xen Desktop (amd64) as advised by Todd Deshane ([1]).
Notice, that performing same install at Ubuntu 8.04 Xen Server (amd64)([2]),
i didn't test "pygrub"and mentioned install has been done with xen manager what required mount loop ISO image of Solaris DVD and copy xen-kernel and boot_archive off of the disk to Dom0. Pygrub works fine on both Ubuntu 8.04 Xen 3.2 Server and Desktop in regards of Solaris PV guests installs.
To configure startup profile for Solaris Nevada build 87 at Ubuntu 8.04 Xen Desktop manage as follows:-



$ sudo su
# mount /dev/scd1 /media/cdrom0
# dd if=/dev/scd1 of=/usr/lib/xen-solaris/snv87.iso




Losetup ISO image:-



$ sudo su
# losetup -f /usr/lib/xen-solaris/snv87.iso
# losetup -a
/dev/loop0: [080b]:3737846 (/usr/lib/xen-solaris/snv87.iso)




Installation profile:-



name = 'SolarisPVM'
memory = '1024'
disk = [ 'phy:/dev/loop0,6:cdrom,r', 'phy:/dev/sdb15,0,w' ]
vif = [ 'bridge=eth0' ]
bootloader = '/usr/bin/pygrub'
kernel = '/boot/platform/i86xpv/kernel/amd64/unix'
ramdisk = '/boot/amd64/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom'




Go through normal install and switch profile to runtime:-



name = 'SolarisPVM'
memory = '1024'
disk = [ 'phy:/dev/sdb15,0,w' ]
vif = [ 'bridge=eth0' ]




Set up Sun Xvnc at SNV87 DomU and connect with any user (different from
root) credentials from remote desktop to SNV87 DomU at Ubuntu 8.04 Xen Server Dom0.



# svccfg -s application/x11/x11-server \
add display1
# svccfg -s application/x11/x11-server:display1 \
addpg options application
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server_args astring: '"SecurityTypes=None"'




Configure dtlogin to start it:-



# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers
# echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" \
>> /etc/dt/config/Xservers
# pkill -HUP dtlogin




Then open ssh connection to Ubuntu 8.04 Desktop Dom0 and
get a couple reports. SNV87 DomU behaves just fine on the LAN.

















References.
1.http://deshantm.livejournal.com/29959.html
2.http://librenix.com/?inode=12045

Wednesday, May 14, 2008


Install Solaris (Nevada build 87) DomU at Xen 3.2 Ubuntu 8.04 Server Dom0 (64-bit)



Install Ubuntu 8.04 Xen Server (amd64) as advised by Todd Deshane ([1]).
To configure startup profile for Solaris Nevada build 87 at Ubuntu 8.04 Server Dom0 manage as follows:-



$ sudo su
# mount /dev/scd1 /media/cdrom0
# dd if=/dev/scd1 of=/usr/lib/xen-solaris/snv87.iso




Then copy 64-bit xen-solaris kernel and x86.miniroot to Dom0:-



# mkdir -p /mnt01/tmp
# mount -o loop,ro snv87.iso /mnt01/tmp
# cp /mnt01/tmp/boot/amd64/x86.miniroot /usr/lib/xen-solaris/x86.miniroot-87
# cp /mnt01/tmp/boot/platform/i86xpv/kernel/amd64/unix /usr/lib/xen-solaris/unix-87
# umount /mnt01/tmp




Losetup ISO image:-



$ sudo su
# cd /usr/lib/xen-solaris/
# losetup -f snv87.iso




Installation profile:-



name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom"
disk = ['phy:/dev/loop0,6:cdrom,r','tap:aio:/etc/xen/images/snv87.img,0,w']
# disk = ['phy:/dev/loop0,6:cdrom,r','phy:/dev/sdb9,0,w']
vif = ['bridge=eth0']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Go through normal install and switch profile to runtime:-



name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix"
disk = ['tap:aio:/etc/xen/images/snv87.img,0,w']
# disk = ['phy:/dev/sdb9,0,w']
root="/dev/dsk/c0d0s0"
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Set up Sun Xvnc at SNV87 DomU and connect with any user (different from
root) credentials from remote desktop to SNV87 DomU at Ubuntu 8.04 Xen Server Dom0.



# svccfg -s application/x11/x11-server \
add display1
# svccfg -s application/x11/x11-server:display1 \
addpg options application
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server_args astring: '"SecurityTypes=None"'




Configure dtlogin to start it:-



# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers
# echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" \
>> /etc/dt/config/Xservers
# pkill -HUP dtlogin




Then open ssh connection to Ubuntu 8.04 Xen Server Dom0 and
get a couple reports. SNV87 DomU behaves just fine on the LAN.

















Same schema works fine at Ubuntu 8.04 Desktop Dom0 (amd64)










References.
1.http://deshantm.livejournal.com/29959.html

Monday, May 12, 2008


Install Solaris (Nevada build 87) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit)



Xen 3.1.2 bits went into Nevada build 85, what caused SNV85 PV guest immediately
to panic at installation startup on Xen 3.2 (3.2.1) Linux Dom0. Sun made an official fix for this issue in build 87.Only 85 and 86 Nevada builds are affected by
Bug 6650717

and require workaround ([1]).Nevada build 87 DomU works fine at Xen 3.2.1 Linux
Dom0 (64-bit). Forthcoming Nevada build 88 DomU would work also on Xen 3.2.1 Linux
Dom0 (32-bit).


Verify environment at Xen3.2.1 Linux Dom0:-



[root@dhcppc0 vm]# xm info
host : dhcppc0
release : 2.6.18.8-xen
version : #1 SMP Sat Apr 26 09:29:28 EDT 2008
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 3005
hw_caps : bfebfbff:20100800:00000000:00000140:0008e3fd:00000000:00000001
total_memory : 4095
free_memory : 1030
node_to_cpu : node0:0-1
xen_major : 3
xen_minor : 2
xen_extra : .1
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
platform_params : virt_start=0xffff800000000000
xen_changeset : Fri Apr 25 14:03:45 2008 +0100 16881:4073b3ded545
cc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
cc_compile_by : root
cc_compile_domain : (none)
cc_compile_date : Sat Apr 26 09:35:16 EDT 2008
xend_config_format : 4
[root@dhcppc0 vm]# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.001e8c25cca5 no peth0




Installation profile:-



[root@dhcppc0 vm]# cat SNV87.install
name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom"
disk = ['file:/usr/lib/xen-solaris/snv87.iso,6:cdrom,r','phy:/dev/sdb15,0,w']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Go through normal install
# xm create -c snv87.install
and change profile to runtime :-



[root@dhcppc0 vm]# cat SNV87.conf
name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix"
disk = ['phy:/dev/sdb15,0,w']
root="/dev/dsk/c0d0s0"
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Run:-
# xm create -c snv87.conf
and turn on Sun Xvnc at DomU:-



# svccfg -s application/x11/x11-server \
add display1
# svccfg -s application/x11/x11-server:display1 \
addpg options application
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server_args astring: '"SecurityTypes=None"'




Configure dtlogin to start it:-



# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers
# echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" \
>> /etc/dt/config/Xservers
# pkill -HUP dtlogin




Create any user's account and connect from another machine or Dom0 :-
# vncviewer IP-ADDRESS-DomU:1
to verify that you can login with recently created user's credentials
to a Gnome (CDE) desktop session.
















References.
1.Install SNV85 DomU at Xen 3.2 CentOS 5.1 or Ubuntu 7.10 Dom0 (64-bit) per Jurgen Keil

Thursday, May 08, 2008


Install OpenSolaris 2008/05 DomU at Xen 3.2.1 CentOS 5.1 & Ubuntu 7.10 (Desktop) Dom0 (64-bit)



Install OpenSolaris 2008/05, based on Nevada build 86, requires workaround
recently suggested by Jurgen Keil ([1]). It's runtime profile differs from
reqular one due to utilizing ZFS filesystem (vs UFS for regular Nevada
builds) as was noticed by Mark Jonson at xen-discuss forum @opensolaris.org.
Place OpenSolaris 2008/05 DVD in drive, wait until gets mounted
and run:-



# dd if=/dev/hda of=/usr/lib/xen-solaris/os200805.iso




Then copy 64-bit xen-solaris kernel and x86.microroot to Dom0:-



mkdir -p /mnt01/tmp
mount -o loop,ro os200805.iso /mnt01/tmp
cp /mnt01/tmp/boot/x86.microroot /usr/lib/xen-solaris/x86.microroot
cp /mnt01/tmp/boot/platform/i86xpv/kernel/amd64/unix /usr/lib/xen-solaris/unix-0805
umount /mnt01/tmp




Installation profile:-



name = "OpenSolaris"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-0805"
ramdisk = "/usr/lib/xen-solaris/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom"
disk = ['file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r','phy:/dev/sdb8,0,w']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




During startup manage like in [1]:-



Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]> gnttab_init+0xce/W 403
gnttab_init+0xce: 0x3 = 0x403
[0]> :c




Login as jack/jack and follow [2] to perform
graphical install from Live CD to hard drive.
When graphical install ends don't click reboot.
Open root's terminal session,with password assigned by yourself
at installation startup, and run:-



# mdb -w /a/platform/i86xpv/kernel/amd64/unix
> gnttab_init+0xce?W 403
unix`gnttab_init+0xce: 0x403 = 0x403
> $q


# /usr/bin/scp -S /usr/bin/ssh /a/platform/i86xpv/kernel/amd64/unix \
> IP-ADDRESS-Dom0:/usr/lib/xen-solaris/unix-0805


# /usr/bin/scp -S /usr/bin/ssh /a/platform/i86pc/amd64/boot_archive \
> IP-ADDRESS-Dom0:/usr/lib/xen-solaris/boot_archive


bash-3.2# shutdown -y -i0 -g0




Runtime profile:-



name = "OpenSolaris"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-0805"
ramdisk = "/usr/lib/xen-solaris/boot_archive"
extra = "/platform/i86xpv/kernel/amd64/unix -B zfs-bootfs=rpool/27"
disk = ['file:/usr/lib/xen-solaris/os200805.iso,6:cdrom,r','phy:/dev/sdb8,0,w']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Notice that patched kernel and boot_archive are already copied to Dom0.
Login as user, been created during graphical install,into domU and tune
vncserver startup in same way like after boot from Live CD ([2]).
Your environment may be picked up from another loaded just for several minutes Live CD's instance.


Snapshots:-















Same schema also works at Xen 3.2.1 Ubuntu 7.10 (Desktop) Dom0.
Pygrub may be used for original install , but still cannot help
at runtime (no ZFS support for pygrub in Xen 3.2.1)





Patching kernel and copy it along with boot_archive to Dom0:-








Starting up DomU:-











References
1.http://lxer.com/module/newswire/view/101660/index.html
2.http://blogs.sun.com/mrj/

Monday, May 05, 2008


Performance SNV87 HVM DomU at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) versus at SNV87 Dom0 (64-bit).



Startup shutdown snapshots at Xen 3.2.1 CentOS Dom0.
Timer in right upper corner.

















It's time to shutdown SNV87 HVM DomU.








Startup shutdown snapshots at SNV87 Dom0.
Timer in left down corner.


















It's time to destroy SNV87 HVM DomU (shutdown won't help).