The cloned virtual machine failed to start

tangshuai

Member
Jul 4, 2023
31
1
13
通过PBS备份恢复的虚拟机可以正常启动,但将虚拟机转换为模板后,克隆的虚拟机却无法正常启动。1784709584641.png1784709651559.png
 
The original version of the virtual machine is ProxmoxVirtual Environment 8.3.0, and the restored environment version is ProxmoxVirtual Environment 9.2.2。The backup uses ProxmoxBackup Server 3.1-2。
 
Why is that,I am using NFS for storage, and when mounting, I chose version 4.1, but in reality, PVE is still using version 4.2。QEMU relies on SEEK_DATA/SEEK.HOLE to skip empty areas in sparse files when cloning disks to accelerate replication. NAS erroneously reported 'no data for the entire file' in 4.2, causing QEMU to create a 100GB empty qcow2 file, with progress instantly reaching 100%, but the actual data volume is 0.
 
A jump from 0% to 100% with no steps or progress in between usually means empty disk image.
So there is no OS that could be booted.
Why is that,I am using NFS for storage, and when mounting, I chose version 4.1, but in reality, PVE is still using version 4.2。QEMU relies on SEEK_DATA/SEEK.HOLE to skip empty areas in sparse files when cloning disks to accelerate replication. NAS erroneously reported 'no data for the entire file' in 4.2, causing QEMU to create a 100GB empty qcow2 file, with progress instantly reaching 100%, but the actual data volume is 0.
 
Hi,
could you share your storage configuration /etc/pve/storage.cfg? Did you configure the version there, i.e. pvesm set your_nfs_storage --options vers=4.1?
 
你好,
是否可以分享您的存储配置/etc/pve/storage.cfg?您是否有配置版本,例如pvesm set your_nfs_storage --options vers=4.1

我在网页界面挂载时选择了4.1版本,但是无法正确克隆虚拟机,经检查发现自动协商达到了4.2版本。后来我在/etc/pve/storage.cfg里自行添加了options vers=4.1,

现在克隆虚拟机就可以正常了。
 
I chose version 4.1 when mounting the web interface, but I couldn't properly clone the virtual machine. After checking, I found that the automatic negotiation had reached version 4.2. Later, I added options vers=4.1 myself in /etc/pve/storage.cfg, Now, cloning the virtual machine can work normally.

Seems to work now as long as automatic translation did not mess it up.