嗨,我想在kvm上安装windows 11。
我的系统上启用了tpm。ubuntu 21.04 (qemu 5.2+dfsg-9 ubuntu3.1)
0 crw-rw-rw- 1 root root 10, 224 Sep 25 18:18 /dev/tpm0
0 crw-rw-rw- 1 tss tss 253, 65536 Sep 25 18:18 /dev/tpmrm0w11 xml文件包含直通代码:
启动vm时,我得到以下错误:
Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2021-09-26T06:28:55.041197Z qemu-system-x86_64: -tpmdev passthrough,id=tpm-tpm0,path=/dev/fdset/3,cancel-path=/dev/fdset/4: '/dev/fdset/3' is not a TPM device.'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2001, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 701, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 649, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File "/usr/lib/python3.9/site-packages/libvirt.py", line 4376, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2021-09-26T06:28:55.041197Z qemu-system-x86_64: -tpmdev passthrough,id=tpm-tpm0,path=/dev/fdset/3,cancel-path=/dev/fdset/4: '/dev/fdset/3' is not a TPM device.任何如何正确地将tpm传递给vm的想法。
谢谢
发布于 2021-10-05 11:59:10
我也遇到过同样的错误。
我参考了下一个网页,发现Apparmor制造了这个问题。
在/dev/tpm0 rw, (注意到,)之前,我在/etc/parmor.d/ and /libvirt中添加了D2,并重新启动了D2。错误对话框将不会显示。
我希望这能帮上忙。
参考下面是升级到Windows11 https://arstechnica.com/gadgets/2021/06/heres-what-youll-need-to-upgrade-to-windows-11/?utm_brand=arstechnica&utm_source=twitter&utm_社会类型=拥有和拥有_medium=social所需的内容
https://askubuntu.com/questions/1365829
复制相似问题