diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c00f60d7..c7f45051 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -589,6 +589,8 @@ my sub create_disks : prototype($$$$$$$$$$$) { ) { die "$ds - cloud-init drive is already attached at '$ci_key'\n"; } + } elsif ($ds eq 'tpmstate0' && $volume_format ne 'raw') { + die "tpmstate0: volume format is '$volume_format', only 'raw' is supported!\n"; } }