FreeBSD and jails

ezjail is a perfect tool for jails. What it does is actually saving you a lot of keystrokes. It is a very nice bash script.

When you create a new jail one of the task ezjail is copying everything from /usr/jails/newjail to the new jails directory. For a reason my /usr/jails/newjail was empty, ezjail finished the task, saying all went fine but when I wanted to start the jail I had the following error:

ezjail-admin start my_shiny_new_jail

cannot start jail my_shiny_new_jail, basejail: No such file or directory

I start looking around the internet, haven’t found a solution. Then I created a jail on another server when I noticed that so many files are copied into the new jail, “wait a minute, why isn’t this happening on server #1?” So I installed jails almost from scratch, this solved the issue.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.