Re: VDS + Solaris |
Вск, 09 Ноябрь 2008 23:07 |
|
# 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
|
|
Re: VDS + Solaris |
Сбт, 01 Июль 2006 22:01 |
|
Добавление файловой системы:
root@disel# zonecfg -z zone2
zone2: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone2> create
zonecfg:zone2> set zonepath=/export/home/zone2
zonecfg:zone2> set autoboot=true
zonecfg:zone2> add net
zonecfg:zone2:net> set address=192.168.50.51
zonecfg:zone2:net> set physical=eri0
zonecfg:zone2:net> end
zonecfg:zone2> add fs
zonecfg:zone2:fs> set dir=/opt
zonecfg:zone2:fs> set type=lofs
zonecfg:zone2:fs> set special=/opt
zonecfg:zone2:fs> end
zonecfg:zone2> exit
|
|
Re: VDS + Solaris |
Пнд, 12 Июнь 2006 16:12 |
|
С глобальной зоны к не-глобальной зоне можно подключиться следующей командой:
zlogin -C zone
Выход - конбинация клавишь: "~." (тильда и точка)
|
|
Re: VDS + Solaris |
Пнд, 12 Июнь 2006 15:37 |
|
Запуск зоны:
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 |
Пнд, 12 Июнь 2006 15:22 |
|
Установка простейшей зоны:
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
|
|
VDS + Solaris |
Вск, 11 Июнь 2006 22:41 |
|
VDS на технологии zones от Sun.
|
|