aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/compatibility/windows/vm.md100
1 files changed, 97 insertions, 3 deletions
diff --git a/docs/compatibility/windows/vm.md b/docs/compatibility/windows/vm.md
index 894832c..d3b1679 100644
--- a/docs/compatibility/windows/vm.md
+++ b/docs/compatibility/windows/vm.md
@@ -83,17 +83,111 @@ qemu-system-x86_64 \ # 指定为x86_64的模拟
### 安装
-Debian系:
+#### Debian 系
+
+##### 其他 Debian 系发行版
+
```bash
sudo apt install virtualbox
```
-红帽系:
+##### Debian 13 "Trixie" / 12 "Bookworm"
+
+VirtualBox 的软件包并未正式包含在 Debian 的稳定版本中。然而,Debian Fast Track 会以“滚动更新”的方式向 Debian 稳定版用户提供 VirtualBox。
+
+要安装 VirtualBox,先启用 Debian Backports 源和 Debian Fast Track 源。
+
+用喜欢的文本编辑器创建并编辑 `/etc/apt/sources.list.d/debian-backports.sources` 文件,这里示例 GNU nano 。
+
+```bash
+sudo nano /etc/apt/sources.list.d/debian-backports.sources
+```
+
+输入以下内容:
+
+- **Debian GNU/Linux 13 "Trixie"**
+ ```
+ Types: deb deb-src
+ URIs: http://deb.debian.org/debian
+ Suites: trixie-backports
+ Components: main contrib non-free non-free-firmware
+ Enabled: yes
+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
+ ```
+
+- **Debian GNU/Linux 12 "Bookworm"**
+ ```
+ Types: deb deb-src
+ URIs: http://deb.debian.org/debian
+ Suites: bookworm-backports bookworm-backports-sloppy
+ Components: main contrib non-free non-free-firmware
+ Enabled: yes
+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
+ ```
+
+再创建并编辑 `/etc/apt/sources.list.d/fasttrack.sources` 文件,这里示例 GNU nano 。
+
+```bash
+sudo nano /etc/apt/sources.list.d/fasttrack.sources
+```
+
+输入以下内容:
+
+- **Debian GNU/Linux 13 "Trixie"**
+ ```
+ Types: deb deb-src
+ URIs: https://fasttrack.debian.net/debian-fasttrack
+ Suites: trixie-fasttrack trixie-backports-staging
+ Components: main contrib non-free
+ Signed-By: /usr/share/keyrings/fasttrack-archive-keyring.gpg
+ ```
+
+- **Debian GNU/Linux 12 "Bookworm"**
+ ```
+ Types: deb deb-src
+ URIs: https://fasttrack.debian.net/debian-fasttrack
+ Suites: bookworm-fasttrack bookworm-backports-staging
+ Components: main contrib non-free
+ Signed-By: /etc/apt/trusted.gpg.d/fasttrack-archive-keyring.gpg
+ ```
+
+还需要安装 Fast Track 的签名验证文件:
+```bash
+sudo apt install fasttrack-archive-keyring
+```
+
+VirtualBox 使用*树外*内核模组来完成虚拟化。为了编译 VirtualBox 内核模组,需要安装内核的头文件(header)。
+
+```bash
+sudo apt install linux-headers-generic
+```
+
+最后,安装 VirtualBox 。
+```bash
+sudo apt update
+sudo apt install virtualbox
+```
+
+???+ note "如果出现了依赖冲突..."
+ 指定从 Backports 源安装依赖:
+
+ - **Debian GNU/Linux 13 "Trixie"**
+ ```bash
+ sudo apt install -t trixie-backports virtualbox
+ ```
+
+ - **Debian GNU/Linux 12 "Bookworm"**
+ ```bash
+ sudo apt install -t bookworm-backports-staging virtualbox
+ ```
+
+
+#### 红帽系
```bash
sudo dnf install virtualbox
```
-Arch系:
+#### Arch 系
```bash
sudo pacman -S virtualbox
```