Minimal Wired Network VM Design/最小有线网络 VM 设计

最小有线网络 VM 设计

参考论坛和群友的讨论,基于最小化的 debian13-minimal,设计一个用于有线网络和手机 USB 共享网络的最小 VM。

所需软件包

网络支持

所需软件包:

  • qubes-core-agent-networking
  • dhcpcd
  • 可能还需要安装相应的 firmware* 软件包,请根据实际硬件自行确定并安装。

安装命令:

apt install --no-install-recommends qubes-core-agent-networking dhcpcd

安装完成后,将相关网络服务设置为开机自动启动。

手机文件传输与刷机支持

所需软件包:

  • adb
  • fastboot

安装命令:

apt install --no-install-recommends adb fastboot

可选操作

为了进一步减少系统组件和潜在攻击面,可以考虑移除以下软件包:

  • xorg*
  • qubes-gui-agent
  • 其他不需要的图形界面相关组件

移除图形界面相关组件后,在操作 sys-usb 或 sys-usbnet 时,需要打开 Qubes Manager,选中对应的 qube,右键点击 Open console in qube,然后在弹出的 DispVM 终端中执行相关操作。


Minimal Wired Network VM Design

Based on discussions from forums and community groups, this design uses a minimal debian13-minimal installation to create a minimal VM for wired networking and USB tethering through a mobile phone.

Required Packages

Network Support

Required packages:

  • qubes-core-agent-networking
  • dhcpcd
  • The appropriate firmware* packages may also be required. Determine which firmware packages are needed for the actual hardware and install them as necessary.

Install the packages with:

apt install --no-install-recommends qubes-core-agent-networking dhcpcd

After installation, configure the relevant network services to start automatically at boot.

Android File Transfer and Flashing Support

Required packages:

  • adb
  • fastboot

Install the packages with:

apt install --no-install-recommends adb fastboot

Optional Steps

To further reduce the number of system components and minimize the potential attack surface, consider removing the following packages:

  • xorg*
  • qubes-gui-agent
  • Other unnecessary graphical interface components

After removing the graphical interface components, operations involving sys-usb or sys-usbnet require opening Qubes Manager, selecting the corresponding qube, right-clicking it, and choosing Open console in qube. The required commands can then be executed in the terminal of the launched DispVM.