Passthrough a disk with an existing Windows 10 installation?

PonyoHam

Member
May 23, 2018
20
1
8
40
Hi,

How can I pass through my sata ssd with an existing windows 10 installation to a VM in proxmox? I tried following the docs but I get some mapping table on screen that shows a bunch of pciroot sata messages.

conf

Code:
bios: ovmf
boot: c
bootdisk: sata0
cores: 8
cpu: kvm64,flags=+aes
efidisk0: local-lvm:vm-100-disk-1,size=4M
hostpci0: 01:00.0,pcie=1,x-vga=1
hostpci1: 01:00.1,pcie=1
hostpci2: 01:00.2,pcie=1
hostpci3: 01:00.3,pcie=1
hostpci4: 00:1b.0
machine: q35
memory: 8192
name: Win10
net0: virtio=5E:63:46:50:DC:CD,bridge=vmbr0,firewall=1
numa: 1
ostype: win10
sata0: /dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S21GNXA123456E,size=488386584K
scsi0: local-lvm:vm-100-disk-0,cache=writeback,size=45G
scsihw: virtio-scsi-pci
smbios1: uuid=fd3c0cd7-21e5-4aac-acbf-f2df368baf08
sockets: 1
usb0: host=046d:c24c,usb3=1
usb1: host=046d:c33b,usb3=1
vga: none
vmgenid: 3cec6797-ce9d-4357-9947-72ae91e6dc49
 
Hmm - my first guess is that the pciroot sata messages are more related to the PCI-devices you're trying to pass through than the sata-disk
* do the issues also occur if you remove the hostpciX lines?

if the issue persists - please post the logs containing the messages

if you passthrough a SATA disk - still attach it as scsi (the controller for accessing it is emulated in both cases and virtio-scsi is far faster than the sata emulation)


I hope this helps!
 
I don't think so, that is my GPU.

Anyway I deleted those entries but no luck. It just doesn't want to boot from my existing Windows install. I tried sata0, scsi5 and virtio. Every time I set the passthrough disk as the boot disk. If I boot from the local-lvm disk I can see and access the passed through Windows disk. I also installed the viostor and vioscsi drivers on the Windows disk I want to pass through. Looks like Proxmox cannot find the boot record?

1605143554563.png


Code:
bios: ovmf
boot: c
bootdisk: sata0
cores: 8
cpu: kvm64,flags=+aes
efidisk0: local-lvm:vm-100-disk-1,size=4M
ide2: local:iso/virtio-win-0.1.185.iso,media=cdrom,size=402812K
machine: q35
memory: 8192
name: Win10
net0: virtio=5E:63:46:50:DC:CD,bridge=vmbr0,firewall=1
numa: 1
ostype: win10
sata0: /dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S21GNXAGA01904E,size=488386584K
scsi0: local-lvm:vm-100-disk-0,cache=writeback,size=45G
scsihw: virtio-scsi-pci
smbios1: uuid=fd3c0cd7-21e5-4aac-acbf-f2df368baf08
sockets: 1
usb0: host=046d:c24c,usb3=1
usb1: host=046d:c33b,usb3=1
vga: vmware
vmgenid: 3cec6797-ce9d-4357-9947-72ae91e6dc49