Proxmox6.1 args相关 spice连接虚拟机 只读模式启动等

开启无敌模式,以快照方式启动,关机后开机会被还原
cat /etc/pve/qemu-server/190.conf
args:-snapshot

web界面中把虚拟机的“硬件”-“显示”设置“qxl”
修改/etc/pve/qemu-server/ 下的配置文件
echo "args: -spice ‘port=8101,disable-ticketing,seamless-migration=on,addr=0.0.0.0′
" >> /etc/pve/qemu-server/131.conf

args: -spice ‘port=9131,password=000000,seamless-migration=on,addr=0.0.0.0′
" >> /etc/pve/qemu-server/131.conf

addr=0.0.0.0容许网段
seamless-migration=on,password=12345’
seamless-migration=on QMP支持
password=xxxx,可以进行密码验证
disable-ticketing参数可以去掉密码验证

使用virt-viewer连接
remote-viewer spice://10.104.1.233:8101 –spice-usbredir-auto-redirect-filter="-1,0x24ae,-1,-1,0|-1,0x1c4f,-1,-1,0|-1,-1,-1,-1,1″ –spice-usbredir-redirect-on-connect="-1,0x24ae,-1,-1,0|-1,0x1c4f,-1,-1,0|-1,-1,-1,-1,1″ -f

其中-f 全屏
spice-usbredir-auto-redirect-filter 筛选插入的usb设备是否能不用勾选自动重定向到虚拟机内
spice-usbredir-redirect-on-connect 筛选spice-channel连接的时候是否能自动重定向已经插在物理机上的usb设备

usb acl
,,,,
<类> <供应商>,<产品>,<版本>,允许>
lsusb 标识转换
bus 003 device 003: ID 24ae:2010 其中24ae转换为 0x24ae 放在供应商哪里
USB内容参考

https://www.spice-space.org/usbredir.html

https://blog.csdn.net/FlayHigherGT/article/details/89332051

本篇發表於 未分類。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>