This section provides instructions for several different ways you can install the Solaris OS on a guest domain.
Insert the Solaris 10 OS DVD into the DVD drive.
Stop the volume management daemon, vold(1M) on the primary domain.
primary# svcadm disable volfs |
Stop and unbind the guest domain (ldg1). Then add the DVD with DVDROM media as a secondary volume (dvd_vol@primary-vds0) and virtual disk (vdisk_cd_media), for example.
c0t0d0s2 is where the Solaris OS media resides
primary# ldm stop ldg1 primary# ldm unbind ldg1 primary# ldm add-vdsdev /dev/dsk/c0t0d0s2 dvd_vol@primary-vds0 primary# ldm add-vdisk vdisk_cd_media dvd_vol@primary-vds0 ldg1 |
Check to see that the DVD 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 4 4G 0.2% 22h 45m ... VDS NAME VOLUME OPTIONS DEVICE primary-vds0 vol1 /dev/dsk/c2t1d0s2 dvd_vol /dev/dsk/c0t0d0s2 .... ------------------------------------------------------------------------------ NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME ldg1 inactive ----- 60 6G ... DISK NAME VOLUME TOUT DEVICE SERVER vdisk1 vol1@primary-vds0 vdisk_cd_media dvd_vol@primary-vds0 .... |
Bind and start the guest domain (ldg1).
primary# ldm bind ldg1 primary# ldm start 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 .. |
Show the device aliases in the client OpenBootTM PROM.
In this example, see the device aliases for vdisk_cd_media, which is the Solaris DVD, and vdisk1, which is a virtual disk on which you can install the Solaris OS.
ok devalias vdisk_cd_media /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 |
On the guest domain's console, boot from vdisk_cd_media (disk@1) on slice f.
ok boot vdisk_cd_media:f -v 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 1983-2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. |
Continue with the Solaris OS installation menu.
Unbind the guest domain.
The following shows ldg1 as the guest domain:
primary# ldm unbind ldg1 |
Add the Solaris ISO file as a secondary volume and virtual disk.
The following uses solarisdvd.iso as the 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-vdisk vdisk vdisk_iso iso_vol@primary-vds0 ldg1 |
Check to see that the 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 4 4G 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 DEVICE SERVER vdisk1 vol1@primary-vds0 vdisk_iso iso_vol@primary-vds0 .... |
Bind and start the guest domain (ldg1).
primary# ldm bind ldg1 primary# ldm start 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 .. |
Show the device aliases in the client OpenBoot PROM.
In this example, see the device aliases for vdisk_iso, which is the 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 |
On the guest domain's console, boot from vdisk_iso (disk@1) on slice f.
ok boot vdisk_iso:f -v 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 1983-2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. |
Continue with the Solaris OS installation menu.
To jump-start a guest domain, use a normal JumpStart procedure with the following profile syntax changes from a regular Solaris OS JumpStart procedure to a JumpStart procedure specific to Logical Domains as shown in the following two examples.
Normal JumpStart Profile
filesys c1t1d0s0 free / filesys c1t1d0s1 2048 swap filesys c1t1d0s5 120 /spare1 filesys c1t1d0s6 120 /spare2 |
Virtual disk device names in a logical domain differ from physical disk device names in that they do not contain a target ID (tN) in the device name. Instead of the normal cNtNdNsN format, virtual disk device names are of the format cNdNsN, where cN is the virtual controller, dN is the virtual disk number, and sN is the slice. Modify your JumpStart profile to reflect this change as in the following profile example.
Actual Profile Used for a Logical Domain
filesys c0d0s0 free / filesys c0d0s1 2048 swap filesys c0d0s5 120 /spare1 filesys c0d0s6 120 /spare2 |
You must use the MAC address of the virtual network (vnet) device as reported by the ldm(1M) command for your jumpstart configuration and not the one reported in the banner for the guest.