I have ordered several virtual machines from a hosting provider, which all need exactly the same setup:
- same users
- same programs installed
- same config (except for hostname) including cron-jobs
Is it possible and save to create a tarball of my entire system, excluding /dev
, /proc
, /sys
folders and the /etc/hostname
file and just unpack it on the disk while the system is not running (using a repair mode, or a Live CD, in case of a physical server)?
What else do I have to consider?
Edit: Since I have no physical access to these machines, everything has to be done from the command line.
Edit 2: Also /etc/network/interfaces
should not be copied.
dd
as a possible solution: http://askubuntu.com/questions/19901/how-to-make-a-disk-image-and-restore-from-it-later – msanford Jan 29 '13 at 15:10/etc/hostname
file be the only thing I will have to change then? – Thomas Jan 29 '13 at 15:22