Mass Storage Drive
BliKVM supports USB drive emulation, allowing remote mounting of images for system reinstallation. Additionally, if you need to copy files from the controlled device, BliKVM also provides a command-line method.
Web UI
The entry point for the MSD virtual USB drive is:
Manual (without using Web UI)
/mnt/exec/release/lib/ventoy-1.0.99
/mnt/exec/release/lib/kvmd-msd.sh
/mnt/msd/user
/mnt/msd/ventoy
sudo rw
scp ***.iso blikvm@xxx.xxx.xxx.xxx:/mnt/msd/user/
- If there is only one image file in the /mnt/msd/user path, you can use this command directly.
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c make
- If there is more than one image file in the /mnt/msd/user path, you can specify the file using the following command. xxx.iso represents the image name. The number after -s is the size of the USB drive in GB, which can be modified according to your needs. The string after -n is the USB drive name.
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c make -s 5 -n ventoy -f xxx.iso
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c conn
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c disconn
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c clean
General USB Drive
To transfer general files, note that the file names must be in English, as Chinese characters will appear garbled. The conn, disconn, and clean commands are still valid for general USB drives.
Create a General USB Drive
The number after -s is the size of the general USB drive in GB. The larger the capacity, the longer the creation time. Please set it according to your actual situation. -t must be other.
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c make -s 4 -t other
File Transfer from User Computer ==> KVM ==> Controlled Computer
- First, you need to send the file from the user control computer to the KVM.
scp xxx blikvm@xxxx:/mnt/msd/user/
- Synchronize the file to the controlled computer and connect it.
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c forward
For new content that needs to be transferred from the user computer to the controlled computer, repeat steps 1 and 2.
File Transfer from Controlled Computer ==> KVM ==> User Computer
- First, copy the file to the emulated virtual USB drive on the controlled computer, then execute the following command to copy the file to the /mnt/msd/user/ directory on the KVM.
sudo bash /mnt/exec/release/lib/kvmd-msd.sh -c rever
- Copy the file from the KVM to the user computer.
scp blikvm@xxxx:/mnt/msd/user/* .
Disabling Mass Storage
In rare cases, if the BIOS/UEFI cannot correctly recognize and even refuses to use the USB keyboard and mouse, it may be necessary to disable mass storage emulation.
Edit the enable
field in /mnt/exec/release/config/app.json
to false
, then restart the KVM to disable mass storage emulation.
"msd": {
"enable": true,
"isoFilePath": "/mnt/msd/user",
"shell": "./lib/kvmd-msd.sh",
"stateFilePath": "/mnt/msd/config/msd.json",
"tusPort": 10002
}