VMM

Hi, I'm trying to install on Win 11 on a VM using VMM, but keep encountering this error when trying to start up the setup process. Unable to complete install: 'can't connect to virtlogd: Unable to open file: /var/log/libvirt/qemu/win11.log: Permission denied' Any help on this would be great
8 Replies
Spooky Mulder
Spooky MulderOP•2w ago
Here's the log... Unable to complete install: 'can't connect to virtlogd: Unable to open file: /var/log/libvirt/qemu/win11.log: Permission denied' Traceback (most recent call last): File "/app/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper callback(asyncjob, *args, kwargs) File "/app/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install installer.start_install(guest, meter=meter) File "/app/share/virt-manager/virtinst/install/installer.py", line 726, in start_install domain = self._create_guest( ^^^^^^^^^^^^^^^^^^^ File "/app/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest domain = self.conn.createXML(initial_xml or final_xml, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML raise libvirtError('virDomainCreateXML() failed') libvirt.libvirtError: can't connect to virtlogd: Unable to open file: /var/log/libvirt/qemu/win11.log: Permission denied**
HikariKnight
HikariKnight•2w ago
sudo restorecon -r /var/log/libvirt if the directory does not exist yet, make it and re-run the command
Spooky Mulder
Spooky MulderOP•2w ago
Hi, thanks for the quick response 🙂 That folder exists & ran that command now getting this; Unable to complete install: 'internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/win11-swtpm.log' for details.' Traceback (most recent call last): File "/app/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/app/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install installer.start_install(guest, meter=meter) File "/app/share/virt-manager/virtinst/install/installer.py", line 726, in start_install domain = self._create_guest( ^^^^^^^^^^^^^^^^^^^ File "/app/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest domain = self.conn.createXML(initial_xml or final_xml, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML raise libvirtError('virDomainCreateXML() failed') libvirt.libvirtError: internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/win11-swtpm.log' for details.
HikariKnight
HikariKnight•2w ago
sudo mkdir /var/lib/swtpm-localca
sudo chown tss /var/lib/swtpm-localca
sudo mkdir /var/lib/swtpm-localca
sudo chown tss /var/lib/swtpm-localca
fix is already in a PR but needs to be merged iirc
Spooky Mulder
Spooky MulderOP•2w ago
Perfect that was it Thank you
Sean.exe
Sean.exe•3d ago
@HikariKnight Sorry to summon you back here, but I'm getting this exact same error trying to do the same thing. Following the same steps hasn't solved it for me though.
HikariKnight
HikariKnight•3d ago
update the system and re-run ujust setup-virtualization and enable virtualization
Sean.exe
Sean.exe•3d ago
Okay. This will take a minute or two. It looks like it's working. Thanks a bunch!

Did you find this page helpful?