State of Passthrough HDD is unknown in GUI and and readonly to Host?

bliblabl8

New Member
May 9, 2021
5
0
1
43
hi folks, I've recently added a passthrough HDD to my Windows Server Guest VM with disk_by_id as advised in Proxmox wiki.

After updating, upgrading Host System and rebooting, emergency mode welcomed me.
I found that the passthrough hdd was mounted "/dev/sda /mnt/sda ext4 defaults 0 1".

After changing this to "UUID=F628B67128B6310B /mnt/sda ntfs defaults 0 1", and rebooting everythings fine now. I had to change the mount to NTFS to boot the system in normal mode.

Now my questions: Is it normal, that passthrough hdds are of "State unkown" by the Proxmox Web-Gui?

Is it normal, that filesystem is mounted read-only to host as shown in second screenshot?

Or do i have to change something?
 

Attachments

  • Screenshot 2021-08-22 230821.png
    Screenshot 2021-08-22 230821.png
    19.2 KB · Views: 9
  • Screenshot 2021-08-22 230702.png
    Screenshot 2021-08-22 230702.png
    6 KB · Views: 9
If you pass through a disk like described in the wiki (i.e. with "qm set -scsiX /dev/disk/by-id/..."), you must not use it for anything else on the host, especially not as a PVE storage. Remove your storage from the datacenter screen.

I'm a bit unsure what you meant with the emergency mode thing? Passing through a secondary disk to a VM should never affect anything on your boot disk...
 
If you pass through a disk like described in the wiki (i.e. with "qm set -scsiX /dev/disk/by-id/..."), you must not use it for anything else on the host, especially not as a PVE storage. Remove your storage from the datacenter screen.

I'm a bit unsure what you meant with the emergency mode thing? Passing through a secondary disk to a VM should never affect anything on your boot disk...
Thx for your response. I don't want to use the disk for anything else except in the vm. I just wondered whether it is correct that the disk is shown in webgui as of state "unknown" and "readonly" to the host.

And I wondered why the disk had been mounted as ext4 via following the wiki description, and after changing it to ntfs it's working fine. I don't know if this behavior is correct and wanted to know that.
 
Last edited:
Once again, you are not supposed to see the disk on the host at all. If you see the disk in the panel on the left of the web-GUI, you have configured something terribly wrong and are setting yourself up for permanent data loss. Please remove the disk from all configurations on the host, except the VM config. Never access a passed-through disk from PVE, at all, in any scenario. You *will* destroy your data.
 
Ok, this is what I wanted to know, thank you! Then I have to try to reconfigure that.

So, this leads me to my next question: in host in /etc/fstab the passthroughed hdd doesn't have to appear at all, right?

I didn't insert it there, I just changed from ext4 to ntfs.

Ahh. Maybe that's because before I passthroughed it to the vm, I had used it in host as backup space. Could this be?
 
So, this leads me to my next question: in host in /etc/fstab the passthroughed hdd doesn't have to appear at all, right?
Exactly, the disk must not show up in /etc/fstab on the host.

It's not strictly true, as you can certainly reuse a disk from the host or in different VMs, but for the sake of the argument here, imagine passing through a disk will wipe it. Take precautions like that is the case, and you should be safe.
 
  • Like
Reactions: bliblabl8
Thanks a lot! I appreciate your help very much!

Deleted the line in /etc/fstab, disk doesn't show up in GUI anymore, everything is fine :) Kudos!!
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!