...
Code Block | ||
---|---|---|
| ||
# clone, but you still have to manually change the host file
sudo lxc-clone -o original -n new
sudo sed -i 's/original/new/' /var/lib/lxc/new/rootfs/etc/hosts # update host file |
The clone command copies the filesystem and also does some necessary house keeping,
- Update the host name
- Generate new unique mac address for your network card
If you want to just try things you, you will want to look at snapshots.
Clear Out Old Data
Log Files
...