better makebuildserver libvirt error reporting
Tl;dr: We need to test if vagrant up --provider=libvirt
can succeed at all and report an error appropiately.
found 'vmx' or 'svm' in /proc/cpuinfo -> hwvirtex = 'on'
build vm provider 'libvirt' selected
vm uuid is None
Halting /home/mhoffmann/projects/oss/fdroidserver/buildserver
Server configuration has changed, rebuild from scratch is required
destroying vm 'buildserver_default'
==> default: VM not created. Moving on...
==> default: VM not created. Moving on...
vagrant destroy completed
deleted vagrant dir: /home/mhoffmann/projects/oss/fdroidserver/buildserver/.vagrant
vagrant global-status --prune
id name provider state directory
--------------------------------------------------------------------
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.
virsh -c qemu:///system destroy buildserver_default
error: failed to get domain 'buildserver_default'
error: Domain not found: no domain with matching name 'buildserver_default'
could not force libvirt domain 'buildserver_default' off: Command '('virsh', '-c', 'qemu:///system', 'destroy', 'buildserver_default')' returned non-zero exit status 1.
virsh -c qemu:///system undefine buildserver_default --nvram --managed-save --remove-all-storage --snapshots-metadata
error: failed to get domain 'buildserver_default'
error: Domain not found: no domain with matching name 'buildserver_default'
could not undefine libvirt domain 'buildserver_default': Command '('virsh', '-c', 'qemu:///system', 'undefine', 'buildserver_default', '--nvram', '--managed-save', '--remove-all-storage', '--snapshots-metadata')' returned non-zero exit status 1.
Configuring build server VM
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'fdroid-stretch64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
'vagrant up' failed.
Edited by Marcus