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 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
The following uses solarisdvd.iso as the Oracle Solaris ISO file, which is stored on the
server1 server. iso_vol@primary-vds0 is a secondary volume, and vdisk_iso is a virtual disk.
The lofiadm command attaches a block device to the ISO image.
primary# lofiadm -a /net/server1/solarisdvd.iso
primary# ldm add-vdsdev /dev/lofi/1 iso_vol@primary-vds0
primary# ldm add-vdisk vdisk_iso iso_vol@primary-vds0 ldg1
3. Check to see 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 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 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 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. Showthe device aliases in the clientOpenBoot 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 fromvdisk_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 menu.
Monday, July 13, 2020
Home
»
Guest Domain
,
Oracle VM Server
,
Solaris
»
Howto Install the Oracle Solaris OS on aGuest Domain Froman Oracle Solaris ISO File
0 comments :
Post a Comment
Note: Only a member of this blog may post a comment.