Unable to complete install: 'internal error: qemu

Hello, I’m trying to install haos_ova-11.4.qcow2 on a KVM (virt-manager).
I complete the steps as per HYPERVISOR SPECIFIC CONFIGURATION → KVM (virt-manager).
Error:
Unable to complete install: ‘internal error: qemu unexpectedly closed the monitor: 2024-02-05T09:39:06.570983Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=org.qemu.guest_agent. 0: virtio-serial-bus: A port already exists by name org.qemu.guest_agent.0’

Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2024-02-05T09:39:06.570983Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=org.qemu.guest_agent.0: virtio-serial-bus: A port already exists by name org.qemu.guest_agent.0'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 4400, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2024-02-05T09:39:06.570983Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=org.qemu.guest_agent.0: virtio-serial-bus: A port already exists by name org.qemu.guest_agent.0

Try this guide: 3. HAOS - Install OS - Habitats Open Tech

1 Like

I think I fixed it with this by skipping steps 7., 8. and 9. on the KVM (virt-manager) Home Assistant guide.
Skip adding hardware, as Channel qemu-ga is already in KVM. Adding Channel qemu-ga again generates the error: Unable to complete install: 'internal error: qemu
select Add Hardware button (hidden so drag top of window and then pull up window) → There have been changes, would you like to save: select Yes →

I think your suggestions is Terminal CLI to install a VMM and KVM and OS, however I already have an OS running a VMM.
BTW, very nice interactive graph. Trying to set this up myself.

Although when I run the Home Assistant 11.4 KVM, I now can’t proceed past these 2 strange screens?


Solved with the help of some other Linux experts.

Linux Mint 21.3 Virginia Cinnamon;
VMM 4.0.0;
Home Assistant 11.5.

Until the Home Assistant team update the guide, please consider this the correct Home Assistant install steps as of 202402061200:
Linux Mint 21.3 Virginia Cinnamon → Browser → Home Assistant → select Menu → select Installation → Installation - Home Assistant → select INSTALL HOME ASSISTANT ON LINUX (near bottom of webpage) → select KVM (.qcow2) → Download the appropriate image: haos_ova-11.5.qcow2.xz → Downloads folder: extract haos_ova-11.5.qcow2.xz select Save → Linux - Home Assistant: HYPERVISOR SPECIFIC CONFIGURATION: select KVM (virt-manager) →

Linux Mint 21.3 Virginia Cinnamon → Hypervisor VMM 4.0.0: Create a new virtual machine → Choose how you would like to install the operating system: select Import existing image → select Forward → Create a new virtual machine → Provide the existing storage path: select Browse… → select Browse Local → select ~/Downloads/haos_ova-11.5.qcow2 → select Open → Choose the operating system you are installing: select Type to start searching → type generic → select Generic Linux 2020 (Generic Linux 2022 causes error below) → select Forward → Create a new virtual machine → Memory: enter 2048 → CPUs: 2 → select Forward → Create a new virtual machine → Name: enter HomeAssistant → OS: Generic Linux 2020 → Install: Import existing OS image → Memory: 2048 MiB → CPUs: 2 → Storage: …tu/Downloads/haos_ova-10.5.qcow2 → tick Customise configuration before install → select Network selection → Bridge device… → Device name: br0 → Finish → Overview → Details → Hypervisor Details → Firmware: BIOS: select down arrow → select UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.fd → skip website Home Assistant KVM virt-manager guide steps 7-9 → select Apply (hidden so drag down top of window and then pull up window) → select Begin installation → once complete, follow the link to Home Assistant URL: http://homeassistant.local:8123.

Skip adding hardware, as Channel qemu-ga is already in KVM. Adding Channel qemu-ga again generates the error: Unable to complete install: 'internal error: qemu

select Add Hardware button (hidden so drag top of window and then pull up window) → There have been changes, would you like to save: select Yes.

This causes error:

Unable to complete install: ‘internal error: qemu unexpectedly closed the monitor: 2024-02-05T09:39:06.570983Z qemu-system-x86_64: -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=org.qemu.guest_agent. 0: virtio-serial-bus: A port already exists by name org.qemu.guest_agent.0’