LDom Setup Tasks with JET

These are the steps I use to create LDoms with on the T-series servers (T52*0, T1000 and T2000).

Control Domain Install

Install the Control Domain with Solaris 10, and add the LDom package available for download here. Note: The download requires a login. After the LDom software is installed, add /opt/SUNWldm/bin to the path.

pkgadd -d LDoms_Manager-1_0_3

set path ($path /opt/SUNWldm/bin) #if using CSH

export PATH=$PATH:/opt/SUNWldm/bin #if using sh, ksh or bash

Pre-installation Tasks

Create the LDom file stores

Make directories where the LDom file stores will be kept (preferably on a SAN or external device). I usually put them in /export and create softlinks to /.

mkdir -p /export/LDoms/ldom1
ln -s /export/LDoms/ldom1 /ldom1

Make the LDom file stores to be used as virtual disks.

mkfile 40g /ldoms/ldom1-boot

Create the Control Domain

LDom Setup- primary (Control Domain)

svcadm is used to enable or disable services in Solaris 10.

svcadm enable ldmd

Add the disk service. This service is utilized by the LDoms for virtualized IO.

ldm add-vds primary-vds0 primary

Add virtual console ports for use with LDoms

ldm add-vcc port-range=5000-5100 primary-vcc0 primary

Add virtual network switch for virtual networking. Replace <device> with the network device used for the ldoms.

ldm add-vsw net-dev=<device> primary-vsw0 primary

Set the Control Domain to use 4 CPUs.

ldm set-vcpu 4 primary

Set the memory to 4 gig for the Control Domain.

ldm set-memory 4g primary

Add the new configuration to the Control Domain.

ldm add-spconfig initial

Power off the Control Domain to enable the initial spconfig

init 5

From the console, power on the system.

start /SYS

Ensure the initial spconfig is active. Log into the Control Domain, and run this command:

/opt/SUNWldm/bin/ldm list-spconfig

factory-default
initial [current]

Create the LDoms

LDom Setup- ldom1

The following steps are used to create an LDom. I use ldom1 as the LDom name.

ldm add-domain ldom1

Add 2 virtual CPUs.

ldm add-vcpu 2 ldom1

Add 4g of RAM.

ldm add-memory 4g ldom1

Add /ldoms/ldom1-boot to the primary Disk Service.

ldm add-vdsdev /ldoms/ldom1-boot vol1@primary-vds0

Add a virtual disk to the LDom.

ldm add-vdisk vdisk1 vol1@primary-vds0 ldom1

Set the boot-device to boot off the primary virtual disk.

ldm set-variable boot-device=vdisk1 ldom1

Add virtual network device.

ldm add-vnet vnet1 primary-vsw0 ldom1

Bind the resources to the LDom.

ldm bind ldom1

Start the LDom

ldm start ldom1

Install LDoms via JET

On the JET server, create the LDom templates, and edit as needed.

/opt/SUNWjet/bin/make_template ldom1

Create the client configurations for JET installations.

/opt/SUNWjet/bin/make_client ldom1

Install LDoms using the Control Domain

Start the virtual console service, and unplumb the primary interface. Important: You must have console access to the control domain before unconfiguring the primary network interface. If you use the control domain, the primary interface should be unplumbed. Otherwise, the JET install will fail because of the virtual switch.

svcadm enable vntsd

Telnet onto the console of ldom1 LDom.

telnet . 5000

At the ok> prompt, use this command to install via JET.

ok> boot vnet1 - install

The installation will take about 20 minutes to complete.



This document was generated using AFT v5.096