123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Passing a Physical Disk Drive to a Proxmox VM</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <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">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Passing a Physical Disk Drive to a Proxmox VM">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="07/24/2024 09:14:10 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Passing a Physical Disk Drive to a Proxmox VM</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
- <li>Take note of the VM ID that the physical hard disk will be connecting to</li>
- <li>Run the following commands
- <div class="codeBlock"># list hard disk devices and ids<br />
- 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'<br />
- # copy the /dev/disk/by-id.... for the device to passthrough<br />
- # add the disk to the VM, update the VM ID as needed<br />
- # usage:<br />
- # qm set <%VM ID%> -<%VIRTUAL DEVICE%> <%DEV DISK ID%><br />
- qm set 100 -scsi1 /dev/disk/by-id/scsi-360026b902ad1ae00293167790419d3f2</div>
- </li>
- <li>Stop the VM and Start it fresh for the new configuration change to take effect</li>
- <li>Verify inside the guest OS that the physical disk is connected</li>
- </ol>
- <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>
- </div>
- </body>
- </html>
-
|