PVE hard disk for the virtual machine passthrough

https://www.jianshu.com/p/ea8fc63025dc

You now see the serial number of storage devices:

ls /dev/disk/by-id

Then you can see the serial numbers of all storage devices

 

Then enter the following code (please replace your hard disk drive serial number, and 100 into your LEDE virtual machine ID)

qm set 100 -sata1 /dev/disk/by-id/ata-WDC_WDXXXX_XXXX_XXXX

If it returns the following message, indicating that it has successfully mounted

update VM 100: -sata1 /dev/disk/by-id/ata-WDC_WDXXXX_XXXX_XXXX

You can then enter PVE management page to see if really mount a success. If you see LEDE virtual machine hardware devices have this, it shows successful.



Author: Borcol
link: https: //www.jianshu.com/p/ea8fc63025dc
Source: Jane book
Jane book copyright reserved by the authors, are reproduced in any form, please contact the author to obtain authorization and indicate the source.

Guess you like

Origin www.cnblogs.com/misstaste/p/11128079.html