Editing Cloning ploop containers
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This describes a non-official and unsupported method of cloning ploop containers. It uses shared base ploop delta (this configuration is not officially supported but apparently works just fine). | This describes a non-official and unsupported method of cloning ploop containers. It uses shared base ploop delta (this configuration is not officially supported but apparently works just fine). | ||
− | This method lets you very quickly create thousands of identical containers | + | This method lets you very quickly create thousands of identical containers. This might be useful for example in testing. |
== Legacy OpenVZ == | == Legacy OpenVZ == | ||
Line 34: | Line 34: | ||
# Need to run <code>vzpkg</code> instead of <code>vztmpl-dl</code> | # Need to run <code>vzpkg</code> instead of <code>vztmpl-dl</code> | ||
# Need to remove <code>VEID=</code> line from the "donor" config file | # Need to remove <code>VEID=</code> line from the "donor" config file | ||
− | # Need to copy <code>.ve.layout</code> from the donor private area | + | # Need to copy <code>.ve.layout</code> from the donor private area |
− | |||
<source lang="bash"> | <source lang="bash"> | ||
Line 53: | Line 52: | ||
for CT in $(seq 1000 2000); do \ | for CT in $(seq 1000 2000); do \ | ||
mkdir -p /vz/private/$CT/root.hdd /vz/root/$CT; \ | mkdir -p /vz/private/$CT/root.hdd /vz/root/$CT; \ | ||
− | ln /vz/private/$SRCID/root.hdd/root. | + | ln /vz/private/$SRCID/root.hdd/root.hdd /vz/private/$CT/root.hdd/root.hdd; \ |
cp -nr /vz/private/$SRCID/root.hdd /vz/private/$CT/; \ | cp -nr /vz/private/$SRCID/root.hdd /vz/private/$CT/; \ | ||
cp /etc/vz/conf/$SRCID.conf /etc/vz/conf/$CT.conf; \ | cp /etc/vz/conf/$SRCID.conf /etc/vz/conf/$CT.conf; \ | ||
cp -a /vz/private/50/.ve.layout /vz/private/$CT/; \ | cp -a /vz/private/50/.ve.layout /vz/private/$CT/; \ | ||
done | done | ||
− | |||
− | |||
</source> | </source> | ||
− | |||
− |