Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mobaxterm not able to change directory 28 111
cannot connect to openvpn server 9 60
linux installs 6 49
Centos 6 User Can't Assign Password 2 25
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…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now