Skip to main content
Topic: virish and virt-manager fails to install domains/images/whatever (Read 69 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

virish and virt-manager fails to install domains/images/whatever

I am desperately trying to install a specific virtual image for a simple
webserver development project, and it just will not install.  I'm
following arch instruction and trying to install with a openSUSE
installation disk onto a img file that I created under /home/ruben/vm

With debugging turned on, I get this long, yet not, for me, not
understandable message

Code: [Select]
[[email protected] ~]$ virt-install -d --name platform1 --memory 4096
--vcpus=2,maxvcpus=2        --cpu host --cdrom
/home/ruben/Downloads/openSUSE-Leap-15.1-DVD-x86_64.iso   --disk
/home/ruben/vm/platform1.img    --network bridge=br0   --virt-type kvm
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:208) Launched
with command line: /usr/share/virt-manager/virt-install -d --name
platform1 --memory 4096 --vcpus=2,maxvcpus=2 --cpu host --cdrom
/home/ruben/Downloads/openSUSE-Leap-15.1-DVD-x86_64.iso --disk
/home/ruben/vm/platform1.img --network bridge=br0 --virt-type kvm
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (virt-install:207)
Distilled --network options: ['bridge=br0']
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (virt-install:139)
Distilled --disk options: ['/home/ruben/vm/platform1.img']
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:224) Requesting
libvirt URI default
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:227) Received
libvirt URI qemu:///session
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (guest:463) Setting
Guest osinfo name <_OsVariant name=generic>
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (installer:398)
installer.detect_distro returned=opensuse15.1
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (guest:463) Setting
Guest osinfo name <_OsVariant name=opensuse15.1>
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (osdict:325) No
recommended value found for key='n-cpus', using minimum=1 * 2
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (graphics:221) Using
default_graphics=spice
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (graphics:232) Local
connection, disabling spice image compression.
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (virt-install:647)
Guest.has_install_phase: True
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:272)
Starting install...
Starting install...
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (installer:441)
Generated install XML:
<domain type="kvm">
  <name>platform1</name>
  <uuid>55a81ee1-a76b-440a-9475-f46dff547f90</uuid>
  <metadata>
    <libosinfo:libosinfo
xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://opensuse.org/opensuse/15.1"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory>4194304</memory>
  <currentMemory>4194304</currentMemory>
  <vcpu current="2">2</vcpu>
  <os>
    <type arch="x86_64" machine="q35">hvm</type>
    <boot dev="cdrom"/>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state="off"/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_reboot>destroy</on_reboot>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
</pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/home/ruben/vm/platform1.img"/>
      <target dev="vda" bus="virtio"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source
file="/home/ruben/Downloads/openSUSE-Leap-15.1-DVD-x86_64.iso"/>
      <target dev="sda" bus="sata"/>
      <readonly/>
    </disk>
    <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
    <interface type="bridge">
      <source bridge="br0"/>
      <mac address="52:54:00:d6:fa:bc"/>
      <model type="virtio"/>
    </interface>
    <console type="pty"/>
    <channel type="unix">
      <source mode="bind"/>
      <target type="virtio" name="org.qemu.guest_agent.0"/>
    </channel>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <input type="tablet" bus="usb"/>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>
    <sound model="ich9"/>
    <video>
      <model type="qxl"/>
    </video>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="spicevmc"/>
    <memballoon model="virtio"/>
    <rng model="virtio">
      <backend model="random">/dev/urandom</backend>
    </rng>
  </devices>
</domain>

[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (installer:443)
Generated boot XML:
<domain type="kvm">
  <name>platform1</name>
  <uuid>55a81ee1-a76b-440a-9475-f46dff547f90</uuid>
  <metadata>
    <libosinfo:libosinfo
xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://opensuse.org/opensuse/15.1"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory>4194304</memory>
  <currentMemory>4194304</currentMemory>
  <vcpu current="2">2</vcpu>
  <os>
    <type arch="x86_64" machine="q35">hvm</type>
    <boot dev="hd"/>
 </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state="off"/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/home/ruben/vm/platform1.img"/>
      <target dev="vda" bus="virtio"/>
    </disk>
    <disk type="file" device="cdrom">
      <target dev="sda" bus="sata"/>
      <readonly/>
    </disk>
    <controller type="usb" index="0" model="qemu-xhci" ports="15"/>
    <interface type="bridge">
      <source bridge="br0"/>
      <mac address="52:54:00:d6:fa:bc"/>
      <model type="virtio"/>
    </interface>
    <console type="pty"/>
    <channel type="unix">
      <source mode="bind"/>
      <target type="virtio" name="org.qemu.guest_agent.0"/>
    </channel>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <input type="tablet" bus="usb"/>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>
    <sound model="ich9"/>
    <video>
      <model type="qxl"/>
    </video>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="spicevmc"/>
    <memballoon model="virtio"/>
    <rng model="virtio">
      <backend model="random">/dev/urandom</backend>
    </rng>
  </devices>
</domain>

[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:263)   File
"/usr/share/virt-manager/virt-install", line 1005, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 999, in main
    start_install(guest, installer, options)
  File "/usr/share/virt-manager/virt-install", line 686, in start_install
    fail(e, do_exit=False)
  File "/usr/share/virt-manager/virtinst/cli.py", line 263, in fail
    log.debug("".join(traceback.format_stack()))

[Sun, 24 Nov 2019 21:50:02 virt-install 5345] ERROR (cli:264) <built-in
function virDomainCreateXML> returned a result with an error set
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:266)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position
155: invalid start byte

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 657, in start_install
    domain = installer.start_install(guest, meter=meter,
  File "/usr/share/virt-manager/virtinst/install/installer.py", line
542, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line
491, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3.8/site-packages/libvirt.py", line 3927, in
createXML
    ret = libvirtmod.virDomainCreateXML(self._o, xmlDesc, flags)
SystemError: <built-in function virDomainCreateXML> returned a result
with an error set
[Sun, 24 Nov 2019 21:50:02 virt-install 5345] DEBUG (cli:278) Domain
installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///session start platform1
otherwise, please restart your installation.





What the heck am I doing wrong??
--

Re: virish and virt-manager fails to install domains/images/whatever

Reply #1
If I try vva virt-manager I get nearly the same folls erand

Code: [Select]

Unable to complete install: 'internal error: child reported (status=125): Unable to get host boot time: No such process'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2089, in _do_async_install
    guest.installer_instance.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 542, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 491, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3.8/site-packages/libvirt.py", line 3928, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: internal error: child reported (status=125): Unable to get host boot time: No such process


Re: virish and virt-manager fails to install domains/images/whatever

Reply #2
The AUR was down because of issues due to upgrading to Python 3.8. Perhaps there are some deprecations in the latest version of Python that are affecting this?

Re: virish and virt-manager fails to install domains/images/whatever

Reply #3
I'm glad I'm not the only one having this issue. I've been having it a while before the AUR went down, and have been using virtualbox in the meantime.

EDIT: I did a bit more digging, and it turns out this is an upstream issue effecting void and slackware as well. The issue was already reported, and a temporary solution was provided. You need to disable remember_owner in /etc/libvirt/qemu.conf, and then restart libvirtd. Unfortunately, this doesn't fix virt-manager not being able to detect UEFI through ovmf. Before you ask, I followed the directions straight from the arch wiki on enabling UEFI.