09-02-2009
123,
2
Join Date: Mar 2009
Last Activity: 8 April 2016, 5:42 AM EDT
Posts: 123
Thanks Given: 0
Thanked 2 Times in 2 Posts
Hi,
Firstly, your question isnt too clear here, so not 100% sure what your asking, so will take a guess.
Zones - You have two types of Network configurations, shared / exclusive. During the configuration of shared NIC, you will defined card / ip / netmask via zonecfg, so once the zone is up, the card / network nic will be up and running. Exclusive is different and all you do is define the NIC that will be `exclusively` used within the zone. Once up, you will then need to configure the card like any other normal environment, i.e. /etc/hosts, /etc/hostname.nxge1, /etc/defaultrouter etc etc etc. Then this will be automatic on every reboot on the zone.
Exclusive IP
dladm to see what devices are there
zonecfg:myzone> set ip-type=exclusive
zonecfg:myzone> add net
zonecfg:myzone:net> set physical=e1000g1
zonecfg:myzone:net> end
Shared IP
add net
set address=XX.30.188.XX/24
set physical=nxge4
end
Next point, copying of the /etz/zones/index file. Ok, yes Ive done this, but you are not really meant to do this due to the uid given to the zone. ALso, its the zonename.xml which is also important. Ive copied zones, mainly for DR purposes. I tend to build / define a zone, get it up and running and in a state that its working / configured. I then shut it down, detach it, dump the configuration to a file, and copy over the file / dump of the environment to the target DR server. I then copy the dump into the desired location, create the new zone usin g the zonecfg dump configuration file, but renaming it accordingly, then attach the zone.
The attach part gets over the zoneadm -z xxxxx install part, where the new zone is built. By attaching it, it tells the zoneadm that there's already an environment there, to attach to.
Here, command wise, is what I would do.
1) Backup zone you want to copy, detach zone first
global# zoneadm -z zfszone1 detach / remember to attach afterwards
]2) create copy
global# tar / cpio the directory of the source zone to target location
The source zone is just a directory with all the files in, so just get it copied over to the new location, whether on the same host under a new name, or a dfifferent hot
3) attach zone / create new zone
zonecfg -z zfszone2
zonecfg:zfszone2> create -a /zone_roots/zfszone2
zonecfg:zfszone2> exit
4) attach and boot zone
global# zoneadm -z zfszone2 attach
If on a different host, then the attach part will check versions / patches etc. You will need to alter the ip / hostname as it’s a copy
Hope the above helps.