Skip to the content.

基本使用注意

几个启动模式的说明

systemd 后台任务检查

启用 systemd backend:

echo systemd > ~/.config/collei/task_backend

普通 VM 主进程使用 user unit 名 collei-vm-<vm-name>.service。例如 yyds-fs 对应:

systemctl --user status collei-vm-yyds-fs.service
journalctl --user -u collei-vm-yyds-fs.service -o cat
journalctl --user -u collei-vm-yyds-fs.service -f -o cat

也可以继续使用 collei action,它会读取 VM 目录中记录的 backend 和 task id:

./collei/scripts/collei-action.py -a log -n yyds-fs
./collei/scripts/collei-action.py -a follow_log -n yyds-fs

辅助进程如 novncvirtiofsdswtpmqsd 使用 collei-<label>-<vm-name>-<suffix>.service 形式的 transient unit,可用:

systemctl --user list-units 'collei-*'
journalctl --user -u 'collei-*' -o cat

本地热迁移会同时存在两个 QEMU。source s 继续使用 collei-vm-<vm-name>.service,target t 使用 collei-vm-<vm-name>-t.service,例如:

systemctl --user list-units 'collei-vm-yyds-collei*'
systemctl --user status collei-vm-yyds-collei.service
systemctl --user status collei-vm-yyds-collei-t.service

清理失败状态:

./collei/scripts/collei-global.py -a clean

VFIO 设备驱动切换

vfio.py 可以直接查看设备驱动、绑定 vfio-pci,或恢复绑定前的默认驱动:

./collei/scripts/vfio.py status 0000:02:00.0
./collei/scripts/vfio.py bind 0000:02:00.0
./collei/scripts/vfio.py unbind 0000:02:00.0
./collei/scripts/vfio.py default 0000:02:00.0

unbind 只从当前驱动解绑,不会自动探测或绑定其他驱动,可用于修改 IOMMU domain type。default 也可写成 restore。绑定 VFIO 时会记录原驱动;如果没有记录,则通过 PCI modalias 解析默认驱动。必要时可以用 default BDF --driver DRIVER 明确指定。

给浏览器的配置

^https?://10\.0\..*\..*:.*/

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。