0653.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Passing a Physical Disk Drive to a Proxmox VM</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Proxmox Add Physical Storage,Proxmox VE,Proxmox Add Storage,Proxmox Hardware Passthrough,Proxmox,Hypervisor,VM,Virtual Machine,Hard Disk,Passthrough,Hard Drive,HDD,SSD,Windows,Storage,Home Lab,Home Lab Ideas,Virtualization,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Passing a Physical Disk Drive to a Proxmox VM">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="07/24/2024 09:14:10 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Passing a Physical Disk Drive to a Proxmox VM</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
  27. <li>Take note of the VM ID that the physical hard disk will be connecting to</li>
  28. <li>Run the following commands
  29. <div class="codeBlock"># list hard disk devices and ids<br />
  30. lsblk |awk &#39;NR==1{print $0&quot; DEVICE-ID(S)&quot;}NR&gt;1{dev=$1;printf $0&quot; &quot;;system(&quot;find /dev/disk/by-id -lname \&quot;*&quot;dev&quot;\&quot; -printf \&quot; %p\&quot;&quot;);print &quot;&quot;;}&#39;|grep -v -E &#39;part|lvm&#39;<br />
  31. # copy the /dev/disk/by-id.... for the device to passthrough<br />
  32. # add the disk to the VM, update the VM ID as needed<br />
  33. # usage:<br />
  34. # qm set &lt;%VM ID%&gt; -&lt;%VIRTUAL DEVICE%&gt; &lt;%DEV DISK ID%&gt;<br />
  35. qm set 100 -scsi1 /dev/disk/by-id/scsi-360026b902ad1ae00293167790419d3f2</div>
  36. </li>
  37. <li>Stop the VM and Start it fresh for the new configuration change to take effect</li>
  38. <li>Verify inside the guest OS that the physical disk is connected</li>
  39. </ol>
  40. <p>Source: <a href="https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)" target="_blank">https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)</a></p> </div>
  41. </div>
  42. </body>
  43. </html>