Editing Debootstrap from foreign version or distribution
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 4: | Line 4: | ||
[[Category: Debian]] | [[Category: Debian]] | ||
| − | This procedure (for Debian, Ubuntu, and derivatives) is useful when need to create a template, and your host | + | This procedure (for Debian, Ubuntu, and derivatives) is useful when need to create a template, and your host hasn't suite's script (in /usr/share/debootstrap/scripts). This situation can de caused because your host and your next template are from different distributions, or because your host is an older version than the next template you want to create (fo example, creating Ubuntu 10.04 template in an Ubuntu 8.04 host). |
| − | To do this | + | To do this you need a computer to install a clean system or a virtual one with [http://www.qemu.org/ Qemu] or similar. |
'''Step 1: install a system with the distribution & version you want for template''' | '''Step 1: install a system with the distribution & version you want for template''' | ||
| − | + | '''Step 2: debootstrap''' | |
| − | |||
| − | '''Step 2: debootstrap''' | ||
cd /tmp | cd /tmp | ||
sudo apt-get install debootstrap | sudo apt-get install debootstrap | ||
| Line 26: | Line 24: | ||
Now you have a package like "debootstrap_ubuntu-10.04-i686.tar.gz" to copy to the OpenVZ host/server. | Now you have a package like "debootstrap_ubuntu-10.04-i686.tar.gz" to copy to the OpenVZ host/server. | ||
| − | '''Unpacking for a new templaye''' (example for 777 container | + | '''Unpacking for a new templaye''' (example for 777 container) |
sudo mkdir -p /vz/private/777 | sudo mkdir -p /vz/private/777 | ||
cd /vz/private/777 | cd /vz/private/777 | ||