Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ezjail problem

Posted on 2011-03-08
1
Medium Priority
?
614 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

636 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