open_solaris_xen_dom_u
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| open_solaris_xen_dom_u [2013/10/12 20:03] – Text replace - "<div style="width:55%;margin:0 auto;border:2px solid;border-left:20px solid;border-color:#d9534f;text-align:center;padding:5px;font-weight:bold;">This page is out of date and needs rewriting.<br /> _hayden | open_solaris_xen_dom_u [2026/09/27 03:33] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{OODNotice}} | ||
| - | |||
| - | This page describes the installation of the [[http:// | ||
| - | |||
| - | |||
| - | ====== 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. | ||
| - | |||
| - | |||
| - | ====== 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: | ||
| - | |||
| - | |||
| - | ====== Finishing up and Rebooting into the Installed System ====== | ||
| - | |||
| - | |||
| - | Unfortunately we need to update the ramdisk after editing '/ | ||
| - | bootadm update-archive -R /a | ||
| - | |||
| - | As mentioned above, we need to make the OpenSolaris kernel and ramdisk available inside the dom0. It is not strictly necessary to transfer the kernel from the domU to the dom0 as it is identical to the installer' | ||
| - | / | ||
| - | 10.0.0.1:/ | ||
| - | |||
| - | I didn't really know how to shut down the system so I did: | ||
| - | umount /a | ||
| - | shutdown -y -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. | ||
| - | |||
| - | |||
