Create Solaris 11 LDOM
root@edus005:~# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
root@edus005:~# ldm add-vsw net-dev=net0 primary-vsw0 primary
root@edus005:~# ldm add-vds primary-vds0 primary
root@edus005:~# ldm add-vsw net-dev=net3 primary-vsw3 primary
root@edus005:~# ldm list-services primary
VCC
NAME LDOM PORT-RANGE
primary-console primary 5000-5100
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:fa:2d:de net0 0 switch@0 1 1 1500 on
primary-vsw3 primary 00:14:4f:fa:6a:64 net3 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
root@edus005:~# ldm add-domain sol11a
root@edus005:~# ldm add-vcpu 8 sol11a
root@edus005:~# ldm add-memory 8G sol11a
root@edus005:~# ldm add-vnet vnet1 primary-vsw3 sol11a
root@edus005:~# zfs create ldom/sol11a
root@edus005:~# zfs create -V 150g ldom/sol11a/disk0
root@edus005:~# ldm add-vdsdev /dev/zvol/dsk/ldom/sol11a/disk0 vol1@primary-vds0
root@edus005:~# ldm add-vdisk vdisk0 vol1@primary-vds0 sol11a
root@edus005:~# ldm set-var auto-boot?=true sol11a
root@edus005:~# ldm set-var boot-device=vdisk1 sol11a
root@edus005:~# ldm bind-domain sol11a
root@edus005:~# ldm list-domain sol11a
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
sol11a bound ------ 5000 8 8G
root@edus005:~# ldm start-domain sol11a
LDom sol11a started
Boot from ISO image
root@edus005:/export# ldm add-vdsdev /export/images/sol-11_1-text-sparc.iso dvd-iso@primary-vds0
root@edus005:/export# ldm stop-domain sol11a
Remote graceful shutdown or reboot capability is not available on sol11a
LDom sol11a stopped
root@edus005:/export# ldm add-vdisk s10-dvd dvd-iso@primary-vds0 sol11a
root@edus005:/export# ldm start-domain sol11a
LDom sol11a started
root@edus005:/export# telnet localhost 5000
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connecting to console "sol11a" in group "sol11a" ....
Press ~? for control options ..
{0} ok show-disks
a) /virtual-devices@100/channel-devices@200/disk@1
b) /virtual-devices@100/channel-devices@200/disk@0
c) /iscsi-hba/disk
q) NO SELECTION
Enter Selection, q to quit: q
{0} ok boot /virtual-devices@100/channel-devices@200/disk@1:f
Boot device: /virtual-devices@100/channel-devices@200/disk@1:f File and args:
SunOS Release 5.11 Version 11.1 64-bit
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Welcome to the Oracle Solaris installation menu
1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot
Please enter a number [1]: 3
To return to the main menu, exit the shell
root@solaris:/root# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c2d0 <SUN-DiskImage-150GB cyl 4264 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@0
Specify disk (enter its number): ^C
root@solaris:/root# format -L vtoc -d c2d0
Searching for disks...done
selecting c2d0
[disk formatted, no defect list found]
c2d0 is labeled with VTOC successfully.
root@solaris:/root# zpool create rpool c2d0
vdev verification failed: use -f to override the following errors:
/dev/dsk/c2d0s0 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c2d0s2 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
Unable to build pool from specified devices: device already in use
root@solaris:/root# zpool create -f rpool c2d0
root@solaris:/root# ipadm create-addr -T static -a xxx.xxx.xxx.xxx/24 net0/staticip
root@solaris:/root# gzcat /mnt/ZONE/s11-zfs.gz | zfs receive -Fv rpool
root@edus005:~# ldm add-vsw net-dev=net0 primary-vsw0 primary
root@edus005:~# ldm add-vds primary-vds0 primary
root@edus005:~# ldm add-vsw net-dev=net3 primary-vsw3 primary
root@edus005:~# ldm list-services primary
VCC
NAME LDOM PORT-RANGE
primary-console primary 5000-5100
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:fa:2d:de net0 0 switch@0 1 1 1500 on
primary-vsw3 primary 00:14:4f:fa:6a:64 net3 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
root@edus005:~# ldm add-domain sol11a
root@edus005:~# ldm add-vcpu 8 sol11a
root@edus005:~# ldm add-memory 8G sol11a
root@edus005:~# ldm add-vnet vnet1 primary-vsw3 sol11a
root@edus005:~# zfs create ldom/sol11a
root@edus005:~# zfs create -V 150g ldom/sol11a/disk0
root@edus005:~# ldm add-vdsdev /dev/zvol/dsk/ldom/sol11a/disk0 vol1@primary-vds0
root@edus005:~# ldm add-vdisk vdisk0 vol1@primary-vds0 sol11a
root@edus005:~# ldm set-var auto-boot?=true sol11a
root@edus005:~# ldm set-var boot-device=vdisk1 sol11a
root@edus005:~# ldm bind-domain sol11a
root@edus005:~# ldm list-domain sol11a
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
sol11a bound ------ 5000 8 8G
root@edus005:~# ldm start-domain sol11a
LDom sol11a started
Boot from ISO image
root@edus005:/export# ldm add-vdsdev /export/images/sol-11_1-text-sparc.iso dvd-iso@primary-vds0
root@edus005:/export# ldm stop-domain sol11a
Remote graceful shutdown or reboot capability is not available on sol11a
LDom sol11a stopped
root@edus005:/export# ldm add-vdisk s10-dvd dvd-iso@primary-vds0 sol11a
root@edus005:/export# ldm start-domain sol11a
LDom sol11a started
root@edus005:/export# telnet localhost 5000
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connecting to console "sol11a" in group "sol11a" ....
Press ~? for control options ..
{0} ok show-disks
a) /virtual-devices@100/channel-devices@200/disk@1
b) /virtual-devices@100/channel-devices@200/disk@0
c) /iscsi-hba/disk
q) NO SELECTION
Enter Selection, q to quit: q
{0} ok boot /virtual-devices@100/channel-devices@200/disk@1:f
Boot device: /virtual-devices@100/channel-devices@200/disk@1:f File and args:
SunOS Release 5.11 Version 11.1 64-bit
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Welcome to the Oracle Solaris installation menu
1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot
Please enter a number [1]: 3
To return to the main menu, exit the shell
root@solaris:/root# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c2d0 <SUN-DiskImage-150GB cyl 4264 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@0
Specify disk (enter its number): ^C
root@solaris:/root# format -L vtoc -d c2d0
Searching for disks...done
selecting c2d0
[disk formatted, no defect list found]
c2d0 is labeled with VTOC successfully.
root@solaris:/root# zpool create rpool c2d0
vdev verification failed: use -f to override the following errors:
/dev/dsk/c2d0s0 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c2d0s2 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
Unable to build pool from specified devices: device already in use
root@solaris:/root# zpool create -f rpool c2d0
root@solaris:/root# ipadm create-addr -T static -a xxx.xxx.xxx.xxx/24 net0/staticip
root@solaris:/root# gzcat /mnt/ZONE/s11-zfs.gz | zfs receive -Fv rpool
Comments