Re: [zones-discuss] Problem downloading packages within non-global zone

2009-07-29 Thread Jack LING
by default, the network configuration of the global zone is set to auto-detect. 
I think this should be dhcp?

Reading Solaris System Administration documentations, hostname.interface 
file(s) under the /etc/inet directory is used for setting static ip address of 
interface(s). I don't know whether OpenSolaris is using the same model? Does it 
actually store network settings somewhere when I manually adjust the network 
settings at the icon shown on the tray?

Since the configuration details are from dhcp, I don't know where to put/modify 
in settings like dns server (after the initial network settings for the 1st 
time login) to the non-global zone.  Which command I can use to know the dns 
settings in the global zone?
 

thanks,
jackling
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Problem downloading packages within non-global zone

2009-07-29 Thread Steffen Weiberle

On 07/29/09 02:47, Jack LING wrote:

by default, the network configuration of the global zone is set to auto-detect. 
I think this should be dhcp?

Reading Solaris System Administration documentations, hostname.interface 
file(s) under the /etc/inet directory is used for setting static ip address of 
interface(s). I don't know whether OpenSolaris is using the same model? Does it 
actually store network settings somewhere when I manually adjust the network 
settings at the icon shown on the tray?

Since the configuration details are from dhcp, I don't know where to put/modify 
in settings like dns server (after the initial network settings for the 1st 
time login) to the non-global zone.  Which command I can use to know the dns 
settings in the global zone?
 


thanks,
jackling


If using shared-IP, you can't use DHCP in a non-global zone. You will 
have to configure it manually, via an /etc/sysidcfg file on initial 
boot, or as Jordan said, answering questions during initial boot after 
logging into the zone's console using 'zlogin -C zone name'.


You will have to enter things such as your DNS server (if you want to).

If you are using exclusive IP, the /etc/sysidcfg file can have all the 
network information, or you again do it via the prompts on boot.


For a DHCP version of the sysidcfg file, see 
http://blogs.sun.com/stw/entry/crossbow_is_delivered_traveling_vnics


Below are sample sysidcfg files I have lying around. I don't set up DNS. 
See 'man sysidcfg' to get examples of that.


Steffen

NOTE: the root_password fields have been modified

# cat shared17.sysidcfg
terminal=xterm
system_locale=C
network_interface=primary {
hostname=shared17
protocol_ipv6=no
}
security_policy=NONE
name_service=NONE
timezone=US/Eastern
timeserver=localhost
nfs4_domain=dynamic
root_password=foo-bar
service_profile=limited_net

# cat master.sysidcfg
terminal=xterm
system_locale=C
network_interface=primary {
hostname=master
ip_address=10.1.111.151
netmask=255.255.255.192
protocol_ipv6=no
default_route=10.1.111.129
}
security_policy=NONE
name_service=NONE
timezone=US/Eastern
timeserver=localhost
nfs4_domain=dynamic
root_password=foo-bar
service_profile=limited_net
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Problem downloading packages within non-global zone

2009-07-28 Thread Steffen Weiberle

On 07/27/09 23:40, Jack LING wrote:

dear all,

I've installed mysql and glassfish packages in my OpenSolaris 2009.06 
installation in VirtualBox. Then I created a non-global zone (I think it is 
sparse-root, by default).

Within the non-global zone, mysql  glassfish are unavailable. Actually I 
wanted to confine them to hv them run in non-global zone not global zone.

Questions:
1. would the non-global zone hv access to mysql  glassfish install if I've had 
created the non-global zone 1st THEN downloaded/installed the packages from Package 
Manager?

2. Or by creating a whole root zone would have solved the problem?

3. Networking issue: leaving my non-global zone as it is, I tried to use pkg to get 
and install the mysql  glassfish packages. But it came out error stating it 
could not find the package server. Obviously, it is networking problem within the 
non-global zone whereby it can't locate and connect to the Internet WHILE the 
global zone has no such network problems. Does the non-global zone follows the dns 
configurations of the global zone upon creation or I've to manually configure it 
and how?

thanks in advance,
jackling


OpenSolaris IPS and zones don't have a concept of sparse and whole root. 
You have a 'separate' set of IPS packages, and you will have to install 
the applications into the zone, similar to how you did it for the global 
zone.


You have to separately configuring networking in the non-global zone.
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Problem downloading packages within non-global zone

2009-07-28 Thread Jordan Vaughan

On 07/28/09 09:42 AM, Steffen Weiberle wrote:

On 07/27/09 23:40, Jack LING wrote:

dear all,

I've installed mysql and glassfish packages in my OpenSolaris 2009.06 
installation in VirtualBox. Then I created a non-global zone (I think 
it is sparse-root, by default).


Within the non-global zone, mysql  glassfish are unavailable. 
Actually I wanted to confine them to hv them run in non-global zone 
not global zone.


Questions:
1. would the non-global zone hv access to mysql  glassfish install if 
I've had created the non-global zone 1st THEN downloaded/installed the 
packages from Package Manager?


2. Or by creating a whole root zone would have solved the problem?

3. Networking issue: leaving my non-global zone as it is, I tried to 
use pkg to get and install the mysql  glassfish packages. But it came 
out error stating it could not find the package server. Obviously, it 
is networking problem within the non-global zone whereby it can't 
locate and connect to the Internet WHILE the global zone has no such 
network problems. Does the non-global zone follows the dns 
configurations of the global zone upon creation or I've to manually 
configure it and how?


thanks in advance,
jackling


OpenSolaris IPS and zones don't have a concept of sparse and whole root. 
You have a 'separate' set of IPS packages, and you will have to install 
the applications into the zone, similar to how you did it for the global 
zone.


You have to separately configuring networking in the non-global zone.
___
zones-discuss mailing list
zones-discuss@opensolaris.org


That's right.  OpenSolaris doesn't have anything like sparse-root zones. 
 Each non-global zone (NGZ) has its own set of packages: each has to be 
managed separately.


As Steffen said, you have to configure each NGZ's networking features 
separately.  Did you grab the zone's console after booting it for the 
first time and walk it through the sysid config screens?  They ask you 
for network configuration parameters.


Hope that helps,
Jordan
___
zones-discuss mailing list
zones-discuss@opensolaris.org