Created
February 6, 2014 15:12
-
-
Save 0xffea/8846037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable NWAM | |
svcadm disable network/physical:nwam | |
svcadm enable network/physical:default | |
# DHCP in global zone | |
ipadm create-if e1000g0 | |
ipadm create-addr -T dhcp e1000g0/v4dhcp | |
# Create zones ZFS datasets | |
zfs create -o compression=on -o mountpoint=/zones rpool/zones | |
zfs create -o atime=off rpool/zones/django | |
# Zone 1 | |
zonecfg -z django | |
create | |
set zonepath=/zones/djang | |
set bootargs="-m verbose" | |
set autoboot=true | |
add net | |
set address=192.168.1.1/24 | |
set physical=e1000g0 | |
end | |
verify | |
commit | |
exit | |
zoneadm -z django install | |
zoneadm -z django boot | |
zlogin -C django |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment