How to fix virt-install error on Ubuntu 20.04 Hosts?

1.5k Views Asked by At

i would need help on a problem installing guests on my 20.04 Hosts.

DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
virtinst                             1:2.2.1-3ubuntu2
python3                              3.8.2-0ubuntu2
python-is-python3                    3.8.2-4
python3-distutils                    3.8.2-1ubuntu1
python3-libvirt                      6.1.0-1
libvirt-daemon-system                6.0.0-0ubuntu8.4
qemu-kvm                             1:4.2-3ubuntu6.6

root@machine20:~# which python
/usr/bin/python 
root@machine20:~# ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Apr 15 12:45 /usr/bin/python -> python3



root@machine20:~# /usr/bin/virt-install --name mvmubu18 --vcpus 2 --memory 4096 --network network=virbrapp,trustGuestRxFilters=yes,model=virtio --mac ae:20:18:10:08:0a --noautoconsole --wait -1 --location http://install/installer-ubuntu1804-amd64/ --disk path=/srv/images/18.04/ubu18_root.img,size=20,format=raw '--extra-args=locale=en_US auto=true priority=critical s390-netdevice/choose_networktype=virtio netcfg/use_autoconfig=true netcfg/disable_dhcp=false network-console/start=true url=http://install/preseeds/mustervm-bionic.seed'
ERROR    '>=' not supported between instances of 'NoneType' and 'str'

It seems that the error message is caused by the --location http://... parameter. If I use --boot cdrom,hd for example, the command works as expected.

Thank you

1

There are 1 best solutions below

0
On BEST ANSWER

FYI:

It seems that there is an issue with directory structures. Please see: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1872941

However, this is still present in the currently available focal/universe packages: virt-manager 1:2.2.1-3ubuntu2

If you run into this issue, like I did, the upstream version is what you're looking for. See also: https://github.com/virt-manager/virt-manager/issues/171