unmaintained_state_and_migration_script
This commit is contained in:
parent
78f524854d
commit
b9610828a8
2 changed files with 45 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
|
__This repository is outdated and unmaintained, please use https://git.my-web.xyz/milan/usi-mm__
|
||||||
|
|
||||||
__Features:__
|
__Features:__
|
||||||
|
|
||||||
|
lxd-to-incus ->
|
||||||
|
script to migrate usl-mm installations from lxd to incus
|
||||||
|
|
||||||
copy_containers ->
|
copy_containers ->
|
||||||
script for easy bulk container migrate via SSH between instalations of usl-mm, is also possible use it in non-interactive mode with parameters in this order: container-name, destination-host, destination-port(optional)
|
script for easy bulk container migrate via SSH between instalations of usl-mm, is also possible use it in non-interactive mode with parameters in this order: container-name, destination-host, destination-port(optional)
|
||||||
|
|
||||||
|
|
40
lxd-to-incus
Executable file
40
lxd-to-incus
Executable file
|
@ -0,0 +1,40 @@
|
||||||
|
#!/bin/bash
|
||||||
|
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
|
||||||
|
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-lts-6.0.sources
|
||||||
|
Enabled: yes
|
||||||
|
Types: deb
|
||||||
|
URIs: https://pkgs.zabbly.com/incus/lts-6.0
|
||||||
|
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
|
||||||
|
Components: main
|
||||||
|
Architectures: $(dpkg --print-architecture)
|
||||||
|
Signed-By: /etc/apt/keyrings/zabbly.asc
|
||||||
|
|
||||||
|
EOF'
|
||||||
|
|
||||||
|
apt update
|
||||||
|
apt install incus -y
|
||||||
|
|
||||||
|
incus ls
|
||||||
|
|
||||||
|
lxd-to-incus --ignore-version-check --yes
|
||||||
|
|
||||||
|
incus admin shutdown
|
||||||
|
|
||||||
|
systemctl stop incus
|
||||||
|
systemctl stop incus.socket
|
||||||
|
systemctl stop incus-user.socket
|
||||||
|
|
||||||
|
zfs set mountpoint=/var/lib/incus crypt/lxd/dir
|
||||||
|
|
||||||
|
systemctl start incus.socket
|
||||||
|
systemctl start incus-user.socket
|
||||||
|
systemctl start incus
|
||||||
|
|
||||||
|
|
||||||
|
cp /root/onstart /root/onstart-backup
|
||||||
|
|
||||||
|
rpl 'LXD snap daemon' 'Incus daemons' /root/onstart
|
||||||
|
rpl '/var/snap/lxd/common/lxd/' '/var/lib/incus/' /root/onstart
|
||||||
|
|
||||||
|
sed -i 's/snap disable lxd/systemctl stop incus\nsystemctl stop incus.socket\nsystemctl stop incus-user.socket/' /root/onstart
|
||||||
|
sed -i 's/snap enable lxd/systemctl start incus-user.socket\nsystemctl start incus.socket\nsystemctl start incus/' /root/onstart
|
Loading…
Reference in a new issue