Differences between revisions 3 and 4
Revision 3 as of 2017-12-08 14:12:42
Size: 1243
Comment:
Revision 4 as of 2017-12-08 14:28:26
Size: 1217
Comment:
Deletions are marked like this. Additions are marked like this.
Line 37: Line 37:
service hostname restart

KVM Guest Operating System

The KVM Guest is a sparse installation.

KVM Guest Template

Install Debian

Define your disk layout, then go ahead and install Debian. Make sure this is an installation with a minimum of packages. Once Debian has been installed, leave the template alone.

KVM Guest Clone

Clone Your Template

Start by cloning your template.

Configure the New Guest

Root Password

Reset your root passwd.

passwd

Hostname

Your new system will need a new hostname.

  • /etc/hostname
  • /etc/hosts

sed -i 's/stretch-template/clone/g' /etc/hosts
sed -i 's/stretch-template/clone/g' /etc/hostname

Unique sshd keys

Make sure your clone does indeed have unique ssh keys. This is a really important step when cloning. Consider all your clones had the same ssh keys, that would really be a mess.

rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
service sshd restart

Update

Since the template can be quite old, you might as well update the new system.

apt-get update
apt-get upgrade

None: KVM Guest Operating System (last edited 2020-12-13 12:38:05 by Kristian Kallenberg)