System Administration Guide: Virtualization Using the Solaris Operating System

Example: How to Install Open Solaris 2008.11 or Later in Paravirtualized Mode

Use this procedure to set up the OpenSolaris 2008.11 or later release as a paravirtual guest. You must be running a Solaris dom0 on your system.

  1. To start the installation of the OpenSolaris 2008.11 or later release, run the following commands:


    # zfs create rpool/zvol 
    # zfs create -V 10G rpool/zvol/domu-220-root 
    # virt-install --nographics --paravirt --ram 1024 --name domu-220 -f
     /dev/zvol/dsk/rpool/zvol/domu-220-root -l /isos/osol-2008.11.iso

    This procedure assumes that your server is set up to assign dynamic addresses. If you want to assign static addresses, specify the address with the mac property of the -w/--network option. See limiting bandwidth and setting a VLAN ID.

  2. Choose the defaults on the console for the two questions regarding the server setup.

  3. After the OpenSolaris 2008.11 Live CD or OpenSolaris 2009.06 release has finished booting, a VNC session is available from within the guest domain. You can connect to the guest domain's VNC session as follows:


    # domid=`virsh domid domu-220` 
    # ip=`/usr/lib/xen/bin/xenstore-read /local/domain/$domid/ipaddr/0` 
    # port=`/usr/lib/xen/bin/xenstore-read /local/domain/$domid/guest/vnc/port` 
    # /usr/lib/xen/bin/xenstore-read /local/domain/$domid/guest/vnc/passwd 
    DJP9tYDZ 
    # vncviewer $ip:$port
    
  4. Enter the given password at the VNC password prompt to bring up a VNC session.

    VNC sessions are not secure. However, because you need elevated privileges to read the VNC password from XenStore, the VNC sessions are secure as long as you run the VNC viewer locally on dom0, or via SSH tunnelling or another secure method.

  5. Enable the post-install VNC viewer.

    By default, the VNC session is not enabled after the installation. You can change the default configuration as follows:


    # svccfg -s x11-server setprop options/xvm_vnc = "true" 
    # svcadm restart xvm/vnc-config 
    # svcadm restart gdm