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
[ruben@flatbush ~]$ 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??
--