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

:allow_existing => "true" --> Call to virStorageVolCreateXML failed: storage volume 'testcluster0_shared_disk.raw' exists already #1510

Closed
bolausson opened this issue Jun 8, 2022 · 4 comments

Comments

@bolausson
Copy link

Hello,

after upgrading my system, I can no longer start my VMs with vagrant:

$ vagrant up --no-parallel
Bringing machine 'testnode0' up with 'libvirt' provider...
Bringing machine 'testnode1' up with 'libvirt' provider...
...
==> testnode0: Machine booted and ready!
==> testnode0: Setting hostname...
==> testnode0: mounting 9p share in guest
==> testnode0: Setting time zone to 'Europe/Berlin'...
==> testnode1: Creating image (snapshot of base box volume).
Error while creating volume for domain: Call to virStorageVolCreateXML failed: storage volume 'testcluster0_shared_disk.raw' exists already

The issue seems to be this code which creates a shared RAW image. It is created with the first VM and should only be attached to the second VM - hence the if clause:

bustype = "sata"
if node_i == 0
	libvirt.storage :file, :path => diskname, :bus => bustype, :shareable => "true", :type => "raw", :serial => "mgs", :size => "10G"
else
	libvirt.storage :file, :path => diskname, :bus => bustype, :shareable => "true", :type => "raw", :serial => "mgs", :size => "10G", :allow_existing => "true"
end

To Reproduce
Steps to reproduce the behavior:

  1. Create VM and attach a additional shareable disk using libvirt.storage
  2. Create a second VM and attach the previously created disk using libvirt.storage

Expected behavior
Two VMs should be created both with an additional shared disk

Versions (please complete the following information)::

  • Libvirt version: 8.4.0
  • Vagrant version [output of vagrant version]: Vagrant 2.2.19
  • Vagrant flavour [Upstream or Distro]: Gentoo
  • Vagrant plugins versions (including vagrant-libvirt) [output of vagrant plugin list]: vagrant-libvirt (0.9.0, global), vagrant-timezone (1.3.0, global)

Debug Log
Attach Output of VAGRANT_LOG=debug vagrant up --no-parallel --provider=libvirt >vagrant.log 2>&1
vagrant.log

A Vagrantfile to reproduce the issue:

#!/usr/bin/env ruby
#
require 'yaml'
require 'erb'
require 'fileutils'

ENV['VAGRANT_NO_PARALLEL'] = 'yes'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'

clusters = [ "testcluster0" ]
nodes = [ "testnode0", "testnode1" ]

Vagrant.configure("2") do |config|
	clusters.each_with_index { |cluster, cluster_i|

		config.vm.provider "libvirt" do |libvirt|
			libvirt.storage_pool_name = "default"
			libvirt.clock_offset = "localtime"
			libvirt.nic_model_type = "virtio"
		end

		nodes.each_with_index { |node_name, node_i|

			config.vm.define node_name do |node|
				node.vm.box = "server-centos-r6-x86_64_libvirt"
				node.vm.hostname = node_name

				node.ssh.username = "root"
				node.ssh.password = "MyPassword"

				if Vagrant.has_plugin?("vagrant-timezone")
					node.timezone.value = "Europe/Berlin"
				end
				
				node.vm.synced_folder "./", "/vagrant", type: "9p", disabled: false, accessmode: "mapped"
				node.vm.synced_folder "../packer/sources", "/sources", type: "9p", disabled: false, accessmode: "mapped"
				node.vm.synced_folder "/home/mythtv/shared_folder_for_vms", "/shared", type: "9p", disabled: false, accessmode: "mapped"

				# Create
				node.vm.provider "libvirt" do |libvirt|
					libvirt.default_prefix = "%s_" % cluster
					libvirt.memory = "4096"
					libvirt.cpus = "4"
					libvirt.machine_arch = "x86_64"
					libvirt.video_vram = "128"
					libvirt.keymap = "de"
					libvirt.memorybacking "access", "mode" => "shared"
					libvirt.nested = "true"

					# Add MGS
					diskname = "%s_shared_disk.raw" % cluster
					bustype = "sata"
					if node_i == 0
						libvirt.storage :file, :path => diskname, :bus => bustype, :shareable => "true", :type => "raw", :serial => "mgs", :size => "10G"
					else
						libvirt.storage :file, :path => diskname, :bus => bustype, :shareable => "true", :type => "raw", :serial => "mgs", :size => "10G", :allow_existing => "true"
					end
				end
			end
		}

	}
end

Any ideas how to figure out why I no longer can't create two VMs with a shared disk?

Thanks for any suggestions,
Bjoern

@electrofelix
Copy link
Contributor

The error message changed in libvirt 8.4.0, required #1507 which only landed recently

@electrofelix
Copy link
Contributor

Going to close this as already fixed, it should be released in a few days

@bolausson
Copy link
Author

Okay thanks!
I'll put it to the test once it is available.

@bolausson
Copy link
Author

Just in case someone is as impationed as me:
I just patched the file of the current version (vagrant-libvirt-0.9.0) and it works again:

--- /home/user/.vagrant.d/gems/2.7.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action/create_domain.rb~	2022-06-08 14:32:46.000000000 +0200
+++ /home/user/.vagrant.d/gems/2.7.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action/create_domain.rb	2022-06-09 20:13:25.819022859 +0200
@@ -151,9 +151,11 @@ module VagrantPlugins
             rescue Libvirt::Error => e
               # It is hard to believe that e contains just a string
               # and no useful error code!
-              msg = "Call to virStorageVolCreateXML failed: " +
-                    "storage volume '#{disk[:absolute_path]}' exists already"
-              if e.message == msg and disk[:allow_existing]
+              msgs = [disk[:name], disk[:absolute_path]].map do |name|
+                "Call to virStorageVolCreateXML failed: " +
+                "storage volume '#{name}' exists already"
+              end
+              if msgs.include?(e.message) and disk[:allow_existing]
                 disk[:preexisting] = true
               else
                 raise Errors::FogCreateDomainVolumeError,
$ vagrant up
Bringing machine 'testnode0' up with 'libvirt' provider...
Bringing machine 'testnode1' up with 'libvirt' provider...
==> testnode0: Creating image (snapshot of base box volume).
==> testnode0: Creating domain with the following settings...
==> testnode0:  -- Name:              testcluster0_testnode0
==> testnode0:  -- Description:       Source: /home/mythtv/virtual-exascaler-cluster/vagrant/Vagrantfile
==> testnode0:  -- Domain type:       kvm
==> testnode0:  -- Cpus:              4
==> testnode0:  -- Feature:           acpi
==> testnode0:  -- Feature:           apic
==> testnode0:  -- Feature:           pae
==> testnode0:  -- Clock offset:      localtime
==> testnode0:  -- Memory:            4096M
==> testnode0:  -- Memory Backing:    access: mode='shared'
==> testnode0:  -- Management MAC:    
==> testnode0:  -- Loader:            
==> testnode0:  -- Nvram:             
==> testnode0:  -- Base box:          exaserver_es-6.0.1-server-centos-r6-x86_64_libvirt
==> testnode0:  -- Storage pool:      default
==> testnode0:  -- Image(vda):        /home/mythtv/libvirt_storage/testcluster0_testnode0.img, virtio, 80G
==> testnode0:  -- Disk driver opts:  cache='default'
==> testnode0:  -- Kernel:            
==> testnode0:  -- Initrd:            
==> testnode0:  -- Graphics Type:     vnc
==> testnode0:  -- Graphics Port:     -1
==> testnode0:  -- Graphics IP:       127.0.0.1
==> testnode0:  -- Graphics Password: Not defined
==> testnode0:  -- Video Type:        cirrus
==> testnode0:  -- Video VRAM:        128
==> testnode0:  -- Video 3D accel:    false
==> testnode0:  -- Sound Type:	
==> testnode0:  -- Keymap:            de
==> testnode0:  -- TPM Backend:       passthrough
==> testnode0:  -- TPM Path:          
==> testnode0:  -- Disks:         vdb(raw, sata, 10G)
==> testnode0:  -- Disk(vdb):     /home/mythtv/libvirt_storage/testcluster0_shared_disk.raw Shared
==> testnode0:  -- INPUT:             type=mouse, bus=ps2
==> testnode0: ================
==> testnode0: Machine id: 42d1e6b1-8eb3-4961-bf1a-18249ad8d15b
==> testnode0: Should be mounting folders
==> testnode0:  /vagrant, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/vagrant", :hostpath=>"/home/mythtv/virtual-exascaler-cluster/vagrant", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee391c1770 @logger=#<Log4r::Logger:0x00007fee391c1720 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee3910f2a0 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee390f9518 @logger=#<Log4r::Logger:0x00007fee390f9478 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode0 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee3910f4a8 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee3910f408 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/vagrant", :mount=>true, :readonly=>nil, :mount_tag=>"b7b64a84d394753b9a282f2ddc88074"}
==> testnode0: ================
==> testnode0: Machine id: 42d1e6b1-8eb3-4961-bf1a-18249ad8d15b
==> testnode0: Should be mounting folders
==> testnode0:  /sources, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/sources", :hostpath=>"/home/mythtv/virtual-exascaler-cluster/packer/sources", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee391c1770 @logger=#<Log4r::Logger:0x00007fee391c1720 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee3910f2a0 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee390f9518 @logger=#<Log4r::Logger:0x00007fee390f9478 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode0 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee3910f4a8 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee3910f408 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/sources", :mount=>true, :readonly=>nil, :mount_tag=>"579717b61b953f2e3380eed78c150de"}
==> testnode0: ================
==> testnode0: Machine id: 42d1e6b1-8eb3-4961-bf1a-18249ad8d15b
==> testnode0: Should be mounting folders
==> testnode0:  /shared, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/shared", :hostpath=>"/home/mythtv/shared_folder_for_vms", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee391c1770 @logger=#<Log4r::Logger:0x00007fee391c1720 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee3910f2a0 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee390f9518 @logger=#<Log4r::Logger:0x00007fee390f9478 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode0 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee3910f4a8 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee3910f408 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/shared", :mount=>true, :readonly=>nil, :mount_tag=>"174fef947a3fd77773110f87bd00cf1"}
==> testnode0: Creating shared folders metadata...
==> testnode0: Starting domain.
==> testnode0: Waiting for domain to get an IP address...
==> testnode0: Waiting for machine to boot. This may take a few minutes...
    testnode0: SSH address: 192.168.121.191:22
    testnode0: SSH username: root
    testnode0: SSH auth method: password
    testnode0: 
    testnode0: Inserting generated public key within guest...
    testnode0: Removing insecure key from the guest if it's present...
    testnode0: Key inserted! Disconnecting and reconnecting using new SSH key...
==> testnode0: Machine booted and ready!
==> testnode0: Setting hostname...
==> testnode0: mounting 9p share in guest
==> testnode0: Setting time zone to 'Europe/Berlin'...
==> testnode1: Creating image (snapshot of base box volume).
==> testnode1: Creating domain with the following settings...
==> testnode1:  -- Name:              testcluster0_testnode1
==> testnode1:  -- Description:       Source: /home/mythtv/virtual-exascaler-cluster/vagrant/Vagrantfile
==> testnode1:  -- Domain type:       kvm
==> testnode1:  -- Cpus:              4
==> testnode1:  -- Feature:           acpi
==> testnode1:  -- Feature:           apic
==> testnode1:  -- Feature:           pae
==> testnode1:  -- Clock offset:      localtime
==> testnode1:  -- Memory:            4096M
==> testnode1:  -- Memory Backing:    access: mode='shared'
==> testnode1:  -- Management MAC:    
==> testnode1:  -- Loader:            
==> testnode1:  -- Nvram:             
==> testnode1:  -- Base box:          exaserver_es-6.0.1-server-centos-r6-x86_64_libvirt
==> testnode1:  -- Storage pool:      default
==> testnode1:  -- Image(vda):        /home/mythtv/libvirt_storage/testcluster0_testnode1.img, virtio, 80G
==> testnode1:  -- Disk driver opts:  cache='default'
==> testnode1:  -- Kernel:            
==> testnode1:  -- Initrd:            
==> testnode1:  -- Graphics Type:     vnc
==> testnode1:  -- Graphics Port:     -1
==> testnode1:  -- Graphics IP:       127.0.0.1
==> testnode1:  -- Graphics Password: Not defined
==> testnode1:  -- Video Type:        cirrus
==> testnode1:  -- Video VRAM:        128
==> testnode1:  -- Video 3D accel:    false
==> testnode1:  -- Sound Type:	
==> testnode1:  -- Keymap:            de
==> testnode1:  -- TPM Backend:       passthrough
==> testnode1:  -- TPM Path:          
==> testnode1:  -- Disks:         vdb(raw, sata, 10G)
==> testnode1:  -- Disk(vdb):     /home/mythtv/libvirt_storage/testcluster0_shared_disk.raw Shared (Remove only manually) Not created - using existed.
==> testnode1:  -- INPUT:             type=mouse, bus=ps2
==> testnode1: ================
==> testnode1: Machine id: 9ca1a416-afd8-489c-9bd8-d6cd56b517d5
==> testnode1: Should be mounting folders
==> testnode1:  /vagrant, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/vagrant", :hostpath=>"/home/mythtv/virtual-exascaler-cluster/vagrant", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee393d86d0 @logger=#<Log4r::Logger:0x00007fee393d8680 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee39380b10 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee3933c618 @logger=#<Log4r::Logger:0x00007fee3933c5c8 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode1 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee39381510 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee393811f0 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/vagrant", :mount=>true, :readonly=>nil, :mount_tag=>"b7b64a84d394753b9a282f2ddc88074"}
==> testnode1: ================
==> testnode1: Machine id: 9ca1a416-afd8-489c-9bd8-d6cd56b517d5
==> testnode1: Should be mounting folders
==> testnode1:  /sources, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/sources", :hostpath=>"/home/mythtv/virtual-exascaler-cluster/packer/sources", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee393d86d0 @logger=#<Log4r::Logger:0x00007fee393d8680 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee39380b10 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee3933c618 @logger=#<Log4r::Logger:0x00007fee3933c5c8 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode1 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee39381510 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee393811f0 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/sources", :mount=>true, :readonly=>nil, :mount_tag=>"579717b61b953f2e3380eed78c150de"}
==> testnode1: ================
==> testnode1: Machine id: 9ca1a416-afd8-489c-9bd8-d6cd56b517d5
==> testnode1: Should be mounting folders
==> testnode1:  /shared, opts: {:type=>:"9p", :disabled=>false, :accessmode=>"mapped", :guestpath=>"/shared", :hostpath=>"/home/mythtv/shared_folder_for_vms", :__vagrantfile=>true, :plugin=>#<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee393d86d0 @logger=#<Log4r::Logger:0x00007fee393d8680 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_logger=#<Log4r::Logger:0x00007fee39380b10 @fullname="vagrant::capability_host::vagrantplugins::syncedfolder9p::syncedfolder", @outputters=[], @additive=true, @name="syncedfolder", @path="vagrant::capability_host::vagrantplugins::syncedfolder9p", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>, @cap_host_chain=[[:"9p", #<VagrantPlugins::SyncedFolder9P::SyncedFolder:0x00007fee3933c618 @logger=#<Log4r::Logger:0x00007fee3933c5c8 @fullname="vagrant_libvirt::synced_folders::9p", @outputters=[], @additive=true, @name="9p", @path="vagrant_libvirt::synced_folders", @parent=#<Log4r::RootLogger:0x00005608a916b3b0 @level=0, @outputters=[]>, @level=0, @trace=false>>]], @cap_args=[#<Vagrant::Machine: testnode1 (VagrantPlugins::ProviderLibvirt::Provider)>], @cap_caps={:virtualbox=>#<Vagrant::Registry:0x00007fee39381510 @items={:mount_options=>#<Proc:0x00005608a95aa598 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:72>, :mount_type=>#<Proc:0x00005608a95aa4d0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:77>, :mount_name=>#<Proc:0x00005608a95aa3e0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/providers/virtualbox/plugin.rb:82>}, @results_cache={}>, :smb=>#<Vagrant::Registry:0x00007fee393811f0 @items={:default_fstab_modification=>#<Proc:0x00005608a957fd48 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:26>, :mount_options=>#<Proc:0x00005608a957fcd0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:31>, :mount_name=>#<Proc:0x00005608a957fc58 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:36>, :mount_type=>#<Proc:0x00005608a957fbe0 /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/plugins/synced_folders/smb/plugin.rb:41>}, @results_cache={}>}>, :target=>"/shared", :mount=>true, :readonly=>nil, :mount_tag=>"174fef947a3fd77773110f87bd00cf1"}
==> testnode1: Creating shared folders metadata...
==> testnode1: Starting domain.
==> testnode1: Waiting for domain to get an IP address...
==> testnode1: Waiting for machine to boot. This may take a few minutes...
    testnode1: SSH address: 192.168.121.194:22
    testnode1: SSH username: root
    testnode1: SSH auth method: password
    testnode1: 
    testnode1: Inserting generated public key within guest...
    testnode1: Removing insecure key from the guest if it's present...
    testnode1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> testnode1: Machine booted and ready!
==> testnode1: Setting hostname...
==> testnode1: mounting 9p share in guest
==> testnode1: Setting time zone to 'Europe/Berlin'...
$ vagrant status
Current machine states:

testnode0                 running (libvirt)
testnode1                 running (libvirt)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

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

No branches or pull requests

2 participants