Tuesday, April 15, 2014

Solaris: Simple Zone Creation

very basic zone setup - i'll probably tweak the zonecfg values later



 exc06-sp-a:/ # zfs list

 exc06-sp-a:/ # zfs create data/zones/z-webdav

 exc06-sp-a:/ # zfs get all data/zones/z-webdav

 exc06-sp-a:/ # zfs set mountpoint=/zones/z-webdav data/zones/z-webdav





 exc06-sp-a:/zones # cat z-webdav.conf
 create -b

 set zonepath=/zones/z-webdav

 set autoboot=true

 set ip-type=shared

 add fs
    set dir=/cdrom
    set special=/cdrom
    set type=lofs
    add options ro
    add options nodevices
 end

 add net
    set address=167.123.1.240
    set physical=e1000g1
 end

 add attr
    set name=comment
    set type=string
    set value="Primary WebDAV Zone"
 end

 add rctl
    set name=zone.max-swap
    add value (priv=privileged,limit=8589934592,action=deny)
 end

 add dedicated-cpu
    set ncpus=4
 end





 exc06-sp-a:/zones # zonecfg -z z-webdav -f z-webdav.conf


 exc06-sp-a:/zones # chmod 700 z-webdav


 exc06-sp-a:/zones # zoneadm -z z-webdav install


 exc06-sp-a:/zones # zoneadm -z z-webdav boot


 exc06-sp-a:/zones # zlogin -C z-webdav



Select a Locale

  0. English (C - 7-bit ASCII)
  1. Australia (ISO8859-1)
  2. English, Australia (UTF-8)
  3. English, New Zealand (UTF-8)
  4. New Zealand (ISO8859-1)
  5. Go Back to Previous Screen

Please make a choice (0 - 5), or press h or ? for help: 1



What type of terminal are you using?
 1) ANSI Standard CRT
 2) DEC VT52
 3) DEC VT100
 ......
Type the number of your choice and press Return: 3





 Host name z-webdav.detir.qld.gov.au




 Time Zone [X] Australia
           [X] Queensland - most locations

No comments:

Post a Comment