Introducing Zone @OpenSolaris
⊆ 19.49 by DArkStar | ˜ 0 komentar »Bismillah
Zone buat apaan ya? Ga ngerti juga fungsinya yang jelas buat apaan.. Yang jelas aq bikin VPS pake zone di OpenSolaris. Aq buat 3 server, masing2 http server, ftp server sama ssh server... Lho buat apaan? Rencananya mau bikin TA .. He..he.. Lanjut -->
So, this is amazingnya zone,(sory for my wife for my bad english(Perasaan belum punya istri deh)), jadi kamu bisa bikin zone yang bener2 terpisah dari induknya (mulai gak jelas). Jadi kita bisa matiin, reboot, boot si zone tanpa ngaruh ke proses lainnya... Dan semua proses yang kita lakuin di zone juga ga ngaruh baik ke zone yang lain maupun ke induknya(global zone).
Nih cara kalo misal mau bikin zone yg namanya diset zone1
Persiapan
#mkdir /export/home/zone1 (ni folder buat nanti install zone)
#chmod 700 /export/home/zone1 (foldernya cuman bisa dibaca dan di write sama yg punya)
#dladm create-vnic -l nge0 vnic1 (Nih buat virtual NIC di zone yang mau kita buat)
Mulai deh buat zone
# zonecfg -z zone1
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/export/home/zone1
zonecfg:zone1> set autoboot=true
zonecfg:zone1> set ip-type=exclusive
zonecfg:zone1> add net
zonecfg:zone1:net> set physical=vnic1
zonecfg:zone1:net> end
zonecfg:zone1> verify
zonecfg:zone1> info
zonename: zone1
zonepath: /export/home/zone1
brand: native
autoboot: true . . net:
address not specified physical: vnic1
zonecfg:zone1> commit
zonecfg:zone1> exit
Verify konfigurasi yang dah kita buat barusan.
global# zoneadm -z zone1 verify
WARNING: /export/home/zone1 does not exist, so it could not be verified. When ’zoneadm install’ is run, ’install’ will try to create /export/home/zone1, and ’verify’ will be tried again, but the ’verify’ may fail if: the parent directory of /export/home/zone1 is group- or other-writable or /export/home/zone1 overlaps with any other installed zones.
Buat Install zone
global# zoneadm -z zone1 install
Preparing to install zone
Dah selese deh installnya
Cara booting zone1
global# zoneadm -z zone1 boot
Buat login
global# zlogin -C zone1
What type of terminal are you using?
.
SystemAdministrationGuide:NetworkInterfacesandNetworkVirtualization • March2009
Next Steps
. . 8) Sun Workstation 9) Televideo 910 10) Televideo 925 11) Wyse Model 50 12) X Terminal Emulator (xterms) 13) CDE Terminal Emulator (dtterm) 14) Other Type the number of your choice and press Return: 13 . (More prompts) . .
Provide the information as prompted. For network information, supply the following:
Hostname: zone1
IP address: 192.168.3.20
System part of a subnet: Yes Netmask: 255.255.255.0
Enable IPv6: No
Default route: 192.168.3.70
Router IP address: 192.168.3.25
Selamat mencoba
Regards
ttd
mouchu