Soyuz Build
From Laen
Contents |
OS
Operating system is OpenSolaris 2008.05.
Disk Layout
All disks fdisk partitioned into two pieces:
- Parition 1 - 93GB
- Partition 2 - 824GB.
zpool create -f narf \ raidz c5t0d0p2 c5t1d0p2 c5t2d0p2 c5t3d0p2 c5t4d0p2 c5t5d0p2 \ raidz c5t2d0p1 c5t3d0p1 c5t4d0p1 c5t5d0p1
This gives us 4.3TB of usable space. Performance seems decent. Approximately 200MB/s to and from disk.
pkgs
I've added in the sunfreeware and blastwave repositories:
# pkg set-authority -O http://pkg.sunfreeware.com:9000 sunfreeware # pkg set-authority -O http://blastwave.network.com:10000 blastwave # pkg authority -H blastwave http://blastwave.network.com:10000/ sunfreeware http://pkg.sunfreeware.com:9000/ opensolaris.org (preferred) http://pkg.opensolaris.org:80/
xVM
dom0 is our OpenSolaris 2008.05 system.
I installed it using the instructions at Getting xVM to work in OpenSolaris 2008.05:
Install the xVM Packages:
# pkg install SUNWxvmhvm SUNWvirtinst SUNWlibvirt SUNWurlgrabber
Copy the real menu.lst into /boot/grub so bootadm will find it.
# cp /rpool/boot/grub/menu.lst /boot/grub
Have bootadm set up menu.lst to include the Xen stuff, then copy it into the correct location.
# bootadm -m upgrade ; mv /boot/grub/menu.lst /rpool/boot/grub/menu.lst
Link the menu.lsts together so we don't have to worry about it anymore.
# ln -s /rpool/boot/grub/menu.lst /boot/grub/menu.lst
Edit the menu.lst, setting our default boot option to "1" (xVM), and fixing the xVM entry so it'll actually work:
title Solaris xVM bootfs rpool/ROOT/opensolaris kernel$ /boot/$ISADIR/xen.gz module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS module$ /platform/i86pc/$ISADIR/boot_archive
(We have to add the bootfs line, and the "-B $ZFS-BOOTFS" to the module there..)
Now "init 6" to boot into an xvm enabled kernel, then enable all the Xen thingies:
svcadm enable store svcadm enable xend svcadm enable console svcadm enable domains
Run "xm list" to see if you're good.
Download a pre-built linux-xen kernel from xen.org 3.1 tarballs
Untar it and stick vmlinuz-xen in /boot/
Download an os image from [jailtime.org Jailtime].
