Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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 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.

758 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

23 Experts available now in Live!

Get 1:1 Help Now