Re: [zones-discuss] Commands to create a zone with r/w /sbin/usr?
I note that I got myself into a boatload of trouble by building zones and removing /usr without removing those others. LiveUpdate in particular crashed and burned. Once you remove /usr, you need to go all the way and make a whole-root zone. (this is not documented, that I can see; the docs warn against removing /lib, /platform, /sbin and /bin but don't mention /usr) ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Commands to create a zone with r/w /sbin/usr?
What are the commands to create a zone where root in the zone can write to /sbin and /usr and modify files without affecting the global zone, please? I need the commands and have only handy Internet access here and cannot search doc.sun.com. Help would be appreciated. -- , __ , { \/`o;-Olga Kryzhanovska -;o`\/ } .'-/`-/ olga.kryzhanov...@gmail.com \-`\-'. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--` ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Commands to create a zone with r/w /sbin/usr?
Le 22 mai 09 à 14:34, ольга крыжановская a écrit : What are the commands to create a zone where root in the zone can write to /sbin and /usr and modify files without affecting the global zone, please? I need the commands and have only handy Internet access here and cannot search doc.sun.com. Help would be appreciated. S10 : r...@glob # zonecfg -z mazone mazone: Aucune zone de cette sorte configurée Utilisez 'create' pour commencer à configurer une nouvelle zone. zonecfg:mazone create -b zonecfg:mazone info zonename: mazone zonepath: brand: native autoboot: false bootargs: pool: limitpriv: scheduling-class: ip-type: shared zonecfg:mazone set zonepath=/export/zones/mazone RTFM man zonecfg 01010101 01001110 01001001 01011000 Nicolas Dorfsman n...@unikservice.com / n...@guses.org Phone: +33 6 7981 4486 GoogleTalk: ndorfs...@gmail.com http://www.guses.org - French Speaking (Open)Solaris User Group http://www.solaris-fr.org - French OpenSolaris Wiki ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Commands to create a zone with r/w /sbin/usr?
2009/5/22 James Carlson james.d.carl...@sun.com: ольга крыжановская writes: What are the commands to create a zone where root in the zone can write to /sbin and /usr and modify files without affecting the global zone, please? I need the commands and have only handy Internet access here and cannot search doc.sun.com. Help would be appreciated. If you're using S10 or SXCE, use man zonecfg and read the section on Whole Root Zones. The person who installed this machine did a rm -f -r /usr/share/man to conserve space. I am without manual pages and zonecfg does not support --man like the shell. -- , __ , { \/`o;-Olga Kryzhanovska -;o`\/ } .'-/`-/ olga.kryzhanov...@gmail.com \-`\-'. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--` ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Commands to create a zone with r/w /sbin/usr?
ольга крыжановская writes: 2009/5/22 James Carlson james.d.carl...@sun.com: If you're using S10 or SXCE, use man zonecfg and read the section on Whole Root Zones. The person who installed this machine did a rm -f -r /usr/share/man to conserve space. I am without manual pages and zonecfg does not support --man like the shell. Wow. He probably could have saved tons more space by applying rm -rf to /usr/lib as well. Man pages are a crucial part of the system, so I'd certainly recommend recovering them if at all possible. Furthermore, removing or altering files that are delivered by packaging simply is not supported. I don't see how what you're describing could be considered a supportable or even a reasonable administrative action. It looks much more like vandalism, and (if it were my system to manage) I'd treat it that way. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Commands to create a zone with r/w /sbin/usr?
bob netherton writes: zonecfg create starts off with /etc/zones/SUNWdefault.xml as your starting configuration and includes the set of inherit-pkg-dir directories that you describe. zonecfg create -b starts off with /etc/zones/SUNWblank.xml which is pretty much what it says, a blank configuration. With -b, it starts off with a blank configuration. That will have no inherited directories at all. The System V packaging code, though, knows only about the four special inherited directories (/lib, /platform, /sbin, and /usr). Those are the only ones that should be added and/or removed to change from whole root to sparse root. It's possible (though unlikely) that there could be things added to SUNWdefault.xml in the future that are intentionally not added to the blank template, and you'd thus end up with something not quite expected by using -b. (I'm pretty sure this issue was discussed during one of the original Zones packaging tools ARC cases.) (I just noticed that the man page says /bin instead of /usr. *sigh*) I'm trying to understand your caution against the use of -b not being supported. To me it seems more safe than relying on removing 4 fixed inherit-pkg-dirs which we might change in the future, although at this point certainly seems unlikely. Agreed; it is in fact very unlikely to change. And -b is currently equivalent. -- James Carlson, Solaris Networking james.d.carl...@sun.com Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ zones-discuss mailing list zones-discuss@opensolaris.org