Solved

ezjail problem

Posted on 2011-03-08
1
598 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
Comment Utility
Thanks. I've solved it by myself.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

771 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

9 Experts available now in Live!

Get 1:1 Help Now