3 ms·
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
by korethr 12y ago
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.
- mintplant 12y agoThere's virt-sysprep [1] and sys-unconfig [2]. [1] http://libguestfs.org/virt-sysprep.1.html http://libguestfs.org/virt-sysprep.1.html [2] http://linux.die.net/man/8/sys-unconfig http://linux.die.net/man/8/sys-unconfig
- verbatim 12y agovirt-sysprep from libguestfs does this. http://libguestfs.org/virt-sysprep.1.html http://libguestfs.org/virt-sysprep.1.html
- pliu 12y agocloud-init https://cloudinit.readthedocs.org/en/latest/ https://cloudinit.readthedocs.org/en/latest/
- kordless 12y ago+1
- warrenm 12y agoin VMware, you use Customization Specifications to do the equivalent to sysprep for Linux (and sysprep on Windows VMs)