Go to main content

Oracle® VM Server for SPARC 3.5 Administration Guide

Exit Print View

Updated: November 2017
 
 

How to Install the Oracle Solaris OS on a Guest Domain From an Oracle Solaris ISO File

  1. Stop and unbind the guest domain (ldg1).
    primary# ldm stop ldg1
    primary# ldm unbind ldg1
  2. Add the Oracle Solaris ISO file as a secondary volume and virtual disk.

    The following example uses solarisdvd.iso as the Oracle Solaris ISO file, iso_vol@primary-vds0 as a secondary volume, and vdisk_iso as a virtual disk:

    primary# ldm add-vdsdev /export/solarisdvd.iso  iso_vol@primary-vds0
    primary# ldm add-vdisk vdisk_iso iso_vol@primary-vds0 ldg1
  3. Verify that the Oracle Solaris ISO file is added as a secondary volume and virtual disk.
    primary# ldm list-bindings
    NAME             STATE    FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME 
    primary          active   -n-cv   SP      8     8G       0.2%  22h 45m
    ...
    VDS 
       NAME             VOLUME         OPTIONS          DEVICE
       primary-vds0     vol1                            /dev/dsk/c2t1d0s2
       iso_vol                                          /export/solarisdvd.iso
    ....
    ------------------------------------------------------------------------------
    NAME             STATE    FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
    ldg1             inactive -----           60    6G
    ...
    DISK
       NAME       VOLUME               TOUT ID DEVICE  SERVER  MPGROUP
       vdisk1     vol1@primary-vds0
       vdisk_iso  iso_vol@primary-vds0
    ....
  4. Bind and start the guest domain (ldg1).
    primary# ldm bind ldg1
    primary# ldm start-domain ldg1
    LDom ldg1 started
    primary# telnet localhost 5000
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
     
    Connecting to console "ldg1" in group "ldg1" ....
    Press ~? for control options ..
  5. Show the device aliases in the client OpenBoot PROM.

    In this example, see the device aliases for vdisk_iso, which is the Oracle Solaris ISO image, and vdisk_install, which is the disk space.

    ok devalias
    vdisk_iso       /virtual-devices@100/channel-devices@200/disk@1
    vdisk1          /virtual-devices@100/channel-devices@200/disk@0
    vnet1           /virtual-devices@100/channel-devices@200/network@0
    virtual-console /virtual-devices/console@1
    name            aliases
  6. On the guest domain's console, boot from vdisk_iso (disk@1) on slice f.
    ok boot vdisk_iso:f
    Boot device: /virtual-devices@100/channel-devices@200/disk@1:f  File and args: -s
    SunOS Release 5.10 Version Generic_139555-08 64-bit
    Copyright (c) 1983-2010, Oracle and/or its affiliates.  All rights reserved.
  7. Continue with the Oracle Solaris OS installation.