cd /tmp
pct list
vzdump 103 -compress gzip -dumpdir /tmp
echo architecture: `pct config 103 | grep arch: | awk ‘{print $2}’ ` > metadata.yaml
echo creation_date: `date +%s` >> metadata.yaml
echo description: ‘Imported from Proxmox/amri’ >> metadata.yaml
tar -czvf metadata.tar.gz metadata.yaml
scp vzdump-lxc-103-2024_01_23-19_06_30.tar.gz metadata.tar.gz [email protected]:/home/amri/
lxc launch fromproxmox Test -c boot.autostart=true
lxc image import –alias=fromproxmox metadata.tar.gz vzdump-lxc-103-2024_01_23-19_06_30.tar.gz
lxc image list
Източник: https://discussion.scottibyte.com/t/replace-proxmox-lxc-containers-with-lxd-containers/247
Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *
Your email address will not be published. Required fields are marked *
Comments are closed.
You must be logged in to post a comment.