I have an ansible playbook that clones a debian template, sets some kernel arguments via qm command, boots the VM, and then is supposed to remove the kernel arguments, so they would only be used/seen on first boot. I based my method off of this excellent guide: https://morph027.gitlab.io/post/pve-kickseed/ , but prefer to use a template instead of preseeding for speed and less package downloads.
My issue is that the command to delete the args produces no error, but the deletion of the args is stuck in [pending] state in the VM conf file as seen below. Anyone know how to fix this?
root@pxmx09:~# qm set 112 -delete args
update VM 112: -delete args
root@pxmx09:~#
root@pxmx09:~# cat /etc/pve/nodes/pxmx09/qemu-server/112.conf
#vpntest.haloprivacy.com
args: -kernel /tmp/vmlinuz -initrd /tmp/initrd.img -append 'root=/dev/mapper/debian--vg-root HaloFirstRun ipaddress=10.93.56.45 netmask=255.255.255.0 gateway=10.93.56.1 hostname=vpntest.*****.com nameserver1=8.8.8.8 nameserver2=4.2.2.2'
bootdisk: scsi0
cores: 1
ide2: local:iso/debian-8.5.0-amd64-netinst.iso,media=cdrom
memory: 1024
name: vpntest.*****com
net0: e1000=66:CC:25:0C:6E:A3,bridge=vmbr0,tag=23
numa: 0
ostype: l26
scsi0: local:112/vm-112-disk-1.qcow2,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=8926ad99-e260-401b-8a64-5c69fb4deb2d
sockets: 1
[PENDING]
delete: args
My issue is that the command to delete the args produces no error, but the deletion of the args is stuck in [pending] state in the VM conf file as seen below. Anyone know how to fix this?
root@pxmx09:~# qm set 112 -delete args
update VM 112: -delete args
root@pxmx09:~#
root@pxmx09:~# cat /etc/pve/nodes/pxmx09/qemu-server/112.conf
#vpntest.haloprivacy.com
args: -kernel /tmp/vmlinuz -initrd /tmp/initrd.img -append 'root=/dev/mapper/debian--vg-root HaloFirstRun ipaddress=10.93.56.45 netmask=255.255.255.0 gateway=10.93.56.1 hostname=vpntest.*****.com nameserver1=8.8.8.8 nameserver2=4.2.2.2'
bootdisk: scsi0
cores: 1
ide2: local:iso/debian-8.5.0-amd64-netinst.iso,media=cdrom
memory: 1024
name: vpntest.*****com
net0: e1000=66:CC:25:0C:6E:A3,bridge=vmbr0,tag=23
numa: 0
ostype: l26
scsi0: local:112/vm-112-disk-1.qcow2,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=8926ad99-e260-401b-8a64-5c69fb4deb2d
sockets: 1
[PENDING]
delete: args