Here are the informations:
command:
qm start 1004
/bin/swtpm exit with status 256:
start failed: command 'swtpm_setup --tpmstate file:///dev/zvol/len2023-sdd/vm-1004-disk-0 --createek --create-ek-cert --create-platform-cert --lock-nvram --config /etc/swtpm_setup.conf --runas 0 --not-overwrite --tpm2 --ecc' failed: exit code 1
syslog:
2024-12-12T08:21:12.655286+01:00 len2023 kernel: [17538415.533247] audit: type=1400 audit(1733988072.653:92145284): apparmor="DENIED" operation="userns_create" class="namespace" info="Userns create restricted - failed to find unprivileged_userns profile" error=-13 namespace="root//lxc-844_<-var-lib-lxc>" profile="unconfined" pid=1768546 comm="coolwsd" requested="userns_create" denied="userns_create" target="unprivileged_userns"
2024-12-12T08:21:13.436871+01:00 len2023 qm[1768555]: <root@pam> starting task UPID:len2023:001AFCC6:6889D16C:675A8EE9:qmstart:1004:root@pam:
2024-12-12T08:21:13.437826+01:00 len2023 qm[1768646]: start VM 1004: UPID:len2023:001AFCC6:6889D16C:675A8EE9:qmstart:1004:root@pam:
2024-12-12T08:21:13.626919+01:00 len2023 systemd[1]: Started 1004.scope.
2024-12-12T08:21:13.667374+01:00 len2023 systemd[1]: 1004.scope: Deactivated successfully.
2024-12-12T08:21:13.669412+01:00 len2023 qm[1768646]: start failed: command 'swtpm_setup --tpmstate file:///dev/zvol/len2023-sdd/vm-1004-disk-0 --createek --create-ek-cert --create-platform-cert --lock-nvram --config /etc/swtpm_setup.conf --runas 0 --not-overwrite --tpm2 --ecc' failed: exit code 1
2024-12-12T08:21:13.681230+01:00 len2023 qm[1768555]: <root@pam> end task UPID:len2023:001AFCC6:6889D16C:675A8EE9:qmstart:1004:root@pam: start failed: command 'swtpm_setup --tpmstate file:///dev/zvol/len2023-sdd/vm-1004-disk-0 --createek --create-ek-cert --create-platform-cert --lock-nvram --config /etc/swtpm_setup.conf --runas 0 --not-overwrite --tpm2 --ecc' failed: exit code 1
conf:
cat 1004.conf
agent: 1
bios: ovmf
boot: order=virtio0
cores: 6
cpu: qemu64
efidisk0: LEN2023-SDD:vm-1004-disk-1,efitype=4m,pre-enrolled-keys=1,size=1M
machine: pc-q35-7.1
memory: 6144
meta: creation-qemu=7.1.0,ctime=1673625902
name: Virtual04
net0: virtio=82:C0:1B:01:01:15,bridge=vmbr10,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=...
sockets: 1
tpmstate0: LEN2023-SDD:vm-1004-disk-0,size=4M,version=v2.0
vga: std
virtio0: LEN2023-SDD:vm-1004-disk-2,cache=writeback,size=150G
vmgenid: ....
storage:
cat storage.cfg
dir: local
path /var/lib/vz
content iso,backup,vztmpl
lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images
zfspool: LEN2023-SDD
pool len2023-sdd
content rootdir,images
mountpoint /len2023-sdd
nodes len2023
sparse 0
zfspool: LEN2023-DATA
pool len2023-data
content rootdir,images
mountpoint /len2023-data
nodes len2023
sparse 0
dir: len2023-backup
path /len2023-data/backup
content backup
nodes len2023
prune-backups keep-all=1
shared 0
zfspool: hp2013-data
pool hp2013-data
content images,rootdir
mountpoint /hp2013-data
nodes hp2013
sparse 0
dir: hp2013-backup
path /hp2013-data/backup
content backup
nodes hp2013
prune-backups keep-all=1
shared 0
zfspool: DELL2015-data
pool dell2015-data
content rootdir,images
mountpoint /dell2015-data
nodes dell2015
sparse 0
dir: DELL2015-Backup
path /dell2015-data/backup
content vztmpl,backup,images,iso,snippets
nodes dell2015
prune-backups keep-all=1
shared 0
zfspool: len2020-data
pool len2020-data
content images,rootdir
mountpoint /len2020-data
nodes len2020
sparse 0
dir: len2020-backup
path /len2020-data/backup
content backup,iso
nodes len2020
prune-backups keep-all=1
shared 0
zfspool: dell2015-ssd1
pool dell2015-ssd1
content images,rootdir
nodes dell2015
sparse 0
lvm: MD3400-Data
vgname MD3400_data
content rootdir,images
nodes len2023,dell2015
shared 1
lvm: MD3400_SSD1
vgname MD3400_SSD1
content rootdir,images
nodes dell2015,len2023
shared 1
lvm: MD3400_SSD2
vgname MD3400_SSD2
content images,rootdir
nodes dell2015
saferemove 0
shared 1
lvm: MD3400_SSD3
vgname MD3400_SSD3
content rootdir,images
nodes len2023,dell2015
saferemove 0
shared 1
lvm: MD3400_SSD4
vgname MD3400_SSD4
content images,rootdir
nodes dell2015,len2023
saferemove 0
shared 1
Tanks in advance