?
Solved

ezjail problem

Posted on 2011-03-08
1
Medium Priority
?
611 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

800 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