Solved

ezjail problem

Posted on 2011-03-08
1
599 Views
Last Modified: 2016-02-10
Hello all. I have some problems with ezjail (OS FreeBSD 8.2 stable 64amd). I try to automate creating new virtual machine via "flavour" but in the end I won't get what I want. My question is that how can I have preinstalled software in ezjail virtual machine (for example apache, mysql, php and so on)? Now I have next problem. Ezjail support 'flavour' that can be usefull if you are doing post-install actions inside virtual machine. So my "ezjail.flavour" has next contents:
#!/bin/sh

cd /usr/ports/databases/mysql51-server && make install
cd /usr/ports/www/apache22 && make install
cd /usr/ports/lang/php5 && make install
cd /usr/ports/lang/php5-extensions && make install

Open in new window

As you see there are ports which I try to install. Because I have all that ports installed on my host I copied /var/db/ports to my Virtual Machine because I don't want installation process was interrupted (like 'make config' when I need to define ports' options) . When I create new ezjail machine 'ezjail.flavour' is being processed inside new virtual machine. On the console I see 'Starting jails: ' while inside virtual machine starting new installation process mysql51-server, apache22 and so on. So I wait for a while and connect to virtual machine. And I see only installed mysql-server not other applications. So next I manual install next apllication without any problem. I don't know exactly but there is (may be in bourne shell) must be some timeout after which execute script is ceased. If you know let me know it. Thanks.
0
Comment
Question by:dm07
1 Comment
 
LVL 1

Accepted Solution

by:
dm07 earned 0 total points
ID: 35079388
Thanks. I've solved it by myself.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now