0653.html 2.6 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,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. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Passing a Physical Disk Drive to a Proxmox VM</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
  26. <li>Take note of the VM ID that the physical hard disk will be connecting to</li>
  27. <li>Run the following commands
  28. <div class="codeBlock"># list hard disk devices and ids<br />
  29. 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 />
  30. # copy the /dev/disk/by-id.... for the device to passthrough<br />
  31. # add the disk to the VM, update the VM ID as needed<br />
  32. # usage:<br />
  33. # qm set &lt;%VM ID%&gt; -&lt;%VIRTUAL DEVICE%&gt; &lt;%DEV DISK ID%&gt;<br />
  34. qm set 100 -scsi1 /dev/disk/by-id/scsi-360026b902ad1ae00293167790419d3f2</div>
  35. </li>
  36. <li>Stop the VM and Start it fresh for the new configuration change to take effect</li>
  37. <li>Verify inside the guest OS that the physical disk is connected</li>
  38. </ol>
  39. <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>
  40. </div>
  41. </div>
  42. </body>
  43. </html>