virt-customize --run-command 'apt install netplan -y' -a /var/lib/vz/images/104/vm-104-disk-0.raw
Something like qm guest exec can work if the VM is running? But the QEMU Guest Agent needs to be installed first.Code:virt-customize --run-command 'apt install netplan -y' -a /var/lib/vz/images/104/vm-104-disk-0.raw
Maybe I can chroot in?
That would require the network on the VM to be working though.Something like qm guest exec can work if the VM is running? But the QEMU Guest Agent needs to be installed first.
mkdir -p /mnt/100
mount /dev/zvol/zfs/vm-100-disk-0-part2 /mnt/100
chroot /mnt/100
apt install netplan -y
No, it does not. You only need access to the Proxmox node and QEMU GA needs to be running inside the VM. But glad you got it working anyway.That would require the network on the VM to be working though.
Still the question if it would have helped. I guess a guest without a network interface also can't use apt to install packages without a internet connection.No, it does not. You only need access to the Proxmox node and QEMU GA needs to be running inside the VM. But glad you got it working anyway.
You can copy the contents of the package (or an archive of multiple ones) via stdin, or use virtio-fs or 9p to provide a file share. I guess there is little you can't do via a virtual PCI(e) device... ;-)By the way...
Still the question if it would have helped. I guess a guest without a network interface also can't use apt to install packages without a internet connection.