You must be logged in to do that (write wiki)
Last updated January 22, 2009 08:35, by Eric Lalonde
Feedicon  

<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Building a twiki with the Live* Style Sheet</title> <style type="text/css"> <!-- @import url(http://research.sun.com/projects/live/live.css); --> </style> </head> <body> <a class="linkindex" href="http://sunlabs.sfbay.sun.com/twiki/bin/view/Projects/Live*"> Back to the Live* twiki</a> <div STYLE='font-family: helvetica; font-size: large; font-weight: bold; background: black; color: white; text-align: center; '>&nbsp;Sun&nbsp;Proprietary/Confidential:&nbsp;Internal&nbsp;Use&nbsp;Only&nbsp;</div> <p class ="title"> Hypervisor To Go </p> HOWTOs <p class ="title"> Live USB </p> <p class="text"> Hypervisor to go is built off of an OpenSolaris Distribution that has been modified to boot from USB with ZFS. There are a few ways to make this modification: <p class="sectionheader"> Ground Up </p> <p class="text"> The ground up method refers to a distribution construction by hand, performed by creating a custom microroot image, corresponding menu.lst, and custom /sbin/init. The way to do this is described at <span class="infodarkblue">osholes.blogspot.com</span> : http://osholes.blogspot.com/2008/07/summary-of-method.html </p> <p class="sectionheader"> Automated </p> <p class="text"> This method involves running a single program to convert an existing OpenSolaris Install to out customized install. It is quite simple: </p> <p class="infodarkblue"> You will need: OpenSolaris Indiana LiveCD and a USB drive greater 4gb in size </p> <p class="infobox">1. Boot from LiveCD and install OpenSolaris on USB 2. When prompted to reboot, reboot and boot from the USB drive 3. After Logging into the system, reboot and choose the LiveCD as boot device once more. 4. In the LiveCD environment: a. Get the conversion kit, from tuvalu.sfbay.sun.com/convert.zip [internal only]. Extract it to /jack (or whereever you please) b. cd to the directory "convert" in /jack, and open the file zfsconverter with your favorite text editor c. Find the line containing <span class="infodarkblue"> protodir= </span> d. ensure that that is a subdirectory of the directory to which you extracted the zip. change it as necessary. e. execute the command zpool import -f [whatever the poolname is] ; by default the pool name is rpool f. In a terminal window, execute zfsconverter as a superuser 5. When its done, reboot and choose OpenSolaris Portable from the GRUB menu </p> <p class="text">NOTE That modifications to the standard configuration can be made by populating protodir by hand, as is necessary for hypervisor installation. </p> <p class="sectionheader"> Hypervisors </p> <p class="text"> The preceeding steps only make the necessary modifications to make the USB install of OpenSolaris portable. In order to complete the Hypervisor to go package, a Hypervisor must be installed. First, install your hypervisor as it would normally be installed. This means package manager(IPS) for Xen, and the Packages for VirtualBox. Then, add the newly installed kernel components to the microroot by executing updatemicroroot as a superuser, provided in the conversion kit under convert/updatemicroroot. This procedure should be followed anytime an application installs new kernel modules onto the system, to ensure consistency</p> <p class="sectionheader"> Briefly: How it works </p> <p class="text"> For a detailed description of how this works, see osholes.blogspot.com for the slides from "Hypervisor To Go", as well as the Summary of method (http://osholes.blogspot.com/2008/07/summary-of-method.html). Basically, the first procedure above injects a ramdisk image into /boot, which OpenSolaris will mount as the root filesystem, as it does in the LiveCD. Then, when /sbin/init is called, the real root(ZFS volume) is mounted via zpool import, and virtual filesystems are reestablished there. Finally, we chroot to the real root and start the SMF as it normally is started. The Hypervisor To Go installation procedure above injects xVM or Virtualbox's kernel modules and configuration files into the ramdisk image to make sure they are started on boot as the should be. </p> <div STYLE='font-family: helvetica; font-size: large; font-weight: bold; background: black; color: white; text-align: center; '>&nbsp;Sun&nbsp;Proprietary/Confidential:&nbsp;Internal&nbsp;Use&nbsp;Only&nbsp;</div> </body> </html> <nowiki>

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close