Re: [zones-discuss] Run user script when start zone

2012-03-25 Thread skeletor
Can Solaris 10 do it? 24.03.2012 14:27, Jeff Victor написал: With Solaris 11 vnics, each zone can be excl-IP and share an adapter. Each of those zones controls its vnic, not the NIC. --JeffV Sent from my mobile device On Mar 24, 2012, at 7:22 AM, skeletorskele...@lissyara.su wrote:

Re: [zones-discuss] Run user script when start zone

2012-03-25 Thread Hung-Sheng Tsao (LaoTsao) Ph.D
s10 can not do vnic, but you can use vlan or virtual interface e.g. nic:x regards Sent from my iPad On Mar 25, 2012, at 14:24, skeletor skele...@lissyara.su wrote: Can Solaris 10 do it? 24.03.2012 14:27, Jeff Victor написал: With Solaris 11 vnics, each zone can be excl-IP and share an

Re: [zones-discuss] Run user script when start zone

2012-03-24 Thread skeletor
23.03.2012 11:23, Ian Collins написал: For what you are trying to do, exclusive IP is the best option. I have only 1 network adapter. ___ zones-discuss mailing list zones-discuss@opensolaris.org

Re: [zones-discuss] Run user script when start zone

2012-03-24 Thread Jeff Victor
With Solaris 11 vnics, each zone can be excl-IP and share an adapter. Each of those zones controls its vnic, not the NIC. --JeffV Sent from my mobile device On Mar 24, 2012, at 7:22 AM, skeletor skele...@lissyara.su wrote: 23.03.2012 11:23, Ian Collins написал: For what you are trying to

Re: [zones-discuss] Run user script when start zone

2012-03-23 Thread Ian Collins
On 03/21/12 01:50 AM, skeletor wrote: 20.03.2012 14:41, casper@oracle.com пишет: Have you tried making the zone into a zone with exclusive IP stack? (Using a vnic, etc) Then the zone can add the routes as needed Casper No, i havn't. I use share IP stack. For what you are trying to

Re: [zones-discuss] Run user script when start zone

2012-03-21 Thread Christian Meier
Hi But when you will do #zoneadm -z zonename reboot your SMF scripts will not work! Your script will be run once when server start up, and will not run when you use zoneadm reboot/(stop;start) yes. It is only necessary to set the routes once. To set the route the Interface/IP must be exist on

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread Hung-Sheng Tsao (LaoTsao) Ph.D
may be put your script under /etc/init.d/ then link to /etc/rc3.d inside zone Sent from my iPad On Mar 20, 2012, at 7:25, skeletor skele...@lissyara.su wrote: Hello. I need to run a script, that add new route for a zone (script runs at global zone). But routing start earlier than zones - so

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread skeletor
20.03.2012 13:53, Hung-Sheng Tsao (LaoTsao) Ph.D пишет: may be put your script under /etc/init.d/ then link to /etc/rc3.d inside zone Sent from my iPad On Mar 20, 2012, at 7:25, skeletorskele...@lissyara.su wrote: Route must be add at GLOBAL zone

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread Casper . Dik
I need to run a script, that add new route for a zone (script runs at global zone). But routing start earlier than zones - so route doesn't add. Also, when i reboot zone (zoneadm -z zonename reboot) route was disappeared. So i need find a way to add route when zone starts (start/reboot) Have

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread skeletor
20.03.2012 14:41, casper@oracle.com пишет: Have you tried making the zone into a zone with exclusive IP stack? (Using a vnic, etc) Then the zone can add the routes as needed Casper No, i havn't. I use share IP stack. ___ zones-discuss

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread Hung-Sheng Tsao (LaoTsao) Ph.D
may be add the attr defrouter for share ip zone Sent from my iPad On Mar 20, 2012, at 8:37, skeletor skele...@lissyara.su wrote: 20.03.2012 13:53, Hung-Sheng Tsao (LaoTsao) Ph.D пишет: may be put your script under /etc/init.d/ then link to /etc/rc3.d inside zone Sent from my iPad On

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread skeletor
20.03.2012 15:17, Hung-Sheng Tsao (LaoTsao) Ph.D пишет: may be add the attr defrouter for share ip zone it is a special routing, thats why i need a execute a command ___ zones-discuss mailing list zones-discuss@opensolaris.org

Re: [zones-discuss] Run user script when start zone

2012-03-20 Thread Christian Meier
Hello we have the same issue with our Framework I need to run a script, that add new route for a zone (script runs at global zone). But routing start earlier than zones - so route doesn't add. Also, when i reboot zone (zoneadm -z zonename reboot) route was disappeared. So i need find a way to