Passthrough a Libredrive drive to a VM (proxmox)

Discussion of LibreDrive mode, compatible drives and firmwares
Post Reply
QuillzToxic
Posts: 5
Joined: Fri Jan 25, 2019 8:37 pm

Passthrough a Libredrive drive to a VM (proxmox)

Post by QuillzToxic »

Hi,

I'm currently trying to get out of the not exactly good situation of running applications on the proxmox host and passing through my Libredrive bluray player to a VM with a gui running makemkv.

I've tried using iscsi with this https://forum.proxmox.com/threads/a-sim ... ved.47541/ and this tutorial to no success with this as a result
Image.

I've also tried using a this https://tinyurl.com/2m4yc2zw pci-e sata controller to passthrough, and have since sent it back. I'm not sure if anyone has had success with this? I could try another sata card? I could try USB passthrough?
Billycar11
Posts: 4177
Joined: Sun Aug 24, 2014 5:49 am

Re: Passthrough a Libredrive drive to a VM (proxmox)

Post by Billycar11 »

USB would probably be the easiest you may have to pass the whole controller through but it should work
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com
summer600
Posts: 1
Joined: Sat Oct 29, 2022 1:53 pm

Re: Passthrough a Libredrive drive to a VM (proxmox)

Post by summer600 »

It's an older post, but I am doing the exact same thing. I have an external Blu-ray player connected to my proxmox server that is USB forwarded into a windows 11 VM. In proxmox go to the VM and the hardware menu. Add a USB device and (with the Blu-ray player connected) select it from the options. I choose to forward the USB port, but you could also choose the device so only that device connected to the port is forwarded.

It worked very well, but ince a few weeks I am starting to have problems. Not sure whether it is proxmox, windows 11 of makemkv, but somehow I suspect windows 11 since both proxmox and makemkv were not updated in that timeframe. Now after 1 disk copy the device simply disappears (even in windows develice manager) and most of the time (but not always) unplugging the device an plugging it in again makes it reappear in windows. I also have to restart makemkv since it does not detect the added device once it has lost that same device previously.

I still have to create a linux vm to forward to that and see whether the problem disappears and I can conclusively say it was windows.
Black Speedy
Posts: 6
Joined: Sat Dec 09, 2023 6:33 pm

Re: Passthrough a Libredrive drive to a VM (proxmox)

Post by Black Speedy »

This is late but I recently tried to pass a blu-ray drive through proxmox and I found a post online that got it working. After some hours work I also got it to work. It is working a bit slower than if it was running on bare metal (instead of x6 my lg bu40n maxes out at x4-x5 it seems)

This is the post:
https://forum.proxmox.com/threads/how-t ... gh.111505/

I had to make some changes in order to get it to run above 15kb/s which was for I/O.

This is my .conf file in proxmox for my ubuntu VM (Sorry for the snapshots, I'm not sure whether I can just remove them):
  • Original without blu-ray drive:

    Code: Select all

    agent: 1
    boot: order=scsi0;net0
    cores: 2
    cpu: x86-64-v2-AES
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    parent: MakeMKV_Installed
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,iothread=1,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    
    [AfterInstall]
    agent: 1
    boot: order=scsi0;ide2;net0
    cores: 2
    cpu: x86-64-v2-AES
    ide2: /dev/sr0,media=cdrom
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    runningcpu: qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4>
    runningmachine: pc-i440fx-8.1+pve0
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,iothread=1,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    snaptime: 1721671990
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    vmstate: LogsNMetadata:102/vm-102-state-AfterInstall.raw
    
    [MakeMKV_Installed]
    agent: 1
    boot: order=scsi0;ide2;net0
    cores: 2
    cpu: x86-64-v2-AES
    ide2: /dev/sr0,media=cdrom
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    parent: AfterInstall
    runningcpu: qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4>
    runningmachine: pc-i440fx-8.1+pve0
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,iothread=1,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    snaptime: 1721676814
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    vmstate: LogsNMetadata:102/vm-102-state-MakeMKV_Installed.raw
  • Including blu-ray drive:

    Code: Select all

    agent: 1
    boot: order=scsi0;net0
    cores: 2
    cpu: x86-64-v2-AES
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    parent: MakeMKV_Installed
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,cache=writeback,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    args: -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x4 -drive file=/dev/sg0,if=none,format=raw,id=drive-hostdev0,readonly=on -device scsi-generic,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0
    
    [AfterInstall]
    agent: 1
    boot: order=scsi0;ide2;net0
    cores: 2
    cpu: x86-64-v2-AES
    ide2: /dev/sr0,media=cdrom
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    runningcpu: qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4.2>
    runningmachine: pc-i440fx-8.1+pve0
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,cache=writeback,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    snaptime: 1721671990
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    vmstate: LogsNMetadata:102/vm-102-state-AfterInstall.raw
    
    [MakeMKV_Installed]
    agent: 1
    boot: order=scsi0;ide2;net0
    cores: 2
    cpu: x86-64-v2-AES
    ide2: /dev/sr0,media=cdrom
    memory: 3072
    meta: creation-qemu=8.1.5,ctime=1721670665
    name: MakeMKV
    net0: virtio=BC:24:11:69:01:89,bridge=vmbr0,firewall=1
    numa: 0
    ostype: l26
    parent: AfterInstall
    runningcpu: qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4.2>
    runningmachine: pc-i440fx-8.1+pve0
    scsi0: LogsNMetadata:102/vm-102-disk-0.qcow2,size=10G
    scsihw: virtio-scsi-single
    smbios1: uuid=2e7eb407-85b1-4116-9b72-3abc2dba05fa
    snaptime: 1721676814
    sockets: 1
    vga: qxl
    vmgenid: c670e0ed-a8df-4a12-8067-a8f3e0f0f835
    vmstate: LogsNMetadata:102/vm-102-state-MakeMKV_Installed.raw
Post Reply