|
Re: VDS + Solaris [сообщение #116 является ответом на сообщение #115] |
Пнд, 12 Июнь 2006 15:22 |
exist
Сообщений: 226 Зарегистрирован: Март 2005
|
Senior Member |
|
|
Установка простейшей зоны:
root@solaris# zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/export/home/zone1
zonecfg:zone1> set autoboot=true
zonecfg:zone1> add net
zonecfg:zone1:net> set address=192.168.64.11
zonecfg:zone1:net> set physical=iprb0
zonecfg:zone1:net> end
zonecfg:zone1> exit
root@solaris# zoneadm list -vc
ID NAME STATUS PATH
0 global running /
- zone1 configured /export/home/zone1
root@solaris# zoneadm -z zone1 install
Preparing to install zone <zone1>.
Creating list of files to copy from the global zone.
Copying <2890> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <920> packages on the zone.
Initialized <920> packages on zone.
Zone <zone1> is initialized.
Installation of these packages generated warnings: <SUNWvtsr>
The file </export/home/zone1/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
root@solaris# ls -la /export/home/zone1
total 6
drwx------ 3 root root 512 Jun 12 14:58 .
drwxr-xr-x 7 root root 512 Jun 12 14:58 ..
drwxr-xr-x 16 root root 512 Jun 12 14:59 root
[Обновления: Пнд, 12 Июнь 2006 15:38] Известить модератора
|
|
|
Re: VDS + Solaris [сообщение #117 является ответом на сообщение #115] |
Пнд, 12 Июнь 2006 15:37 |
exist
Сообщений: 226 Зарегистрирован: Март 2005
|
Senior Member |
|
|
Запуск зоны:
root@solaris# zoneadm -z zone1 boot
root@solaris# zoneadm list -vc
ID NAME STATUS PATH
0 global running /
2 zone1 running /export/home/zone1
root@solaris# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL > mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL > mtu 8232 index 1
zone zone1
inet 127.0.0.1 netmask ff000000
iprb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.64.10 netmask ffffff00 broadcast 192.168.64.255
ether 0:a0:c9:b7:19:1f
iprb0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone zone1
inet 192.168.64.11 netmask ffffff00 broadcast 192.168.64.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL > mtu 8252 index 1
inet6 ::1/128
iprb0: flags=2000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 fe80::2a0:c9ff:feb7:191f/10
ether 0:a0:c9:b7:19:1f
|
|
|
|
|
Re: VDS + Solaris [сообщение #852 является ответом на сообщение #115] |
Вск, 09 Ноябрь 2008 23:07 |
exist
Сообщений: 226 Зарегистрирован: Март 2005
|
Senior Member |
|
|
# ifconfig interface:N plumb
# ifconfig interface:N ip_adress up
example:
# ifconfig ce0:1 plumb
# ifconfig ce0:1 192.168.1.1 netmask 255.255.255.0 up
to enable this IP alias at startup
1. create /etc/hostname.ce0:1 and type a name for this IP
# cat /etc/hostname.ce0:1
host_1
#
2. Add IP & host entry to the /etc/hosts
192.168.1.1 host_1 # IP alias for ce0 interface
|
|
|