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.
How can you run the following on a ZFS system?
Code:virt-customize --run-command 'apt install netplan -y' -a /var/lib/vz/images/104/vm-104-disk-0.raw
zvol
:$ virt-customize -a /dev/zvol/zfs/vm-104-disk-0 --install netplan
[ 0.0] Examining the guest ...
[ 2.1] Setting a random seed
virt-customize: warning: random seed could not be set for this type of
guest
[ 2.1] Setting the machine ID in /etc/machine-id
[ 2.1] Installing packages: netplan
[ 9.1] Finishing off
# You may want to reset the machine-id afterwards
$ virt-customize -a /dev/zvol/zfs/vm-104-disk-0 --run-command "echo -n > /etc/machine-id"
We use essential cookies to make this site work, and optional cookies to enhance your experience.