Solaris Zone Creation

Embed Size (px)

DESCRIPTION

solaris zone

Citation preview

Extra

to enable SSH root login to zone:

vi /etc/ssh/sshd_config PermitRootLogin = yes vi /etc/default/login CONSOLE =/dev/login|console rolemod -K type=normal root svcadm disable ssh svcadm enable ssh To delete a zone (NB There is no undo!) zoneadm -z zone1 halt zoneadm -z zone1 uninstall zonecfg -z zone1 delete If you want to remove the vnic as well do: dladm delete-vnic vnic1 To create the virtual NICs: Create 1 vnic for each zone you want to run: dladm create-vnic -l net0 vnic1 To see the VNIC you have just added: dladm show-vnic

Create Zone zonecfg -z zone1 create set zonepath=/export/zone/zone1 set ip-type=exclusive set autoboot=true add net set physical=vnic1 end verfiy commit exit Now, install the zone: zoneadm -z zone1 install Boot the zone: zoneadm -z zone1 boot To finish the process login to the zone: zlogin -C zone1