Created
June 24, 2013 06:41
-
-
Save jtimberman/5848129 to your computer and use it in GitHub Desktop.
Supporting Gist for my blog post.
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
create -b | |
set zonepath=/zones/base | |
set ip-type=exclusive | |
set autoboot=false | |
add net | |
set physical=vnicbase0 | |
end | |
commit |
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
_ifname=vnicbase0;_family=2; | |
_ifname=vnicbase0;_family=26; | |
_ifname=vnicbase0;_aobjname=vnicbase0/v4;_dhcp=-1,no; |
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
zone=clonebase | |
zoneadm -z $zone halt | |
zoneadm -z $zone uninstall -F | |
zonecfg -z $zone delete -F |
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
zoneadm -z base halt | |
dladm create-vnic -l nge1 clonebase | |
zonecfg -z base export | sed 's/base/clonebase/g' | tee clonebase.conf | |
zonecfg -z clonebase -f clonebase.conf | |
zoneadm -z clonebase clone base | |
cp /etc/nsswitch.dns /etc/resolv.conf /zones/clonebase/root/etc | |
sed 's/base/clonebase/g' base.ipadm.conf > clonebase.ipadm.conf | |
zoneadm -z clonebase boot | |
zlogin -e ! clonebase |
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
zpool create zones c3t1d0 | |
dladm create-vnic -l nge1 vnicbase0 | |
zonecfg -z base -f base.conf | |
zoneadm -z base install | |
cp /etc/nsswitch.dns /etc/resolv.conf /zones/base/root/etc | |
cp base.ipadm.conf /zones/base/root/etc/ipadm/ipadm.conf | |
zoneadm -z base boot | |
zlogin -e ! base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment