Solaris 10 Conteiners (Zones)


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 Conteiners (Zones)
# 1  
Old 10-19-2007
Solaris 10 Conteiners (Zones)

Hello everyone, i have a problem with my zones.
Code:
# zoneadm list -vc
  ID NAME             STATUS         PATH                          
   0 global           running        /                             
   1 zone1           running        /opt/Zones/zone.1       
   2 zone2           running        /opt/Zones/zone.2

How i can ping they from my computer ? On Zones i can ping only my router and myself, nothing more. I can't create (touch) any files on /usr filesystem.
I want independent filesystem /usr and adjustment of a zone as in real OS.
For /usr values of a global zone are appropriated? As it to alter, that is to copy /usr in a zone. That it was separate!

Thanks and please sorry for my bad english.
For any questions you can find me in ICQ: <removed - ZB>

Last edited by zazzybob; 10-22-2007 at 12:42 AM..
# 2  
Old 10-22-2007
Please do not post personal contact details (i.e. your ICQ number) - this type of personal correspondence is against our rules.

Did you use the "add net" command within zonecfg to assign a network interface to your zone(s)?

In order to have a writeable /usr filesystem within the zone, you'll need to remove the inherit-pkg-dir for /usr when creating the zone, as by default (for a sparse zone) /usr is mounted from the global zone, and thus is read-only.

The Container documentation (part of the Solaris 10 System Administration documentation set available on docs.sun.com) has all this and more.

Cheers,
ZB
# 3  
Old 10-22-2007
Thx
I have server with IP 10.0.0.1 (gateway 10.2.10.121) and i create 2 zones with:
Code:
add net
set address=10.2.10.1
set physical=hme0
&
add net
set address=10.2.10.2
set physical=hme0

Default gateway = 10.2.10.121

How i can configure my network connections with zones?
*** FIX *** I'm configure route on global zone to 10.2.10.0 network and now i can ping and other conections to my zones Smilie Thx to all ^_^

Quote:
In order to have a writeable /usr filesystem within the zone, you'll need to remove the inherit-pkg-dir for /usr when creating the zone, as by default (for a sparse zone) /usr is mounted from the global zone, and thus is read-only.
Sorry for my bad english but i has not understood sense Smilie
I must remove directory Ok, but what the dir inherit-pkg-dir? When? On both my zones i can't find this directory Smilie In global zone too... Please help me (

Correct for me please
I must
Code:
# cd /opt/Zones
# ls
zone_1 zone_2
# cd zone_1/root/
# rm -rf usr
# cp -r /usr /opt/Zones/zone_1/root

I'm right or not ? Thx

Last edited by jess_t03; 10-22-2007 at 02:26 AM..
# 4  
Old 10-22-2007
What i do wrong ?

Code:
global# mkdir -p /opt/Zones/zone_1
global# chmod 700 /opt/Zones/zone_1
global# zonecfg -z zone_1
zone_1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone_1> create
zonecfg:zone_1> set autoboot=true
zonecfg:zone_1> set zonepath=/opt/Zones/zone_1
zonecfg:zone_1> add net
zonecfg:zone_1:net> set address=10.2.10.1
zonecfg:zone_1:net> set physical=fjgi0
zonecfg:zone_1:net> end
zonecfg:zone_1> add fs
zonecfg:zone_1:fs> set dir=/usr
zonecfg:zone_1:fs> set special=/opt/Zones/zone_1
zonecfg:zone_1:fs> set type=lofs
zonecfg:zone_1:fs> end
zonecfg:zone_1> verify
zonecfg:zone_1> commit
zonecfg:zone_1> exit
global# zoneadm -z zone_1 install
Preparing to install zone <zone_1>.
ERROR: mount </usr/lib/fs/lofs/mount> device </opt/Zones/zone_1> mount point </opt/Zones/zone_1/root/usr> options <nosub,nodevices> failed with error code <33>
ERROR: cannot mount loopback mount </opt/Zones/zone_1>
ERROR: cannot setup zone <zone_1> inherited and configured file systems
ERROR: cannot setup zone <zone_1> file systems inherited and configured from the global zone
ERROR: cannot create zone boot environment <zone_1>
zoneadm: zone 'zone_1': '/usr/lib/lu/lucreatezone' failed with exit code 74.

# 5  
Old 10-22-2007
i solved my truble Smilie
Code:
# zonecfg -z zone_1
zonecfg:zone_1> remove inherit-pkg-dir dir=/usr
zonecfg:zone_1> verify
zonecfg:zone_1> commit
zonecfg:zone_1> end

zazzybob thank you ;-)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Migration of Solaris 10 on physical host to Solaris Zones

Hi All Kindly let me know how can I move Solaris 10 OS running update 10 on physical machine to another machine solaris zone running Solaris 10 update 11 (2 Replies)
Discussion started by: amity
2 Replies

2. Solaris

Solaris zones

Hi guys and gals, Does anyone know how to import solaris zones from the xml files that sit in /etc/zones? I want the zones from one machine to another, all I have is the XML files for the zones, so I can't export them first. Thanks in advance Martin (1 Reply)
Discussion started by: callmebob
1 Replies

3. Solaris

Solaris Zones

Hi friends, Actually I faced problem in solaris zone. i was created 4 zones on my server. but one of them is not working ? so, where i wll get the error logs, and how to troubleshoot the problem. i have some kind of urgency. Please reply. (2 Replies)
Discussion started by: rajaramrnb
2 Replies

4. UNIX for Dummies Questions & Answers

Solaris Zones

Hi Guys, I haven't worked on solaris zones earlier. I have a query regarding the zones. We have MQ software installed on a solaris container. I am not sure on which zone this s/w is intalled. I have logged into this container via putty. When I search for the package, I got the package... (7 Replies)
Discussion started by: vandi
7 Replies

5. Solaris

Solaris zones

Hi, I created a zone with separate /usr for the zone. when I do ping to newly created zone it showing alive, I am able to login through zone console zlogin -C -E <zone name> I created a test account on zone which is already existing under global zone and try to ssh, it is working fine but... (1 Reply)
Discussion started by: alberto
1 Replies

6. Solaris

Solaris Zones

Hi Every, I would like to know some questions on Zones??? 1.what are types of zones we can install in global zone??? 2.Exact difference between sparce root and whole root??? 3.can we change the ip address of a running zone??? 4.how to find our in which zone we are running and how many... (8 Replies)
Discussion started by: tirupathiraju_t
8 Replies

7. Solaris

Solaris Zones

I have a Solaris 10 box configured with a global zone and 3 non-global zones. All of the zones need to be configured so they can access and run an application in the global zone located at /export/home. How do i make this application and all of its accompanying files available to the 3 non-global... (3 Replies)
Discussion started by: goose25
3 Replies

8. Solaris

Regarding Solaris Zones

Hello All, I have a list of Local Zones in my list. I want to find out their Global Zone names exactly....I know the command "arp ..."But I dont know how to filter it correctly and find it out. Thanks in advance, Jacky (9 Replies)
Discussion started by: jegaraman
9 Replies

9. Solaris

Solaris zones

Hi All, I am getting zone error # /usr/sbin/zoneadm -z asflxpoc1 boot -s could not verify net address=169.185.246.229 physical=ce0: No such device or address could not verify net address=169.185.246.230 physical=ce0: No such device or address Any ideas for this error message. The... (13 Replies)
Discussion started by: jegaraman
13 Replies

10. UNIX for Advanced & Expert Users

Solaris Zones

okay people i need some help: i was able to configure zones on my solaris 10 server, the problem is I can't ssh into the zones!!! I can zlogin -C zone2 successfully for both zones. Am I missing something? I can ping the zones, but can't ssh. From the zones, I can ping my global server. (7 Replies)
Discussion started by: Sarccastik Dude
7 Replies
Login or Register to Ask a Question