Ubuntu/sysprep: Difference between revisions
< Ubuntu
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
# /etc/hosts | # /etc/hosts | ||
# /etc/netplan | # /etc/netplan | ||
## netplan --debug apply ; networkctl | |||
# Regen [[Ubuntu/machine-id]] | # Regen [[Ubuntu/machine-id]] | ||
# [[Ubuntu/regen ssh host keys]] | # [[Ubuntu/regen ssh host keys]] | ||
# Clear history file | # Clear history file | ||
# Clear log files | # Clear log files | ||
# poweroff | |||
-- Bonus -- | -- Bonus -- |
Latest revision as of 20:17, 4 February 2024
Sysprep
What to do after cloning an Ubuntu Image:
- /etc/hostname
- /etc/hosts
- /etc/netplan
- netplan --debug apply ; networkctl
- Regen Ubuntu/machine-id
- Ubuntu/regen ssh host keys
- Clear history file
- Clear log files
- poweroff
-- Bonus --
- apt update ; apt upgrade
- /etc/ssh/sshd
- ansible
- ssh keys