[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: test VMs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/08/2015 04:18 PM, Bonno Bloksma wrote:
> Hi,
>
> I want to setup a few test VMs on my VMware servers.
> Can I simply clone a basic machine? A machine with no desktop, just an
"empty" server.
Yes.

>
> Is there a script which I can use to simply "reset" machine specific
stuff like the hostname, ssh keys, etc?
One way could be to configure a template machine that you clone from.
This machine will probably use with dhcp, and a firstboot script that is
run only on the first boot for each cloned machine. This script could
regenerate the ssh key for the ssh server, and poll additional scripts
from another server that sets the hostname and a static IP address. (I
wrote an instance manager for AWS a few years ago that could spin up any
number of instances based on some rules, and with a combination of
first-boot scripts and scripts generated for each instance, everything
was 100% automated).

Jarle

- -- 
Jarle Aase                      email: jarle@jgaa.com
Author of Free Software.        http://www.jgaa.com

War FTP Daemon:                 http://www.warftp.org
Other free software:            http://products.jgaa.com

NB: If you reply to this message, please include all relevant
information from the conversation in your reply. Thanks.
<<< no need to argue - just kill'em all! >>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUrsYOAAoJECdIPpCNC8ty4SkQALNzLpWmSbIT/qCRtirfyY/Y
enP73Zb5KGIyYJeQHUO1LblK50O83/CW01n0JZo/Wd7CuHIOj7PdLB/wHXAEXEIq
g7Z2f0cfNsAybAzvhCUCSaJa8gR1CLp4Jj7rk/3nbnUs/3W8S2SdXsLXJlS3hDMx
zrGwW5m1LHs4+eVvf90GNPhZydVY4OOoVYY3dRrGlBxC63gYLU1BbQV5mSdH/ELX
LEy3aPiGhf9c19V7t7X8cVwHcoTLB5ghVJl35TFrwdTJ1FjfHoXlUrEkyhlR03VX
UvrykoqTJ4EB4DTMGVOKUDKWmxI9+SE10JeWuhuo5v2cv4VVHX89LZM7GzCW+lGB
qMx/L0IUf8sQ8yYk/moEqBcNGOvDEwrC8k/6XR3J7OEXwbk6BLSg/+eaiv+9Z7Bf
LP2Dn56CCAJsPHxs/yrvU6j4nuBjtWA4KVPb4YRQONIPmzrvD2K6t7yUxV9uptd1
8J0/uy5Opy6vVo5IcvCxfGg5aym8UbEwOCk5maXAV5XFqCR1pOViDJ3Ap0WS6kcD
kDIyhbIRH79vvVtWdR1jARsLTfQ8q07BYwGPgooWNJ7u31QlL8mO4wXxI7j4DMhk
k6JGG3le64Z1bAq5xDfsLmdvDRsqrDvHMVPFCFg68HpKroBGZYzD3I3xhrYZntW3
TxvPDT0Boa1tUIKR8yty
=ehxS
-----END PGP SIGNATURE-----


Reply to: