docs:migrate-vserver-to-lxc
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
docs:migrate-vserver-to-lxc [2017/07/25 15:36] – created 95.208.70.15 | docs:migrate-vserver-to-lxc [2017/07/25 15:44] – 95.208.70.15 | ||
---|---|---|---|
Line 9: | Line 9: | ||
do not install dnsmasq! | do not install dnsmasq! | ||
- | I use [[http:// | + | I use [[http:// |
===== prereq. ===== | ===== prereq. ===== | ||
< | < | ||
+ | if ! grep -q "[^#]* jessie-backports" | ||
+ | vo -o / | ||
+ | echo "deb http:// | ||
+ | vo -i / | ||
+ | fi | ||
+ | apt-get update | ||
+ | apt-get install --no-install-recommends lxc/ | ||
+ | |||
+ | # new kernel | ||
+ | apt-get install linux-image-4.9.0-0.bpo.3-amd64 linux-base=4.3~bpo8+1 | ||
+ | apt-get install linux-image-amd64 | ||
+ | |||
+ | apt-get clean | ||
+ | </ | ||
+ | |||
+ | ===== start migration ===== | ||
+ | |||
+ | < | ||
+ | # stop vservers: | ||
+ | VSERVERS=$( | ||
+ | vserver-stat | awk 'NR > 1 { print $NF }' | ||
+ | ) | ||
+ | echo " | ||
+ | xargs -r -i% vserver % stop < / | ||
+ | |||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | System should boot with Linux 4.9.0-0.bpo.3-amd64 . | ||
+ | |||
+ | The subuid mechanism needs the uid/gid values inside the container | ||
+ | to be recalculated and changed. | ||
+ | [[http:// | ||
docs/migrate-vserver-to-lxc.txt · Last modified: 2017/07/25 16:03 by 95.208.70.15