Cluster - HDD passthrough

les

Member
Sep 29, 2017
6
0
6
69
I created a cluster between two nodes on 2 physical systems (pve1 & pve2). On node pve2, prior to the cluster to pve1, I had a VM running using several HDs passed thru to it.

One of the drives was

virtio0: /dev/disk/by-id/ata-TOSHIBA_DT01ACA200_45L3UL6AS,size=1953514584K

Before I created the cluster, I backed up the VM and removed it. Then I created the cluster and restored the VM. However, it's not seeing the drives that were passed through.

How do I get the drives that I want to passthrough be seen?
 
Hi,

if you backup a VM, what got a disk passthrough.
The Data of the disk will backup.
But at the restore, you create a disk image on selected storage.

So your data now duplicated.
You have to edit the vm.config manual to add the passthrough disk again.
 
When I do the restore, my vm.conf is:

agent: 1
bootdisk: scsi0
cores: 2
ide2: local:iso/FreeNAS-11.2-U7.iso,media=cdrom
memory: 8000
name: freenas
net0: virtio=CE:73:7C:8E:6D:6D,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: pve2_vm_storage:vm-123-disk-0,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=0a6c6e04-2bd2-4a74-8b5a-663bb2112f3f
sockets: 1
#virtio0: /dev/disk/by-id/ata-TOSHIBA_DT01ACA200_45L3UL6AS,size=1953514584K,backup=0
#virtio1: /dev/disk/by-id/ata-WDC_WD20EZRX-00D8PB0_WD-WMC4M2956994,size=1953514584K,backup=0
#virtio2: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J1CB119328,size=1953514584K,backup=0
#virtio3: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J90ZC21421,size=1953514584K,backup=0
#virtio4: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7J90ZC21445,size=1953514584K,backup=0
#virtio5: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2H7JD1B402567,size=1953514584K,backup=0
#virtio6: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2HGJ9EBA02617,size=1953514584K,backup=0
#virtio7: /dev/disk/by-id/ata-SAMSUNG_HD204UI_S2HGJ9EBA02618,size=1953514584K,backup=0
#virtio8: /dev/disk/by-id/ata-ST2000DL004_HD204UI_S2H7J9FC309523,size=1953514584K,backup=0
#virtio9: /dev/disk/by-id/ata-ST2000DL004_HD204UI_S2H7J9FC309532,size=1953514584K,backup=0
vmgenid: 742542b6-ca66-4735-b8f2-a5311d64dc49

I can see the disks when I look under pve2 - Disks. But when I look at the vm - Hardware, these are not showing as they did for the vm before I created the cluster.
 
You have to remove the # in front of the virtio<x> entries.
Then you see the disk in the GUI and the VM should start.
 
Thanks......so simple. I looked right past the #. Works great. Thanks again.