Passing a Physical Disk Drive to a Proxmox VM

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • #ProxMox #VM #Hypervisor #DiskDrive
    Full steps can be found at i12bretro.gith...
    01. Log into ProxMox VE, either at the console or the web UI and launch the web shell
    02. Take note of the VM ID that the physical hard disk will be connecting to
    03. Run the following commands
    list hard disk devices and ids
    lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR≫1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'
    copy the /dev/disk/by-id.... for the device to passthrough
    add the disk to the VM, update the VM ID as needed
    usage:
    qm set ≪%VM ID%≫ -≪%VIRTUAL DEVICE%≫ ≪%DEV DISK ID%≫
    qm set 100 -scsi1 /dev/disk/by-id/scsi-360026b902ad1ae00293167790419d3f2
    04. Stop the VM and Start it fresh for the new configuration change to take effect
    05. Verify inside the guest OS that the physical disk is connected
    Source: pve.proxmox.co...)
    Connect with me and others ###
    ★ Discord: / discord
    ★ Reddit: / i12bretro
    ★ Twitter: / i12bretro

КОМЕНТАРІ • 18

  • @jrbkut
    @jrbkut 11 місяців тому

    Thank you for posting your videos. Huge help!

    • @i12bretro
      @i12bretro  11 місяців тому

      You're welcome, thanks for the comment

  • @gantulgatuvdendorj
    @gantulgatuvdendorj 2 місяці тому

    We can even map Graphic cart to this VM, so no need to use VNC console :)

  • @Armiinad
    @Armiinad Рік тому

    work great without losing data
    thank u bro 👏👏

    • @i12bretro
      @i12bretro  Рік тому +1

      Awesome, glad it was helpful!

  • @UsiddaTech
    @UsiddaTech 2 роки тому +2

    Hey thanks for the video what if I have file in it and don’t want to format it , I just want to add it as a drive like d drive and access all my files

    • @i12bretro
      @i12bretro  2 роки тому +1

      It should work just the same assuming the drive is already formatted in a file system the VM OS can read.

    • @UsiddaTech
      @UsiddaTech 2 роки тому

      @@i12bretro thank you are right it worked I appreciate your videos

    • @i12bretro
      @i12bretro  2 роки тому

      Glad to hear it worked. Thanks for the comments!

    • @UsiddaTech
      @UsiddaTech 2 роки тому

      Quick unrelated question would GTx1080ti gpu pass through work on macos bigsur VM or am I wasting my time

    • @i12bretro
      @i12bretro  2 роки тому +1

      Wasting your time. Here is a really good resource for what GPUs will work with which version of MacOS
      dortania.github.io/GPU-Buyers-Guide/modern-gpus/nvidia-gpu.html#pascal-series-gtx-10xx

  • @henderstech
    @henderstech 2 роки тому

    This is a noob question. I have only started to learn Proxmox and hypervisor in general. How do you get dark theme on Web gui? :D

    • @i12bretro
      @i12bretro  2 роки тому

      It's unofficial, but really good. Here's how you install it ua-cam.com/video/HlfWnkrVFQE/v-deo.html

  • @Champabay
    @Champabay 3 місяці тому

    Keep getting sata6 error

  • @xtremeideaz
    @xtremeideaz 2 роки тому

    Thank you so much. works well on VM.
    How about LXC containers?
    I tried the same method to pass a drive to LXC in proxmox but got the following error:
    Configuration file 'nodes/vira/qemu-server/102.conf' does not exist

    • @i12bretro
      @i12bretro  2 роки тому

      I've never tried with LXC. I'll have to look into it and see

    • @i12bretro
      @i12bretro  2 роки тому

      I haven't had a chance to fully test this, but I believe LXC config files are located in /etc/pve/lxc/