Solved

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

Posted on 2010-11-29
2
557 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
  • 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

861 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