Solved

creating and using a dedicated (centos+cpanel+firewall etc...) template

Posted on 2010-11-29
2
566 Views
Last Modified: 2012-05-10
I know the commands to create vps openvz centos+cpanel+firewall etc... templates, But i didn't know if I could do something similar with dedicated boxes.  is it possible to use the same process of creating a vps template and untar/apply the same template to a clean centos 5.5 dedicated machine install and get the same effect?

I spend several hours manually setting up a clean centos+cpanel+firewall+mailscanner etc... dedicated box, where if I could just untar a template after a clean centos install, that would save me so much time.  Let me know if it's possible and if so, what commands I would use to tar up the fully configured box correctly for future unconfigured boxes.
0
Comment
Question by:allwebnow
[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
  • 2
2 Comments
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 500 total points
ID: 34237323
Hi!

Use this:

sudo tar -pjcvvlf "/mnt/hp/backup.tar.bz2" / --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/tmp

Open in new window


And then unpack this tar to the target machine.

Regards, Tobias
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 500 total points
ID: 34237440
Clarification:
1. Make the template machine.
2. Mount an external disk or network share where to put the tar file.
3. Run the tar command above (and replace the example path above to your mounted disk/share) on the template machine as root. You don't have to use sudo if you use su.

4. Install a clean Linux on the target machine.
5. Mount and untar the tar file to the target machine:
sudo tar -xvvzf "/mnt/hp/backup.tar.bz2" /

Open in new window


Regards, Tobias
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

635 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