This shows you the differences between two versions of the page.
openvz:updating-debian-template [2010-08-31 20:48] 127.0.0.1 external edit |
openvz:updating-debian-template [2019-06-15 09:47] (current) kokkez |
||
---|---|---|---|
Line 85: | Line 85: | ||
<code bash> | <code bash> | ||
apt-get clean | apt-get clean | ||
+ | rm -rf /var/lib/apt/lists/* # delete the entire cache | ||
> /etc/resolv.conf | > /etc/resolv.conf | ||
exit | exit | ||
Line 105: | Line 106: | ||
Create a new tarball | Create a new tarball | ||
<code bash> | <code bash> | ||
- | cd /vz/private/1097 | + | vzctl mount 1097 |
+ | cd /vz/root/1097 | ||
tar --numeric-owner -czf /vz/template/cache/debian-5.0-i386-minimal.tar.gz . | tar --numeric-owner -czf /vz/template/cache/debian-5.0-i386-minimal.tar.gz . | ||
cd | cd | ||
Line 113: | Line 115: | ||
Clean up | Clean up | ||
<code bash> | <code bash> | ||
+ | vzctl umount 1097 | ||
vzctl destroy 1097 | vzctl destroy 1097 | ||
rm -f /etc/vz/conf/1097.conf.destroyed | rm -f /etc/vz/conf/1097.conf.destroyed |