Just somewhere to keep my notes while I'm playing.

Monday, October 25, 2010

Creating a Solaris 10 Sparse Zone

 First, create a directory for your zone to be built in.

mkdir -p /zones/myzone

 Create a zone config file.
create -b
set zonepath=/zones/myzone
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add net
set address=10.0.2.17/24
set physical=hme0
end

 zonecfg -z myzone -f sparsezone.cfg
 zoneadm -z myzone install

 zoneadm list -v

zlogin -C myzone 
zlogin myzone shutdown -y -i0 -g0

No comments: