I have a standalone PVE host with local storage, plus a PBS server. The host has 3 types of storage devices: NVMe and SATA HDD with 4k sector size and SATA SSDs with 512 bytes sector size.
After creating a VM with a virtual disk carved out from NVMe storage and before the first boot to install the guest OS, I edit the config file of the VM with following option:
The VM installation completes without any problem and it works fine. I can confirm it sees the virtual disk presented by the host as a 4k drive.
Local backups and full restores from the host work great.
Also backups and full restores through the PBS server work as expected.
However if I select "File Restore" in the PVE GUI from a PBS backup, I can not expand nor see the content of the VM disk. I assume the minimal Linux VM image started behind the scene is using the default sector size of 512 bytes.
I can provide exhaustive and detailed info about my configuration + qemu logs from /var/log/proxmox-backup/file-restore/ but I'm pretty sure the issue is caused by the 4k setting. To confirm I created a VM with one virtual disk from NVMe storage (with 4k setting), plus a second virtual disk from the SATA SSD (without the 4k setting, thus defaulting to 512 bytes sector). I then backed-up the VM to the PBS server and attempted single file restores. As expected I can drill down the virtual disk with 512 bytes sector and restore individual files, but it does not work for the 4k virtual disk.
To me this issue doesn't even qualify as a bug, it's more like an enhancement request. And I'm a bit sheepish about asking for a new feature on my very first post...
Is there any way to access (and modify) the configuration of the minimal Linux VM used by proxmox-file-restore, in order to make it work with 4k virtual disks ?
After creating a VM with a virtual disk carved out from NVMe storage and before the first boot to install the guest OS, I edit the config file of the VM with following option:
Code:
args: -set device.scsi0.logical_block_size=4096 -set device.scsi0.physical_block_size=4096
The VM installation completes without any problem and it works fine. I can confirm it sees the virtual disk presented by the host as a 4k drive.
Local backups and full restores from the host work great.
Also backups and full restores through the PBS server work as expected.
However if I select "File Restore" in the PVE GUI from a PBS backup, I can not expand nor see the content of the VM disk. I assume the minimal Linux VM image started behind the scene is using the default sector size of 512 bytes.
I can provide exhaustive and detailed info about my configuration + qemu logs from /var/log/proxmox-backup/file-restore/ but I'm pretty sure the issue is caused by the 4k setting. To confirm I created a VM with one virtual disk from NVMe storage (with 4k setting), plus a second virtual disk from the SATA SSD (without the 4k setting, thus defaulting to 512 bytes sector). I then backed-up the VM to the PBS server and attempted single file restores. As expected I can drill down the virtual disk with 512 bytes sector and restore individual files, but it does not work for the 4k virtual disk.
To me this issue doesn't even qualify as a bug, it's more like an enhancement request. And I'm a bit sheepish about asking for a new feature on my very first post...
Is there any way to access (and modify) the configuration of the minimal Linux VM used by proxmox-file-restore, in order to make it work with 4k virtual disks ?
Last edited: