Debian 与 VirtualBox 完全兼容,且是 VirtualBox 上非常流行的 Linux guest 系统之一。
下面分几点说明,方便你快速判断和使用:
在 VirtualBox 中安装 Debian(无论是稳定版 Stable 还是测试版 Testing)基本没有问题,支持:
安装 Debian
Debian desktop environment(GNOME / KDE / XFCE 均可)安装 VirtualBox Guest Additions(增强功能)
sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)
然后在 VirtualBox 菜单:
Devices → Insert Guest Additions CD image
挂载后执行:
sudo sh /media/cdrom/VBoxLinuxAdditions.run
重启后即可使用:
你也可以在 Debian 上安装 VirtualBox 来运行其他系统(Windows、Ubuntu、FreeBSD 等)。
sudo apt update
sudo apt install virtualbox
或使用官方 Oracle 版本(更新更快):
sudo apt install virtualbox-7.0
| 问题 | 说明 |
|---|---|
| 内核更新后增强功能失效 | 重新编译 Guest Additions 或重启 |
| Wayland 下共享剪贴板异常 | 可尝试切换为 X11 |
| 3D 加速不稳定 | 对 Debian 桌面建议关闭 |
| Secure Boot | 可能导致增强功能模块加载失败 |
如果你愿意,可以告诉我:
我可以给你一份 针对你环境的详细安装步骤。