Re: [zones-discuss] How to configure network for zone?

2007-11-23 Thread Michael Barto




You need to consider each zone to be an individual host with is own IP.
Share means it uses the same NIC card to connect to the internet. The
following is the RAW network output (ifconfig -a ) from the global zone
(dione)  and comparing it with the same output for the local zone
(dione-dev) to show you what is going on. Note the "zone" parameter in
the output of the global zone, but it is missing in the local zone
ouput:
--

ifconfig:
lo0: flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL
mtu 8232 index 1
    inet 127.0.0.1 netmask ff00 
lo0:1:
flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
8232 index 1
    zone dione-prod
    inet 127.0.0.1 netmask ff00 
lo0:2:
flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
8232 index 1
    zone dione-dev
    inet 127.0.0.1 netmask ff00 
eri0: flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500
index 2
    inet 172.166.11.202 netmask ff00 broadcast 172.166.11.255
    ether 0:3:ba:14:c0:df 
eri0:1: flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu
1500 index 2
    zone dione-prod
    inet 172.166.11.205 netmask ff00 broadcast 172.166.11.255
eri0:2:
flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500 index
2
    zone dione-dev
    inet 172.166.11.206 netmask ff00 broadcast 172.166.11.255
eri0:3: flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu
1500 index 2
    inet 172.166.11.208 netmask ff00 broadcast 255.255.255.255


This is the ouput from the local zone (dione-dev)

ifconfig:
lo0:2:
flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
8232 index 1
    inet 127.0.0.1 netmask ff00 
eri0:2:
flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500 index
2
    inet 172.166.11.206 netmask ff00 broadcast 172.166.11.255

Hopefully this will make things clearer to you.

Ava Zhang wrote:
Hi all,
  
I followed the instruction "Q: How do I create a zone?" in
  http://www.opensolaris.org/os/community/zones/faq/#sa_create,
created a
zone named zone1. 
But zone1 can't boot, it is said some error about IP address. My system
is s10u5_b02 X86.
  
I want to use shared-IP mode to configure zone1, because I have only
one NIC. 
Could you give me some hints to configure it?
  
Here is the detailed information about my system:
--
bash-3.00# cat /etc/release
    Solaris 10 5/08 s10x_u5wos_02 X86
   Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
    Use is subject to license terms.
   Assembled 12 November 2007
bash-3.00# id
uid=0(root) gid=0(root)
bash-3.00# zonecfg -z zone1
zonecfg:zone1 info
zonename: zone1
zonepath: /zone/zone1
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
    dir: /lib
inherit-pkg-dir:
    dir: /platform
inherit-pkg-dir:
    dir: /sbin
inherit-pkg-dir:
    dir: /usr
net:
    address: 129.158.215.197    #Here
IP address is my global zone's IP.
    physical: bge0
zonecfg:zone1
bash-3.00# zoneadm -z zone1 boot
zoneadm: zone 'zone1': bge0:1: could not bring network interface up:
address in 
use by zone 'global': Cannot assign requested address
zoneadm: zone 'zone1': call to zoneadmd failed
bash-3.00#
--
  
  
  
Thanks
--Ava
  

___
zones-discuss mailing list
zones-discuss@opensolaris.org


-- 





  

  
  


  Michael Barto
  Software Architect
  
  
  
  


   LogiQwest
Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
  http://www.logiqwest.com/
  
  
     
  [EMAIL PROTECTED]
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949
  
  


  'tis a gift to be
simple
   


   This e-mail may contain
LogiQwest
proprietary information and should be treated as confidential. 

  






___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] How to configure network for zone?

2007-11-23 Thread Steffen Weiberle
Ava,

Ava Zhang wrote:
 Konstantin Gremliza wrote:
 
 Ava Zhang schrieb:

Zoram Thanga wrote:
  

That's the problem. Use an IP address which is not in use. Shared IP 
doesn't mean you share the IP address itself. It's the IP *stack* that 
is shared.

Zoram


Must I use a free IP in the same subnet(129.158.215.x)? Or any IP is OK, 
including private IP such as 10.x.x.x?

Thanks
--Ava
  


___
zones-discuss mailing list
zones-discuss@opensolaris.org

  

 In case you use a shared-ip address you must use a free ip-address 
 from a subnet known in the global zone.
 a local zone cannot modify the routing table.
 it depends on the routing table from the global zone.
 
 Thanks Konstantin and Zoram for clarification.
 Can you point out a document to help me to configure zone network in detail?

I'd suggest the Container admin guide on docs.sun.com 
http://docs.sun.com/app/docs/doc/817-1592 and the How-To Guide at 
http://www.sun.com/software/solaris/howtoguides/containersLowRes.jsp.

That you can not share the same IP address is the global and a 
non-global zone, if the non-global zone is configured as 
ip-type=shared, is mentioned in Chapter 16: Features Provided by 
Non-Global Zones: Network Isolation and Chapter 17: Zone 
Components: Shared-IP Non-Global Zones.



 where did you get the solaris beta?
 
 It is S10U5 build_02, not beta build, just for Sun internal testing.
 You can't get S10U5 build externally until it is released to customer, 
 maybe several builds later.
 
 
 Thanks
 --Ava
 

 Konstantin
 
 
 
 
 
 ___
 zones-discuss mailing list
 zones-discuss@opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] How to configure network for zone?

2007-11-22 Thread Ava Zhang

Hi all,

I followed the instruction Q: How do I create a zone? in 
http://www.opensolaris.org/os/community/zones/faq/#sa_create, created a 
zone named zone1.
But zone1 can't boot, it is said some error about IP address. My system 
is s10u5_b02 X86.


I want to use shared-IP mode to configure zone1, because I have only one 
NIC.

Could you give me some hints to configure it?

Here is the detailed information about my system:
--
bash-3.00# cat /etc/release
   Solaris 10 5/08 s10x_u5wos_02 X86
  Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
   Use is subject to license terms.
  Assembled 12 November 2007
bash-3.00# id
uid=0(root) gid=0(root)
bash-3.00# zonecfg -z zone1
zonecfg:zone1 info
zonename: zone1
zonepath: /zone/zone1
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
   dir: /lib
inherit-pkg-dir:
   dir: /platform
inherit-pkg-dir:
   dir: /sbin
inherit-pkg-dir:
   dir: /usr
net:
   address: 129.158.215.197#Here IP address is my global 
zone's IP.

   physical: bge0
zonecfg:zone1
bash-3.00# zoneadm -z zone1 boot
zoneadm: zone 'zone1': bge0:1: could not bring network interface up: 
address in

use by zone 'global': Cannot assign requested address
zoneadm: zone 'zone1': call to zoneadmd failed
bash-3.00#
--



Thanks
--Ava
___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] How to configure network for zone?

2007-11-22 Thread serkan okter
Hi,

Please send 
/var/adm/messages lines, when you try to boot your zone,

also please send ifconfig -a  command print

Thanks
Serkan
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] How to configure network for zone?

2007-11-22 Thread Konstantin Gremliza




Ava Zhang schrieb:

  Zoram Thanga wrote:
  
  
That's the problem. Use an IP address which is not in use. Shared IP 
doesn't mean you share the IP address itself. It's the IP *stack* that 
is shared.

Zoram

  
  Must I use a free IP in the same subnet(129.158.215.x)? Or any IP is OK, 
including private IP such as 10.x.x.x?

Thanks
--Ava
  
  
___
zones-discuss mailing list
zones-discuss@opensolaris.org

  

In case you use a "shared-ip" address you must use a free ip-address
from a subnet known in the global zone.
a local zone cannot modify the routing table. 
it depends on the routing table from the global zone.

where did you get the solaris beta?

Konstantin


___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] How to configure network for zone?

2007-11-22 Thread Ava Zhang

Konstantin Gremliza wrote:

Ava Zhang schrieb:

Zoram Thanga wrote:
  
That's the problem. Use an IP address which is not in use. Shared IP 
doesn't mean you share the IP address itself. It's the IP *stack* that 
is shared.


Zoram

Must I use a free IP in the same subnet(129.158.215.x)? Or any IP is OK, 
including private IP such as 10.x.x.x?


Thanks
--Ava
  


___
zones-discuss mailing list
zones-discuss@opensolaris.org

  
In case you use a shared-ip address you must use a free ip-address 
from a subnet known in the global zone.

a local zone cannot modify the routing table.
it depends on the routing table from the global zone.

Thanks Konstantin and Zoram for clarification.
Can you point out a document to help me to configure zone network in detail?


where did you get the solaris beta?

It is S10U5 build_02, not beta build, just for Sun internal testing.
You can't get S10U5 build externally until it is released to customer, 
maybe several builds later.



Thanks
--Ava


Konstantin


___
zones-discuss mailing list
zones-discuss@opensolaris.org