Hi, I tried to generate a vyos.qcow2 cloud-init on proxmox image using
https://docs.vyos.io/en/latest/automation/cloud-init.html#
As pve root I executed the command:
ansible-playbook qemu.yml -e disk_size=10 -e iso_local=/tmp/vyos.iso -e grub_console=serial -e vyos_version=1.5.0 -e cloud_init=true -e cloud_init_ds=NoCloud
and got a long ansible error message:
TASK [install-packages : Install required packages] **********************************************************************************************************
fatal: [localhost]: FAILED! => {ācache_update_timeā: 1708881435, ācache_updatedā: false, āchangedā: false, āmsgā: āā/usr/bin/apt-get -y -o "Dpkg::Options::=āforce-confdef" -o "Dpkg::Options::=āforce-confold" install ākpartx=0.9.4-5~bpo11+1ā āqemu-utils=1:7.2+dfsg-7+deb12u5ā āpython3-lxml=4.9.2-1+b1ā āisolinux=3:6.04~git20190206.bf6db5b4+dfsg1-3ā āsquashfs-tools=1:4.5.1-1ā āxorriso=1.5.4-4āā failed: E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)\nE: Failure running script /usr/share/proxmox-ve/pve-apt-hook\nā, ārcā: 100, āstderrā: āE: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)\nE: Failure running script /usr/share/proxmox-ve/pve-apt-hook\nā, āstderr_linesā: [āE: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)ā, āE: Failure running script /usr/share/proxmox-ve/pve-apt-hookā], āstdoutā: āReading package listsā¦\nBuilding dependency treeā¦\nReading state informationā¦\nThe following additional packages will be installed:\n libburn4 libisoburn1 libisofs6 libjte2 libnfs13 libssh-4 python3-bs4\n python3-html5lib python3-soupsieve python3-webencodings qemu-block-extra\n syslinux-common\nSuggested packages:\n python3-genshi python-lxml-doc xorriso-tcltk jigit cdck\nThe following packages will be REMOVED:\n proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm qemu-server\n spiceterm\nThe following NEW packages will be installed:\n isolinux kpartx libburn4 libisoburn1 libisofs6 libjte2 libnfs13 libssh-4\n python3-bs4 python3-html5lib python3-lxml python3-soupsieve\n python3-webencodings qemu-block-extra qemu-utils squashfs-tools\n syslinux-common xorriso\nW: (pve-apt-hook) !! WARNING !!\nW: (pve-apt-hook) You are attempting to remove the meta-package āproxmox-veā!\nW: (pve-apt-hook) \nW: (pve-apt-hook) If you really want to permanently remove āproxmox-veā from your system, run the following command\nW: (pve-apt-hook) \ttouch ā/please-remove-proxmox-veā\nW: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package\nW: (pve-apt-hook) and repeat your apt invocation.\nW: (pve-apt-hook) \nW: (pve-apt-hook) If you are unsure why āproxmox-veā would be removed, please verify\nW: (pve-apt-hook) \t- your APT repository settings\nW: (pve-apt-hook) \t- that you are using āapt full-upgradeā to upgrade your system\n0 upgraded, 18 newly installed, 7 to remove and 0 not upgraded.\nNeed to get 0 B/5813 kB of archives.\nAfter this operation, 284 MB disk space will be freed.\nā, āstdout_linesā: [āReading package listsā¦ā, āBuilding dependency treeā¦ā, āReading state informationā¦ā, āThe following additional packages will be installed:ā, " libburn4 libisoburn1 libisofs6 libjte2 libnfs13 libssh-4 python3-bs4", " python3-html5lib python3-soupsieve python3-webencodings qemu-block-extra", " syslinux-common", āSuggested packages:ā, " python3-genshi python-lxml-doc xorriso-tcltk jigit cdck", āThe following packages will be REMOVED:ā, " proxmox-ve pve-container pve-ha-manager pve-manager pve-qemu-kvm qemu-server", " spiceterm", āThe following NEW packages will be installed:ā, " isolinux kpartx libburn4 libisoburn1 libisofs6 libjte2 libnfs13 libssh-4", " python3-bs4 python3-html5lib python3-lxml python3-soupsieve", " python3-webencodings qemu-block-extra qemu-utils squashfs-tools", " syslinux-common xorriso", āW: (pve-apt-hook) !! WARNING !!ā, āW: (pve-apt-hook) You are attempting to remove the meta-package āproxmox-veā!ā, "W: (pve-apt-hook) ", āW: (pve-apt-hook) If you really want to permanently remove āproxmox-veā from your system, run the following commandā, āW: (pve-apt-hook) \ttouch ā/please-remove-proxmox-veāā, āW: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-packageā, āW: (pve-apt-hook) and repeat your apt invocation.ā, "W: (pve-apt-hook) ", āW: (pve-apt-hook) If you are unsure why āproxmox-veā would be removed, please verifyā, āW: (pve-apt-hook) \t- your APT repository settingsā, āW: (pve-apt-hook) \t- that you are using āapt full-upgradeā to upgrade your systemā, ā0 upgraded, 18 newly installed, 7 to remove and 0 not upgraded.ā, āNeed to get 0 B/5813 kB of archives.ā, āAfter this operation, 284 MB disk space will be freed.ā]}
This is about trying to install: gdisk kpartx dosfstools e2fsprogs gnupg qemu-utils python3-lxml grub-efi-amd64 grub-efi-amd64-bin grub-common isolinux python3-requests rsync unzip squashfs-tools xorriso zliblg-dev
I know, that there is an easy trick to solve this, but I donāt know what it is. Can anybody tell me?