does proxmox have something like esxi raw mapped disk?

BrianHawley

New Member
Nov 20, 2024
2
0
1
i am in need of passing FC luns directly through to vm guests. In vmware we would use a scsi controller with physical bus settings (for sharing) and map the raw disk directly into the guest.

is there anything similar to this in proxmox?
 
Hi @BrianHawley , you can try to do so with "qm set" command
--scsi[n] [file=]<volume>
(man qm)

You'd point the <volume" to raw physical path on the hypervisor. Note, that this is not a widely used solution, perhaps even not supported one. Presumably, you'd want to be able to migrate this VM across nodes - I am not sure how well it would work in conjunction with a direct LUN. It's up to you to test this.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Johannes S
I use this from time to time and it works great. Easiest way to use in my experience is to use SATA emulation, so instead of scsi0, I use sata1. Here is the full configuration of my "template" (not really a template, yet I change settings depending on the use case) VM for that:

Code:
root@proxmox /etc/pve/qemu-server > cat 107.conf
#Disk-Passthrough
balloon: 0
bios: ovmf
boot: order=sata1;ide2
cores: 2
cpu: host
efidisk0: local-zfs:vm-107-disk-1,efitype=4m,pre-enrolled-keys=1,size=1M
ide2: none,media=cdrom
machine: q35
memory: 2048
name: passthrough
net0: virtio=B2:2C:DB:92:8D:81,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata1: /dev/sdc
scsihw: virtio-scsi-pci
sockets: 1

You need to get the correct device name, e.g. with lsscsi (which needs to be installed manually).

In the end I find this MUCH MUCH easier than fiddling around with VMware (or VBox) container format. If you want to fiddle around with it with QEMU, you can create a container qcow2 image as an overlay as well. This could in theory (haven't tried yet) also be used to create a snapshottable image of your passthough device, in which you can try out stuff and then merge to the backing device.
 
  • Like
Reactions: Johannes S