Solved

ezjail problem

Posted on 2011-03-08
1
607 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
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.:

717 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