...
Code Block |
---|
|
$ sudo zonecfg -z apache_repo
create -t SUNWdpkg
set zonepath=/zones/apache_repo
set ip-type=exclusive
add fs
set dir="/export/home/admin"
set special="/export/home/admin"
set type="lofs"
end
add fs
set dir="/export/builds"
set special="/export/builds"
set type="lofs"
end
add fs
set dir="/data/repo"
set special="/data/repo"
set type="lofs"
end
add net
set physical="vnic2"
set global-nic="stub0"
add property (name=ip,value="192.168.0.2")
add property (name=netmask,value="255.255.255.0")
add property (name=gateway,value="192.168.0.254")
add property (name=primary,value="true")
end
add attr
set name="resolvers"
set type="string"
set value="192.168.0.254"
end
verify
commit
exit
$ sudo zoneadm -z apache_repo install
$ sudo zoneadm -z apache_repo boot |
check your zone and install apache2directories:
Code Block |
---|
|
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rpool/zones/apache_repo/ROOT/zbe-1 29057089 475941 28581148 2% /
/data/repo 24372371 1866 24370505 1% /data/repo
/export/builds 28581172 24 28581148 1% /export/builds
/export/home/admin 28581192 44 28581148 1% /export/home/admin
... |
...