1, In the corresponding virtual machine, add a storage medium to the VM in the closed state
2. Select the corresponding directory and specify the file name
3, Find the file name you specified and add it to the virtual machine hard disk
4. Set the corresponding storage device as a stock drive
5. Confirm that the corresponding ssd device has been recognized in the virtual machine
(1) Use the lsblk command to view
root@node2-VirtualBox:~# lsblk -d -o name,rota
NAME ROTA
loop0 1
loop1 1
loop2 1
loop3 1
loop4 1
loop5 1
loop6 1
loop7 1
loop8 1
loop9 1
loop10 1
loop11 1
loop12 1
loop13 1
sda 1
sdb 1
sdc 0
sr0 1
root@node2-VirtualBox:~#
(2) Check whether the disk is a rotating disk
Check to see if the disk is a non-spinning platter. As shown in the figure below, it can be found that sdc is a non-rotating disk
root@node2-VirtualBox:~# cat /sys/block/sdc/queue/rotational
0
root@node2-VirtualBox:~# cat /sys/block/sdb/queue/rotational
1
root@node2-VirtualBox:~#