Open lonnietc opened 4 years ago
Zones have a fairly minimal set of requirements - they're just processes with a security boundary. In fact, if you look at what's in the tarball you can see roughly what files are required.
Enabling zlogin adds a few extra files (you can see exactly which files from zlogin.files).
Creating a zone would be something like
zap create-zone -z node-zone -t alien -i 10.0.2.99 -I /var/tmp/node.tar/gz
It has to be a shared-ip zone, so the netwrok is configured by the global zone, as these minimal images don't have the components to manage network bringup on their own - to do so makes the images huge.
Hi Peter,
Hope that all is well.
I've been working with the mvi scripts and have been able to generate a couple of good minimal images so far, but ran into a problem when i tried to run the image created with:
./zmvix.sh node zlogin
What I had hoped for was that after it boots up (even though it is very minimal) was that I could create, with zap or other utility, and login into a small zone even though it would have nothing configured for it, but I could not do that with this small iso.
My understanding of zones (being similar to jails) is that they are effectively a small empty container that has to have everything mapped into them for use. I envision this as an empty closed box and when you map things into it then you make paths to other things like devices, file systems, etc.
Can you please help me to get an extremely small image setup that can just create a zone and then let me use zlogin to go into that zone with nothing else mapped. Being that I am working as root, then I should also be able to exist the zone as needed?
I want to get a feel for using zones in the extreme minimal mvi image case. Thanks