Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant up removes domain.xml on libvirt/qemu/kvm error #949

Closed
marceldev89 opened this issue Nov 28, 2018 · 2 comments · Fixed by #1496
Closed

vagrant up removes domain.xml on libvirt/qemu/kvm error #949

marceldev89 opened this issue Nov 28, 2018 · 2 comments · Fixed by #1496
Assignees

Comments

@marceldev89
Copy link

marceldev89 commented Nov 28, 2018

When I vagrant up a machine after host (re)boot the domain.xml is removed when libvirt/qemu/kvm throws this error:

Error when updating domain settings: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

It seems like this is happening because vagrant-libvirt is trying to update the domain.xml by removing the original domain.xml and creating a new domain.xml.new file (and moving it back to domain.xml after it doesn't fail). I figure the problem is at https://github.com/vagrant-libvirt/vagrant-libvirt/blob/master/lib/vagrant-libvirt/action/start_domain.rb#L280-L290 and it's somehow not catching the error and not restoring the original domain.xml.

The reason that I'm getting the error in the first place is that there appears to be some issue with the KVM module and AMD processors causing KVM to finish loading after libvirtd has started. When I force load the KVM module at boot or run virsh capabilities before vagrant up the error doesn't happen and vagrant up works as expected.

So I guess the KVM/AMD thingy is exposing an issue in vagrant-libvirt and it would be nice if it would be handled a bit more gracefully than wiping out the domain.xml and losing data due to having to recreate the machine.

System configuration

OS/Distro version: Arch Linux

Libvirt version: 4.8.0

Output of vagrant version; vagrant plugin list:

Installed Version: 2.2.1
Latest Version: 2.2.1
 
You're running an up-to-date version of Vagrant!
vagrant-hostsupdater (1.1.1.160, global)
  - Version Constraint: > 0
vagrant-libvirt (0.0.45, global)
  - Version Constraint: > 0

Output of VAGRANT_LOG=debug vagrant up --no-destroy-on-error > vagrant.log 2>&1

output

 INFO global: Vagrant version: 2.2.1
 INFO global: Ruby version: 2.5.3
 INFO global: RubyGems version: 2.7.7
 INFO global: VAGRANT_LOG="debug"
 INFO global: VAGRANT_DEFAULT_PROVIDER="libvirt"
 INFO global: VAGRANT_INSTALLER_VERSION="2"
 INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/bin/vagrant"
 INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
 INFO global: VAGRANT_DETECTED_OS="archlinux"
 INFO global: VAGRANT_INSTALLER_ENV="1"
 WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/synced_folders/rsync/plugin.rb
 INFO manager: Registered plugin: RSync synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/suse/plugin.rb
 INFO manager: Registered plugin: SUSE host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/null/plugin.rb
 INFO manager: Registered plugin: null host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/darwin/plugin.rb
 INFO manager: Registered plugin: Mac OS X host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/alt/plugin.rb
 INFO manager: Registered plugin: ALT Platform host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/communicators/winssh/plugin.rb
 INFO manager: Registered plugin: windows ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/communicators/winrm/plugin.rb
 INFO manager: Registered plugin: winrm communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/port/plugin.rb
 INFO manager: Registered plugin: port command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/powershell/plugin.rb
 INFO manager: Registered plugin: powershell command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/rdp/plugin.rb
 INFO manager: Registered plugin: rdp command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/cloud/plugin.rb
 INFO manager: Registered plugin: vagrant-cloud
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/cap/plugin.rb
 INFO manager: Registered plugin: cap command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/list-commands/plugin.rb
 INFO manager: Registered plugin: list-commands command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/login/plugin.rb
 INFO manager: Registered plugin: vagrant-login
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/snapshot/plugin.rb
 INFO manager: Registered plugin: snapshot command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/version/plugin.rb
 INFO manager: Registered plugin: version command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/winrm/plugin.rb
 INFO manager: Registered plugin: winrm command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/validate/plugin.rb
 INFO manager: Registered plugin: validate command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/global-status/plugin.rb
 INFO manager: Registered plugin: global-status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/upload/plugin.rb
 INFO manager: Registered plugin: upload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/provider/plugin.rb
 INFO manager: Registered plugin: provider command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/push/plugin.rb
 INFO manager: Registered plugin: push command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/winrm_config/plugin.rb
 INFO manager: Registered plugin: winrm-config command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/hyperv/plugin.rb
 INFO manager: Registered plugin: Hyper-V provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/docker/plugin.rb
 INFO manager: Registered plugin: docker-provider
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/docker/plugin.rb
 INFO manager: Registered plugin: docker
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/amazon/plugin.rb
 INFO manager: Registered plugin: Amazon Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/darwin/plugin.rb
 INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/mint/plugin.rb
 INFO manager: Registered plugin: Mint guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/windows/plugin.rb
 INFO manager: Registered plugin: Windows guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/bsd/plugin.rb
 INFO manager: Registered plugin: BSD-based guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/kali/plugin.rb
 INFO manager: Registered plugin: Kali guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/trisquel/plugin.rb
 INFO manager: Registered plugin: Trisquel guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/photon/plugin.rb
 INFO manager: Registered plugin: VMware Photon guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/esxi/plugin.rb
 INFO manager: Registered plugin: ESXi guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/funtoo/plugin.rb
 INFO manager: Registered plugin: Funtoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/nixos/plugin.rb
 INFO manager: Registered plugin: NixOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/netbsd/plugin.rb
 INFO manager: Registered plugin: NetBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/atomic/plugin.rb
 INFO manager: Registered plugin: Atomic Host guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/alt/plugin.rb
 INFO manager: Registered plugin: ALT Platform guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/elementary/plugin.rb
 INFO manager: Registered plugin: Elementary guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/tinycore/plugin.rb
 INFO manager: Registered plugin: TinyCore Linux guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/dragonflybsd/plugin.rb
 INFO manager: Registered plugin: DragonFly BSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/coreos/plugin.rb
 INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/smartos/plugin.rb
 INFO manager: Registered plugin: SmartOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/solaris11/plugin.rb
 INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/haiku/plugin.rb
 INFO manager: Registered plugin: Haiku guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/pushes/ftp/plugin.rb
 INFO manager: Registered plugin: ftp
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/pushes/heroku/plugin.rb
 INFO manager: Registered plugin: heroku
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/pushes/atlas/plugin.rb
 INFO manager: Registered plugin: atlas
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/pushes/noop/plugin.rb
 INFO manager: Registered plugin: noop
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/pushes/local-exec/plugin.rb
 INFO manager: Registered plugin: local-exec
 INFO vagrant: `vagrant` invoked: ["up", "--no-destroy-on-error"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x000055ffe66009c8>)
 INFO environment:   - cwd: /home/marcel/projects/******
 INFO environment: Home path: /home/marcel/.vagrant.d
DEBUG environment: Effective local data path: /home/marcel/projects/******/.vagrant
 INFO environment: Local data path: /home/marcel/projects/******/.vagrant
DEBUG environment: Creating: /home/marcel/projects/******/.vagrant
DEBUG manager: Enabling localized plugins
 INFO manager: Plugins:
DEBUG bundler: Current generated plugin dependency list: []
DEBUG bundler: Generating new builtin set instance.
DEBUG bundler: Generating new plugin set instance. Skip gems - []
DEBUG bundler: Activating solution set: []
 INFO manager: Loading plugins...
DEBUG manager: Enabling globalized plugins
 INFO manager: Plugins:
 INFO manager:   - vagrant-hostsupdater = [installed: 1.1.1.160 constraint: > 0]
 INFO manager:   - vagrant-libvirt = [installed: 0.0.45 constraint: > 0]
DEBUG bundler: Current generated plugin dependency list: [<Gem::Dependency type=:runtime name="vagrant-hostsupdater" requirements="= 1.1.1.160">, <Gem::Dependency type=:runtime name="vagrant-libvirt" requirements="= 0.0.45">]
DEBUG bundler: Generating new builtin set instance.
DEBUG bundler: Generating new plugin set instance. Skip gems - []
DEBUG bundler: Activating solution set: ["vagrant-hostsupdater-1.1.1.160", "formatador-0.2.5", "excon-0.62.0", "builder-3.2.3", "fog-core-1.43.0", "mini_portile2-2.3.0", "nokogiri-1.8.5", "json-2.1.0", "ruby-libvirt-0.7.1", "fog-xml-0.1.3", "multi_json-1.13.1", "fog-json-1.2.0", "fog-libvirt-0.5.0", "vagrant-libvirt-0.0.45"]
DEBUG bundler: Activating gem vagrant-hostsupdater-1.1.1.160
DEBUG bundler: Activating gem formatador-0.2.5
DEBUG bundler: Activating gem excon-0.62.0
DEBUG bundler: Activating gem fog-core-1.43.0
DEBUG bundler: Activating gem mini_portile2-2.3.0
DEBUG bundler: Activating gem nokogiri-1.8.5
DEBUG bundler: Activating gem ruby-libvirt-0.7.1
DEBUG bundler: Activating gem fog-xml-0.1.3
DEBUG bundler: Activating gem fog-json-1.2.0
DEBUG bundler: Activating gem fog-libvirt-0.5.0
DEBUG bundler: Activating gem vagrant-libvirt-0.0.45
 INFO manager: Loading plugins...
 INFO manager: Loading plugin `vagrant-hostsupdater` with default require: `vagrant-hostsupdater`
 INFO manager: Registered plugin: HostsUpdater
DEBUG manager: Successfully loaded plugin `vagrant-hostsupdater`.
 INFO manager: Loading plugin `vagrant-libvirt` with default require: `vagrant-libvirt`
 INFO manager: Registered plugin: libvirt
DEBUG manager: Successfully loaded plugin `vagrant-libvirt`.
 INFO loader: Set :root = ["#<Pathname:/home/marcel/projects/******/Vagrantfile>"]
DEBUG loader: Populating proc cache for #<Pathname:/home/marcel/projects/******/Vagrantfile>
DEBUG loader: Load procs for pathname: /home/marcel/projects/******/Vagrantfile
 INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Loading from: root (evaluating)
DEBUG provisioner: Provisioner defined: 
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: environment_plugins_loaded #<Vagrant::Action::Builder:0x000055ffe6e27d40>
 INFO environment: Running hook: environment_load
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: environment_load #<Vagrant::Action::Builder:0x000055ffe6c16808>
DEBUG checkpoint_client: starting plugin check
 INFO cli: CLI: [] "up" ["--no-destroy-on-error"]
DEBUG checkpoint_client: plugin check complete
DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--no-destroy-on-error"]
DEBUG checkpoint_client: no information received from checkpoint
DEBUG command: 'Up' each target VM...
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: ["default"]
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Finding machine that match name: default
 INFO command: Active machine found with name default. Using provider: libvirt
 INFO environment: Getting machine: default (libvirt)
 INFO environment: Uncached load of machine.
 INFO loader: Set "47278788900000_machine_default" = []
 INFO loader: Loading configuration in order: [:home, :root, "47278788900000_machine_default"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO box_collection: Box found: generic/ubuntu1604 (libvirt)
 INFO environment: Running hook: authenticate_box_url
 INFO host: Autodetecting host type for [#<Vagrant::Environment: /home/marcel/projects/******>]
DEBUG host: Trying: suse
DEBUG host: Trying: darwin
DEBUG host: Trying: gentoo
DEBUG host: Trying: redhat
DEBUG host: Trying: slackware
DEBUG host: Trying: alt
DEBUG host: Trying: arch
 INFO host: Detected: arch!
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 3 hooks defined.
 INFO runner: Running action: authenticate_box_url #<Vagrant::Action::Builder:0x000055ffe6d08950>
 INFO warden: Calling IN action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x000055ffe6b9a0a0>
DEBUG client: No authentication token in environment or /home/marcel/.vagrant.d/data/vagrant_login_token
 INFO warden: Calling OUT action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x000055ffe6b9a0a0>
 INFO loader: Set :"47278790649460_generic/ubuntu1604_libvirt" = ["#<Pathname:/home/marcel/.vagrant.d/boxes/generic-VAGRANTSLASH-ubuntu1604/1.8.40/libvirt/Vagrantfile>"]
DEBUG loader: Populating proc cache for #<Pathname:/home/marcel/.vagrant.d/boxes/generic-VAGRANTSLASH-ubuntu1604/1.8.40/libvirt/Vagrantfile>
DEBUG loader: Load procs for pathname: /home/marcel/.vagrant.d/boxes/generic-VAGRANTSLASH-ubuntu1604/1.8.40/libvirt/Vagrantfile
 INFO loader: Loading configuration in order: [:"47278790649460_generic/ubuntu1604_libvirt", :home, :root, "47278788900000_machine_default"]
DEBUG loader: Loading from: 47278790649460_generic/ubuntu1604_libvirt (evaluating)
DEBUG loader: Loading from: 47278790649460_generic/ubuntu1604_libvirt (evaluating)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO loader: Set :"47278788900000_vm_default_generic/ubuntu1604_libvirt" = ["[\"2\", #<Proc:0x000055ffe6bfdd80>]"]
DEBUG loader: Populating proc cache for ["2", #<Proc:0x000055ffe6bfdd80>]
 INFO loader: Loading configuration in order: [:"47278790649460_generic/ubuntu1604_libvirt", :home, :root, "47278788900000_machine_default", :"47278788900000_vm_default_generic/ubuntu1604_libvirt"]
DEBUG loader: Loading from: 47278790649460_generic/ubuntu1604_libvirt (cache)
DEBUG loader: Loading from: 47278790649460_generic/ubuntu1604_libvirt (cache)
DEBUG loader: Loading from: root (cache)
DEBUG loader: Loading from: 47278788900000_vm_default_generic/ubuntu1604_libvirt (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO machine: Initializing machine: default
 INFO machine:   - Provider: VagrantPlugins::ProviderLibvirt::Provider
 INFO machine:   - Box: #<Vagrant::Box:0x000055ffe66e1a90>
 INFO machine:   - Data dir: /home/marcel/projects/******/.vagrant/machines/default/libvirt
 INFO driver: Connecting to Libvirt (qemu:///system?no_verify=1&keyfile=/home/marcel/.ssh/id_rsa) ...
 INFO interface: Machine: metadata ["provider", :libvirt, {:target=>:default}]
 INFO command: With machine: default (#<VagrantPlugins::ProviderLibvirt::Provider:0x000055ffe6db85d0 @machine=#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>, @cap_logger=#<Log4r::Logger:0x000055ffe6db73b0 @fullname="vagrant::capability_host::vagrantplugins::providerlibvirt::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrantplugins::providerlibvirt", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:libvirt, #<#<Class:0x000055ffe6db8558>:0x000055ffe6da20a0>]], @cap_args=[#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x000055ffe6db80a8 @items={:forwarded_ports=>#<Proc:0x000055ffe6c42f20@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x000055ffe6c42ef8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x000055ffe6c42ed0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:37>, :snapshot_list=>#<Proc:0x000055ffe6c42ea8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:42>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x000055ffe6db7c20 @items={:public_address=>#<Proc:0x000055ffe68cc8f0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/hyperv/plugin.rb:25>, :snapshot_list=>#<Proc:0x000055ffe68cc7d8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/hyperv/plugin.rb:30>}, @results_cache={}>, :docker=>#<Vagrant::Registry:0x000055ffe6db79a0 @items={:public_address=>#<Proc:0x000055ffe68b98b8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/docker/plugin.rb:60>, :proxy_machine=>#<Proc:0x000055ffe68b97a0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/docker/plugin.rb:65>}, @results_cache={}>, :libvirt=>#<Vagrant::Registry:0x000055ffe6db7838 @items={:nic_mac_addresses=>#<Proc:0x000055ffe6ed4158@/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/plugin.rb:37>}, @results_cache={}>}, @driver=#<VagrantPlugins::ProviderLibvirt::Driver:0x000055ffe7959880 @logger=#<Log4r::Logger:0x000055ffe7959830 @fullname="vagrant_libvirt::driver", @outputters=[], @additive=true, @name="driver", @path="vagrant_libvirt", @parent=#<Log4r::Logger:0x000055ffe6ecbe18 @fullname="vagrant_libvirt", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant_libvirt", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @machine=#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>>>)
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: ["default"]
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Finding machine that match name: default
 INFO command: Active machine found with name default. Using provider: libvirt
 INFO environment: Getting machine: default (libvirt)
 INFO environment: Returning cached machine: default (libvirt)
 INFO command: With machine: default (#<VagrantPlugins::ProviderLibvirt::Provider:0x000055ffe6db85d0 @machine=#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>, @cap_logger=#<Log4r::Logger:0x000055ffe6db73b0 @fullname="vagrant::capability_host::vagrantplugins::providerlibvirt::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrantplugins::providerlibvirt", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:libvirt, #<#<Class:0x000055ffe6db8558>:0x000055ffe6da20a0>]], @cap_args=[#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x000055ffe6db80a8 @items={:forwarded_ports=>#<Proc:0x000055ffe6c42f20@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x000055ffe6c42ef8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x000055ffe6c42ed0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:37>, :snapshot_list=>#<Proc:0x000055ffe6c42ea8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/virtualbox/plugin.rb:42>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x000055ffe6db7c20 @items={:public_address=>#<Proc:0x000055ffe68cc8f0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/hyperv/plugin.rb:25>, :snapshot_list=>#<Proc:0x000055ffe68cc7d8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/hyperv/plugin.rb:30>}, @results_cache={}>, :docker=>#<Vagrant::Registry:0x000055ffe6db79a0 @items={:public_address=>#<Proc:0x000055ffe68b98b8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/docker/plugin.rb:60>, :proxy_machine=>#<Proc:0x000055ffe68b97a0@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/providers/docker/plugin.rb:65>}, @results_cache={}>, :libvirt=>#<Vagrant::Registry:0x000055ffe6db7838 @items={:nic_mac_addresses=>#<Proc:0x000055ffe6ed4158@/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/plugin.rb:37>}, @results_cache={}>}, @driver=#<VagrantPlugins::ProviderLibvirt::Driver:0x000055ffe7959880 @logger=#<Log4r::Logger:0x000055ffe7959830 @fullname="vagrant_libvirt::driver", @outputters=[], @additive=true, @name="driver", @path="vagrant_libvirt", @parent=#<Log4r::Logger:0x000055ffe6ecbe18 @fullname="vagrant_libvirt", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant_libvirt", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @machine=#<Vagrant::Machine: default (VagrantPlugins::ProviderLibvirt::Provider)>>>)
 INFO interface: info: Bringing machine 'default' up with 'libvirt' provider...
Bringing machine 'default' up with 'libvirt' provider...
 INFO batch_action: Enabling parallelization by default.
 INFO batch_action: Disabling parallelization because only executing one action
 INFO batch_action: Batch action will parallelize: false
 INFO batch_action: Starting action: #<Vagrant::Machine:0x000055ffe6fd4f30> up {:destroy_on_error=>false, :install_provider=>false, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil}
 INFO machine: Calling action: up on provider Libvirt (4aaf4fbf-ae39-4f20-9356-b8070531ff01)
DEBUG environment: Attempting to acquire process-lock: machine-action-1cfb253deca58c2e296e90e5810d0853
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO environment: Acquired process lock: machine-action-1cfb253deca58c2e296e90e5810d0853
 INFO interface: Machine: action ["up", "start", {:target=>:default}]
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x000055ffe6cea450>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x00007fcba002fdc8>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::BoxCheckOutdated:0x00007fcba002fda0>
 INFO interface: output: Checking if box 'generic/ubuntu1604' is up to date...
 INFO interface: output: ==> default: Checking if box 'generic/ubuntu1604' is up to date...
==> default: Checking if box 'generic/ubuntu1604' is up to date...
 INFO box: box update check is under the interval threshold
 INFO box: Skipping box update check
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00007fcba00592e0>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x00007fcba02055a8>
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::IsCreated:0x00007fcba0217b18>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::IsCreated:0x00007fcba0217b18>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Warden:0x00007fcba0388600>
 INFO warden: Calling IN action: #<Proc:0x00007fcba03c6518@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x00007fcba0388588>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00007fcba0388560>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x00007fcba0435440>
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::IsRunning:0x00007fcba0442d98>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::IsRunning:0x00007fcba0442d98>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Warden:0x00007fcba0519c30>
 INFO warden: Calling IN action: #<Proc:0x00007fcba055a208@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00007fcba0519bb8>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x00007fcba05c4db0>
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::IsSuspended:0x00007fcba05d20a0>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::IsSuspended:0x00007fcba05d20a0>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 4 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Warden:0x00007fcba03a47b0>
 INFO warden: Calling IN action: #<Proc:0x000055ffe7ad8cd8@/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Provision:0x00007fcba03a4738>
 INFO provision: Checking provisioner sentinel file...
 INFO provision: Sentinel found! Not provisioning.
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::CreateNetworks:0x00007fcba027c888>
 INFO create_networks: Using vagrant-libvirt at 192.168.121.0/24 as the management network nat is the mode
DEBUG create_networks: In config found network type private_network options {:ip=>"192.168.13.20", :protocol=>"tcp", :id=>"005d996f-71e2-46d2-9c10-62a0a31fb84d"}
DEBUG create_networks: In config found network type forwarded_port options {:guest=>22, :host=>2222, :host_ip=>"127.0.0.1", :id=>"ssh", :auto_correct=>true, :protocol=>"tcp"}
DEBUG create_networks: Searching for network with options {:iface_type=>:private_network, :network_name=>"vagrant-libvirt", :ip=>"192.168.121.0", :netmask=>"255.255.255.0", :dhcp_enabled=>true, :forward_mode=>"nat", :guest_ipv6=>"yes", :autostart=>false, :bus=>nil, :slot=>nil}
DEBUG create_networks: looking up network with ip == 192.168.121.0
DEBUG create_networks: Checking that network name does not clash with ip
DEBUG create_networks: Searching for network with options {:iface_type=>:private_network, :netmask=>"255.255.255.0", :dhcp_enabled=>true, :forward_mode=>"nat", :ip=>"192.168.13.20", :protocol=>"tcp", :id=>"005d996f-71e2-46d2-9c10-62a0a31fb84d"}
DEBUG create_networks: looking up network with ip == 192.168.13.0
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::SetBootOrder:0x00007fcba0205008>
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::PrepareNFSValidIds:0x00007fcba00bd948>
 INFO warden: Calling IN action: #<VagrantPlugins::SyncedFolderNFS::ActionCleanup:0x00007fcba00697d0>
DEBUG host: Searching for cap: nfs_prune
DEBUG host: Checking in: arch
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_prune in linux
 INFO nfs: NFS pruning. Valid IDs: ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG host: Searching for cap: nfs_prune
DEBUG host: Checking in: arch
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_prune in linux
 INFO host: Execute capability: nfs_prune [#<Vagrant::Environment: /home/marcel/projects/******>, #<Vagrant::UI::Prefixed:0x000055ffe6f74310 @logger=#<Log4r::Logger:0x000055ffe6f742c0 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @prefix=:default, @ui=#<Vagrant::UI::Basic:0x000055ffe6fc3e10 @logger=#<Log4r::Logger:0x000055ffe6fc3dc0 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={:color=>:default}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @lock=#<Thread::Mutex:0x000055ffe6fe2270>>>, ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]] (arch)
 INFO linux: Pruning invalid NFS entries...
DEBUG linux: Known valid NFS export IDs: ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG linux: Composite valid NFS export IDs with user: ["1000 02b26af2-6216-45b3-b84e-2eaa62785f4d", "1000 4aaf4fbf-ae39-4f20-9356-b8070531ff01", "1000 b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "1000 5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG linux: NFS export IDs to be removed: []
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolderCleanup:0x00007fcba0020508>
DEBUG host: Searching for cap: smb_installed
DEBUG host: Checking in: arch
DEBUG host: Checking in: linux
DEBUG host: Searching for cap: nfs_installed
DEBUG host: Checking in: arch
DEBUG host: Found cap: nfs_installed in arch
 INFO host: Execute capability: nfs_installed [#<Vagrant::Environment: /home/marcel/projects/******>] (arch)
 INFO synced_folder_cleanup: Invoking synced folder cleanup for: nfs
 INFO nfs: NFS pruning. Valid IDs: ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG host: Searching for cap: nfs_prune
DEBUG host: Checking in: arch
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_prune in linux
 INFO host: Execute capability: nfs_prune [#<Vagrant::Environment: /home/marcel/projects/******>, #<Vagrant::UI::Prefixed:0x000055ffe6f74310 @logger=#<Log4r::Logger:0x000055ffe6f742c0 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @prefix=:default, @ui=#<Vagrant::UI::Basic:0x000055ffe6fc3e10 @logger=#<Log4r::Logger:0x000055ffe6fc3dc0 @fullname="vagrant::ui::interface", @outputters=[], @additive=true, @name="interface", @path="vagrant::ui", @parent=#<VagrantLogger:0x000055ffe5bdddb0 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x000055ffe61a2368 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055ffe61a22f0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x000055ffe6469308 @formatter=#<Log4r::BasicFormatter:0x000055ffe61bb278 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x000055ffe5bdd860 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @opts={:color=>:default}, @stdin=#<IO:<STDIN>>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @lock=#<Thread::Mutex:0x000055ffe6fe2270>>>, ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]] (arch)
 INFO linux: Pruning invalid NFS entries...
DEBUG linux: Known valid NFS export IDs: ["02b26af2-6216-45b3-b84e-2eaa62785f4d", "4aaf4fbf-ae39-4f20-9356-b8070531ff01", "b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG linux: Composite valid NFS export IDs with user: ["1000 02b26af2-6216-45b3-b84e-2eaa62785f4d", "1000 4aaf4fbf-ae39-4f20-9356-b8070531ff01", "1000 b161afef-2ce9-4c97-ba8a-ea7b32ee945a", "1000 5a2c14d5-f045-4d9d-8096-ba50f3e74d39"]
DEBUG linux: NFS export IDs to be removed: []
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolders:0x000055ffe7f478c8>
 INFO synced_folders: SyncedFolders loading from cache: false
DEBUG host: Searching for cap: smb_installed
DEBUG host: Checking in: arch
DEBUG host: Checking in: linux
DEBUG host: Searching for cap: nfs_installed
DEBUG host: Checking in: arch
DEBUG host: Found cap: nfs_installed in arch
 INFO host: Execute capability: nfs_installed [#<Vagrant::Environment: /home/marcel/projects/******>] (arch)
 INFO synced_folders: Synced Folder Implementation: nfs
 INFO synced_folders:   - /vagrant: . => /vagrant
 INFO synced_folders: Invoking synced folder prepare for: nfs
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::StartDomain:0x000055ffe7f07458>
 INFO interface: info: Starting domain.
 INFO interface: info: ==> default: Starting domain.
==> default: Starting domain.
 INFO interface: error: Error when updating domain settings: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 
 INFO interface: error: ==> default: Error when updating domain settings: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 
==> default: Error when updating domain settings: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00007fcba0519bb8>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00007fcba0388560>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00007fcba00592e0>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-1cfb253deca58c2e296e90e5810d0853
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x000055ffe7f2d5b8>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<VagrantPlugins::ProviderLibvirt::Errors::FogError: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)>
ERROR vagrant: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
ERROR vagrant: /home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/start_domain.rb:299:in `rescue in call'
/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/start_domain.rb:21:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/synced_folders.rb:87:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/plugins/synced_folders/nfs/action_cleanup.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb:12:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/set_boot_order.rb:78:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/home/marcel/.vagrant.d/gems/2.5.3/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/create_networks.rb:89:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/provision.rb:80:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/box_check_outdated.rb:83:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/machine.rb:239:in `action_raw'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/machine.rb:208:in `block in action'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/environment.rb:614:in `lock'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/machine.rb:194:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/machine.rb:194:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-2.2.1/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
 INFO interface: error: There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)
 INFO interface: Machine: error-exit ["VagrantPlugins::ProviderLibvirt::Errors::FogError", "There was an error talking to Libvirt. The error message is shown\nbelow:\n\nCall to virDomainSetAutostart failed: Domain not found: no domain with matching uuid '4aaf4fbf-ae39-4f20-9356-b8070531ff01' (******_default)"]


Are you using upstream vagrant package or your distros package?
Distro

@electrofelix
Copy link
Contributor

I see what you mean, that the domain is only restore for a specific fog error and not on any error
https://github.com/vagrant-libvirt/vagrant-libvirt/blame/6dac9c90542d8915b76809851d8282d49fb5095d/lib/vagrant-libvirt/action/start_domain.rb#L338-L346

@electrofelix electrofelix self-assigned this Mar 22, 2022
@electrofelix
Copy link
Contributor

Actually, I suspect the problem here is that the XML is valid but rejected by libvirt based on the current capabilities and would also reject the old XML. So what is needed is a way of seeing if the new domain XML definition is accepted before attempting to undefine the existing, or sending the XML as an edit

electrofelix added a commit to electrofelix/vagrant-libvirt that referenced this issue May 19, 2022
Calling undefine on a domain and recreating it can result in some edge
case errors where if the current capabilities of libvirt have been
reduced, it may not be possible to restore the old definition.

Instead switch to calling `domain_define` with the new definition and
check that the resulting libvirt domain definition has been updated in
the expected manner, otherwise report an error to the user.

Fixes: vagrant-libvirt#949
Relates-to: vagrant-libvirt#1329
Relates-to: vagrant-libvirt#1027
Relates-to: vagrant-libvirt#1371
electrofelix added a commit to electrofelix/vagrant-libvirt that referenced this issue May 19, 2022
Calling undefine on a domain and recreating it can result in some edge
case errors where if the current capabilities of libvirt have been
reduced, it may not be possible to restore the old definition.

Instead switch to calling `domain_define` with the new definition and
check that the resulting libvirt domain definition has been updated in
the expected manner, otherwise report an error to the user.

Fixes: vagrant-libvirt#949
Relates-to: vagrant-libvirt#1329
Relates-to: vagrant-libvirt#1027
Relates-to: vagrant-libvirt#1371
electrofelix added a commit that referenced this issue Jun 3, 2022
Calling undefine on a domain and recreating it can result in some edge
case errors where if the current capabilities of libvirt have been
reduced, it may not be possible to restore the old definition.

Instead switch to calling `domain_define` with the new definition and
check that the resulting libvirt domain definition has been updated in
the expected manner, otherwise report an error to the user.

Fixes: #949
Relates-to: #1329
Relates-to: #1027
Relates-to: #1371
mmguero pushed a commit to mmguero-dev/vagrant-libvirt that referenced this issue Jun 7, 2022
Calling undefine on a domain and recreating it can result in some edge
case errors where if the current capabilities of libvirt have been
reduced, it may not be possible to restore the old definition.

Instead switch to calling `domain_define` with the new definition and
check that the resulting libvirt domain definition has been updated in
the expected manner, otherwise report an error to the user.

Fixes: vagrant-libvirt#949
Relates-to: vagrant-libvirt#1329
Relates-to: vagrant-libvirt#1027
Relates-to: vagrant-libvirt#1371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants