Ubuntu/sysprep: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
What to do after cloning an Ubuntu Image:
What to do after cloning an Ubuntu Image:


# Regen [[Ubuntu/machine-id]]
# /etc/hostname
# /etc/hostname
# /etc/hosts
# /etc/hosts
# /etc/netplan
# /etc/netplan
## netplan --debug apply ; networkctl
# Regen [[Ubuntu/machine-id]]
# [[Ubuntu/regen ssh host keys]]
# [[Ubuntu/regen ssh host keys]]
# Clear history file
# Clear log files
# poweroff
-- Bonus --
# apt update ; apt upgrade
# /etc/ssh/sshd
# ansible
# ssh keys

Latest revision as of 20:17, 4 February 2024

Sysprep

What to do after cloning an Ubuntu Image:

  1. /etc/hostname
  2. /etc/hosts
  3. /etc/netplan
    1. netplan --debug apply ; networkctl
  4. Regen Ubuntu/machine-id
  5. Ubuntu/regen ssh host keys
  6. Clear history file
  7. Clear log files
  8. poweroff

-- Bonus --

  1. apt update ; apt upgrade
  2. /etc/ssh/sshd
  3. ansible
  4. ssh keys