Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
What to do after cloning (SD card -> dd -> SD card) / (VM disk copy)
« previous
next »
Print
Pages: [
1
]
Author
Topic: What to do after cloning (SD card -> dd -> SD card) / (VM disk copy) (Read 3460 times)
Lukas
Newbie
Posts: 5
Karma: 0
What to do after cloning (SD card -> dd -> SD card) / (VM disk copy)
«
on:
December 08, 2017, 05:50:52 pm »
Hi all,
I'd like to simplify and speed up installation of several virtual and physical OPNsense boxes. I'd like to install OPNsense once and then copy VM disk or copy (dd) SD card into another SD card.
1. What should I do after cloning? From my Linux experience I know that I have to re-generate SSH host keys:
Code:
[Select]
# rm /etc/ssh/ssh_host_*
Something else?
2. Is it possible to change XML on the clone before first boot?
I know I can boot it and import but it'd be easier to do it before (offline) by modifying filesystem.
Thank you for any tips.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: What to do after cloning (SD card -> dd -> SD card) / (VM disk copy)
«
Reply #1 on:
December 08, 2017, 06:21:10 pm »
You don't need to regenerate the host keys as long as you don't give the copy to someone else.
In such a case, you would have to delete all certificates as well and clear all the passwords from config.xml (for example RADIUS passwords). Also keep in mind that configuration files may contain passwords / X509 certificates and keys.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
What to do after cloning (SD card -> dd -> SD card) / (VM disk copy)