losetup -f
查看哪个 loop 设置可用
losetup -P /dev/loop4 raspberry.img
挂载 img 文件到 loop4
mount /dev/loop4p1 /mnt/boot
mount /dev/loop4p2 /mnt/data
losetup -f
查看哪个 loop 设置可用
losetup -P /dev/loop4 raspberry.img
挂载 img 文件到 loop4
mount /dev/loop4p1 /mnt/boot
mount /dev/loop4p2 /mnt/data
On Debian/Ubuntu: All of this be easily installed with apt-get
:
sudo apt-get install libsdl2-dev libsdl2-mixer-dev libfreeimage-dev libfreetype6-dev \
libcurl4-openssl-dev rapidjson-dev libasound2-dev libgl1-mesa-dev build-essential \
libboost-all-dev cmake fonts-droid-fallback libvlc-dev libvlccore-dev vlc-bin
Note this Repository uses a git submodule - to checkout the source and all submodules, use
git clone --recursive https://github.com/RetroPie/EmulationStation.git
or
git clone https://github.com/RetroPie/EmulationStation.git
cd EmulationStation
git submodule update --init
Then, generate and build the Makefile with CMake:
cd YourEmulationStationDirectory
cmake .
make
部分内容来自: https://blog.myds.cloud/archives/synoboot-usb-image-in-pve-virtual-machine.html 虚拟机建好之后,打开配置文件 nano /etc/pve/qemu-server/100.conf ...