News for hackers. Stuff that matters.
Re:Duplicate SSH Keys Everywhere by korethr on Tuesday February 17, 2015 @05:15PM (#9065483)
It would not surprise me if there are other bits of unique info on the template VM that need to be cleared before freezing the image, e.g. hostnames.

This is a solved problem in Windows. The sysprep tool wipes out the hostname, security keys, user accounts and a bunch of other things one can configure, so the image initializes properly the first time it's booted.

I am curious if there are similar tools for Linux & Unix that the image builders simply failed to use here, or if this points to an opportunity to build a useful tool.

Re:Duplicate SSH Keys Everywhere by mintplant on Tuesday February 17, 2015 @05:30PM (#9065574)
There's virt-sysprep [1] and sys-unconfig [2].

[1] http://libguestfs.org/virt-sysprep.1.html

[2] http://linux.die.net/man/8/sys-unconfig

Re:Duplicate SSH Keys Everywhere by pliu on Tuesday February 17, 2015 @05:34PM (#9065600)
Re:Duplicate SSH Keys Everywhere by kordless on Wednesday February 18, 2015 @01:49AM (#9067329)
+1
Re:Duplicate SSH Keys Everywhere by verbatim on Tuesday February 17, 2015 @05:32PM (#9065587)
virt-sysprep from libguestfs does this.

http://libguestfs.org/virt-sysprep.1.html

Re:Duplicate SSH Keys Everywhere by warrenm on Tuesday February 17, 2015 @05:44PM (#9065656)
in VMware, you use Customization Specifications to do the equivalent to sysprep for Linux (and sysprep on Windows VMs)