Powered By Blogger

Saturday, October 29, 2011

Mounting ISO to the solaris zones

# lofiadm -a /path/to/the/iso/file.iso
# mount -F hsfs -o ro /dev/lofi/1 /mnt
# mount -F lofs /mnt /zones//root/mnt

Steps to increase SWAP cap for solaris zones

# /bin/prctl -n zone.max-swap`pgrep -z init`
# prctl -n zone.max-swap-r -v 10GB `pgrep -z init`
# /bin/prctl -n zone.max-swap`pgrep -z init`
Welcome to the UNIX world