Installing OpenSolaris 2008.05 into xVM or XEN VM in PARA mode

Simple 12 steps for installing OpenSolaris 2008.05 into xVM or XEN VM in PARA mode, in

This entry is part of 'OpenSolaris on Amazon EC2' Workshop

For installing into XEN on Linux see more detail in discusion Installing OpenSolaris 2008/05 as a PV guest

1) Download OpenSolaris 200805 version for primary languages only (os200508.iso) it is compressed by GZIP, All languages GLOBO version (os200805g.iso) is compressed by LZMA and installation in xVM/XEN (or other virtualizations can be much slower)

2) Install OpenSolaris 200805 in xVM or XEN PARA mode

Get predefined fix mac address with prepared DHCP setup

 cat hostnames | grep xen-2
xen-2              129.157.107-DOT-173         00:16:3E:3f:fb:0f  Amazon AWS EC2 Virtualisation testing

Create 4GB root file

mkdir /stuff/os200805
mkfile 4g /stuff/os200805/osoljeos.img

We will use pygrub to boot xVM or XEN PARA kernel from CD-ROM

cat inst-os200805.py
name = "inst-os200805"
vcpus = 1
memory = "1700"
bootloader = "/usr/lib/xen/bin/pygrub"
kernel = "/platform/i86xpv/kernel/amd64/unix"
ramdisk = "/boot/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text"
disk = ['file:/stuff/os200805/os200805.iso,6:cdrom,r',
        'file:/stuff/os200805/osoljeos.img,0,w']
vif = ['mac=00:16:3E:3f:fb:0f']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "preserve"

xm create -c inst-os200805.py

3) Select languages

4) Login as jack/jack and switch to root

su - root
opensolaris

5) Check network connection and get IP

ifconfig xnf0
xnf0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
        inet 129.157.107.173 netmask fffffc00 broadcast 129.157.107.255
        ether 0:16:3e:3f:fb:f

6) Installation is GUI only, we need for installation X display

I prefer to use remote X leaving more memory for OpenSolaris installation

6a) Use for installation vncserver

Exit root shell with

exit

Start vncserver server

mkdir .vnc;cp .Xclients .vnc/xstartup
jack-AT-opensolaris:~$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /jack/.Xauthority

New 'opensolaris:1 ()' desktop is opensolaris:1

Starting applications specified in /jack/.vnc/xstartup
Log file is /jack/.vnc/opensolaris:1.log

Connect to desktop on VNC server

vncviewer  129.157.107.173:1

6b) Use for installation ssh with X redirection

ssh -X jack@129.157.107.173

jack

export DISPLAY=computer:0.0

pfexec gui-install

7) Select whole first disk and install

Whole 4Gb disk root password: opensolaris priv user: osol Passwd: osol0508 Important: Select UTC - England (UK) as time zone !

8) Click reboot

On Linux based XEN copy /platform dir to get Kernel/Ramdisk

xVM or XEN will destroy install VM

9) Boot just installed OpenSolaris 200805 VM

This will automaticaly use PyGRUB, on Linux based XEN use kernel/ramdisk from /platform dir

cat os200805.py
name = "os200805"
vcpus = 1
memory = "1700"
disk = ['file:/stuff/os200805/osoljeos.img,0,w']
vif = ['mac=00:16:3E:3f:fb:0f']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "preserve"

xm create -c os200805.py

11) Disable X login (if don't want it)

login as osol/osol0508

svcs -a | grep gdm
online         13:14:35 svc:/application/graphical-login/gdm:default

su - root
opensolaris

svcadm disable svc:/application/graphical-login/gdm:default

12a) Backup OSOL domU comfig

virsh dumpxml osol0508 >/stuff/osol0508/osol0508-boot.xml

12b) Halt system with init 0 and backup root file

Issue: Under PARA mode system time after boot start from1.1.1970, use ntpdate to fix it.

6574993 zfs_mountroot() may need to call clkset() to set the boot_time kstat
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Hands-on experience with Virtualization

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today