Solaris 10 zones
Seems like everyday, this Solaris 10 fever is getting worse, everyone is installing, testing some part of Solaris 10, like dtrace, zones, or wanting to know about Janus or ZFS.
Well since I was asked how to setup zones twice today. I should share my favorite link on how to get started with zones.
mini-zone how-to
It’s a great place to start, it creates a zone using only about 85-100MB disk space and only uses about 10-15MB of ram.
Quick tips and hints.
Ignore the any doc’s you find out there, for a few days at least, that talk about lofiadm file systems save those for after you play with zones for a few days or weeks.
NFS file systems are best mounted in each zone, you will have to create /etc/vfstab for each one, in each zone if you want to access them.
When it says coping 1XXX packages when creating the zone. It really isn’t coping unless you are doing some weird stuff like lofiadm I mentioned above, the packages are usually shared.
Be sure to keep an open terminal or window to the global zone, not quite sure that zlogin is ready for use, I can’t get the escape mechanism to work for me, could just be me.
Revision:
Okay I was wrong, the escape mechanism does work. I just missed part of it, I associated the "." in ~. to be a period not part of the escape mechanism. It does indeed work my appolgies to the coders at sun especially Dan Price who pointed out my error.
Well since I was asked how to setup zones twice today. I should share my favorite link on how to get started with zones.
mini-zone how-to
It’s a great place to start, it creates a zone using only about 85-100MB disk space and only uses about 10-15MB of ram.
Quick tips and hints.
Ignore the any doc’s you find out there, for a few days at least, that talk about lofiadm file systems save those for after you play with zones for a few days or weeks.
NFS file systems are best mounted in each zone, you will have to create /etc/vfstab for each one, in each zone if you want to access them.
When it says coping 1XXX packages when creating the zone. It really isn’t coping unless you are doing some weird stuff like lofiadm I mentioned above, the packages are usually shared.
Be sure to keep an open terminal or window to the global zone, not quite sure that zlogin is ready for use, I can’t get the escape mechanism to work for me, could just be me.
Revision:
Okay I was wrong, the escape mechanism does work. I just missed part of it, I associated the "." in ~. to be a period not part of the escape mechanism. It does indeed work my appolgies to the coders at sun especially Dan Price who pointed out my error.











1 Comments:
It does work! I can't even tell you how many hours of engineering effort I put into zlogin. A lot! Anyway I did another round of bug fixing to it in build 73, cleaning up some edge cases (mostly to do with invocations like 'zlogin myzone mpstat 1' which previously had some signal handling issues). But the basic functionality has worked well for a while.
By default, '~.' is the escape character. But that can interfere with ssh and other commands which use the same escape character, so you may want to reassign it using -e. For example,
zlogin -e @ -C myzone
Then '@.' will be the escape sequence. Note also that for now, <escape>-. is basically the only escape available. Someday I hope to add some more, especially <escape>-Ctrl-Z to allow you to suspend zlogin.
-Dan Price
http://blogs.sun.com/dp
Post a Comment
<< Home