Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Steps to create a LDOM on ZFS Filesystem.

Step1: Configure Primary domain

# ldm add-vds primary-vds0 primary


# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
# ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
# ldm set-mau 1 primary
# ldm set-vcpu 4 primary
# ldm set-memory 1g primary
# ldm add-config initial
# ldm list-config
# svcadm enable vntsd
# svcadm enable ldmd
# reboot

Step2: Create and Configuring zpool and zfs

# zpool create ldoms c1t1d0s0


# Create a filesystem by name guest.
# zfs create ldoms/guest
# Either mkfile or zfs create.
# mkfile 30g /ldoms/guest/diskfile
or
# zfs create -V 30g ldoms/guest/diskfile

Install OS in this 30 GB file using either jumpstart or using OS


cd.

Take snapshot of this disk file


# zfs snapshot ldoms/guest@initial

Now clone the snapshot for a new ldom guest


# zfs clone ldoms/guest@inital ldoms/guest/LDOM1

Step3: Create LDOM


Let us create a guest by name ldom1

# ldm add-domain ldom1


# ldm add-vcpu 4 ldom1
# ldm add-memory 1g ldom1
# ldm add-vnet vnet1 primary-vsw0 ldom1

# ldm add-vdsdev /ldoms/guest/LDOM1/diskfile vol1@primary-vds0

# ldm add-vdisk vdisk1 vol1@primary-vds0 ldom1

# ldm set-var auto-boot\?=true ldom1


# ldm set-var boot-device=vdisk ldom1
# ldm bind-domain ldom1
# ldm list-domain ldom1
# ldm start-domain ldom1
Step 4: Connecting to LDOM console

# ldm list
# telnet localhost <consoleport>

You might also like