open_solaris_xen_dom_u
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| open_solaris_xen_dom_u [2007/08/07 18:51] – mediawiki_default | open_solaris_xen_dom_u [2026/09/27 03:33] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | This page describes the installation of the July 2007 update of OpenSolaris on a [[xen]] domU running under a Linux dom0. It has all been written based on my experiences with Debian GNU/Linux 4.0 as the dom0 so some details might not match your system and others might just be wrong. | ||
| - | |||
| - | |||
| - | ====== Getting the Installation Media ====== | ||
| - | |||
| - | |||
| - | The installer is available as DVD image from Sun's Download Centre [[http:// | ||
| - | |||
| - | I downloaded each file, verified them using the supplied md5sums, and then ran the following from bash to unzip and recombine them: | ||
| - | mkdir / | ||
| - | for foo in `ls 66-0624-nd-iso-[a-f].zip`; | ||
| - | unzip -p $foo; | ||
| - | done >/ | ||
| - | |||
| - | |||
| - | ====== Extracting the Kernel and Initial ramdisk ====== | ||
| - | |||
| - | |||
| - | To boot OpenSolaris under [[xen]] you need both a kernel and initial ramdisk available on your dom0. The [[http:// | ||
| - | mkdir /mnt/tmp | ||
| - | mount -o loop,ro 66-0624-nd.iso /mnt/tmp | ||
| - | cp / | ||
| - | cp / | ||
| - | umount /mnt/tmp | ||
| - | |||
| - | |||
| - | ====== Configuring Xen for the Installation ====== | ||
| - | |||
| - | |||
| - | Before you can boot OpenSolaris to begin the installation you will need to create a [[xen]] configuration file defining the virtual disk, virtual DVD drive, kernel, ramdisk, memory size and kernel parameters. | ||
| - | |||
| - | < | ||
| - | memory = ' | ||
| - | disk = [ ' | ||
| - | vif = [ '' | ||
| - | on_shutdown = ' | ||
| - | on_reboot = ' | ||
| - | on_crash = ' | ||
| - | kernel = '/ | ||
| - | ramdisk = '/ | ||
| - | extra = '/ | ||
| - | |||
| - | This creates a domU called argolin with 1024MB of RAM, a virtual DVD drive from the image in '/ | ||
| - | |||
| - | |||
| - | ====== SMP-related IO Hang (part 1) ====== | ||
| - | |||
| - | |||
| - | My first tries at booting OpenSolaris as a domU resulted in the installer hanging at some point during the main package installation process. | ||
| - | extra = '/ | ||
| - | |||
| - | |||
| - | ====== Booting the Installer ====== | ||
| - | |||
| - | |||
| - | Once you have the DVD image, have extracted the kernel and ramdisk, and have created the [[xen]] configuration file you can boot the installer like so: | ||
| - | xm create -c argolin.conf | ||
| - | The last argument to the command is the name of the configuration file created above. | ||
| - | |||
| - | You should then see: | ||
| - | Using config file "/ | ||
| - | Started domain argolin | ||
| - | SunOS Release 5.11 Version xen-nv66-2007-06-24 32-bit | ||
| - | Copyright 1983-2007 Sun Microsystems, | ||
| - | Use is subject to license terms. | ||
| - | WARNING: Found xen v3.0.3-1 but need xen v3.0.4-1-sun | ||
| - | WARNING: The kernel may not function correctly | ||
| - | Configuring /dev | ||
| - | Solaris Interactive Text (Console session) | ||
| - | Using install cd in / | ||
| - | ... | ||
| - | ... | ||
| - | |||
| - | The warnings about the Xen version mismatch may be ignored as these apparently only apply to 64bit systems (thanks again # | ||
| - | |||
| - | |||
| - | ====== SMP-related IO Hang (part 2) ====== | ||
| - | |||
| - | |||
| - | Following a boot with the ' | ||
| - | Using config file "/ | ||
| - | Started domain argolin | ||
| - | Loading kmdb... | ||
| - | | ||
| - | Welcome to kmdb | ||
| - | Loaded modules: [ unix krtld genunix ] | ||
| - | [0]> | ||
| - | You type: | ||
| - | workaround_6557577? | ||
| - | It shows: | ||
| - | workaround_6557577: | ||
| - | [0]> | ||
| - | You type: | ||
| - | :c | ||
| - | It shows: | ||
| - | SunOS Release 5.11 Version xen-nv66-2007-06-24 32-bit | ||
| - | Copyright 1983-2007 Sun Microsystems, | ||
| - | Use is subject to license terms. | ||
| - | WARNING: Found xen v3.0.3-1 but need xen v3.0.4-1-sun | ||
| - | WARNING: The kernel may not function correctly | ||
| - | Configuring /dev | ||
| - | ... | ||
| - | ... | ||
| - | |||
| - | |||
| - | ====== The Installation ====== | ||
| - | |||
| - | |||
| - | Once OpenSolaris has booted the installer will ask you for details of your location and terminal. | ||
| - | |||
| - | < | ||
| - | 10.0.0.1:/ | ||
| - | |||
| - | |||
| - | ====== SMP-related IO Hang (part 3) ====== | ||
| - | |||
| - | |||
| - | You'll be glad to hear that this is the last section dealing with the SMP-related IO hang. To avoid having to use kmdb to enable the workaround during each boot, I added the following line to '/ | ||
| - | set workaround_6557577 = 1 | ||
| - | |||
| - | |||
| - | ====== TCP/UDP Checksum Problem ====== | ||
| - | |||
| - | |||
| - | I also had a problem with the OpenSolaris kernel not generating checksums for TCP and UDP packets. | ||
| - | set xnf: | ||
| - | |||
| - | |||
| - | ====== Rebooting into the Installed System ====== | ||
| - | |||
| - | |||
| - | I didn't really know how to shut down the system so I did: | ||
| - | umount /a | ||
| - | shutdown -g0 -i0 | ||
| - | |||
| - | Once back at your dom0's prompt you need to edit the domU's configuration file to look something like this: | ||
| - | name = ' | ||
| - | memory = ' | ||
| - | disk = [ ' | ||
| - | vif = [ '' | ||
| - | on_shutdown = ' | ||
| - | on_reboot = ' | ||
| - | on_crash = ' | ||
| - | kernel = '/ | ||
| - | ramdisk = '/ | ||
| - | extra = '/ | ||
| - | root = '/ | ||
| - | |||
| - | Then fire up the domU again and you're away: | ||
| - | xm create -c argolin.conf | ||
| - | |||
| - | < | ||
| - | Started domain argolin | ||
| - | SunOS Release 5.11 Version xen-nv66-2007-06-24 32-bit | ||
| - | Copyright 1983-2007 Sun Microsystems, | ||
| - | Use is subject to license terms. | ||
| - | WARNING: Found xen v3.0.3-1 but need xen v3.0.4-1-sun | ||
| - | WARNING: The kernel may not function correctly | ||
| - | ip: joining multicasts failed (4) on xnf0 - will use link layer broadcasts for multicast | ||
| - | Hostname: argolin.xen.tardis.ed.ac.uk | ||
| - | |||
| - | argolin.xen.tardis.ed.ac.uk console login:</ | ||
| - | |||
| - | One final note: I was unable to login to the system as root via ssh by default. | ||
| - | |||
| - | |||
open_solaris_xen_dom_u.1186512719.txt.gz · Last modified: (external edit)
