Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-11-29
2
Medium Priority
?
569 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 2000 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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

730 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