vagrant-libvirt 0.1.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +530 -100
  3. data/lib/vagrant-libvirt/action.rb +7 -1
  4. data/lib/vagrant-libvirt/action/clean_machine_folder.rb +28 -0
  5. data/lib/vagrant-libvirt/action/create_domain.rb +78 -22
  6. data/lib/vagrant-libvirt/action/create_domain_volume.rb +57 -57
  7. data/lib/vagrant-libvirt/action/create_network_interfaces.rb +1 -3
  8. data/lib/vagrant-libvirt/action/create_networks.rb +11 -4
  9. data/lib/vagrant-libvirt/action/destroy_domain.rb +1 -1
  10. data/lib/vagrant-libvirt/action/forward_ports.rb +40 -40
  11. data/lib/vagrant-libvirt/action/halt_domain.rb +25 -9
  12. data/lib/vagrant-libvirt/action/handle_box_image.rb +163 -72
  13. data/lib/vagrant-libvirt/action/is_running.rb +1 -3
  14. data/lib/vagrant-libvirt/action/is_suspended.rb +4 -4
  15. data/lib/vagrant-libvirt/action/package_domain.rb +10 -4
  16. data/lib/vagrant-libvirt/action/start_domain.rb +86 -29
  17. data/lib/vagrant-libvirt/action/wait_till_up.rb +8 -52
  18. data/lib/vagrant-libvirt/cap/{mount_p9.rb → mount_9p.rb} +2 -2
  19. data/lib/vagrant-libvirt/cap/mount_virtiofs.rb +37 -0
  20. data/lib/vagrant-libvirt/cap/public_address.rb +16 -0
  21. data/lib/vagrant-libvirt/cap/{synced_folder.rb → synced_folder_9p.rb} +4 -5
  22. data/lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb +109 -0
  23. data/lib/vagrant-libvirt/config.rb +257 -34
  24. data/lib/vagrant-libvirt/driver.rb +49 -32
  25. data/lib/vagrant-libvirt/errors.rb +24 -1
  26. data/lib/vagrant-libvirt/plugin.rb +19 -5
  27. data/lib/vagrant-libvirt/provider.rb +2 -9
  28. data/lib/vagrant-libvirt/templates/domain.xml.erb +40 -10
  29. data/lib/vagrant-libvirt/templates/private_network.xml.erb +1 -1
  30. data/lib/vagrant-libvirt/templates/public_interface.xml.erb +5 -1
  31. data/lib/vagrant-libvirt/util.rb +1 -0
  32. data/lib/vagrant-libvirt/util/erb_template.rb +6 -7
  33. data/lib/vagrant-libvirt/util/network_util.rb +21 -3
  34. data/lib/vagrant-libvirt/util/ui.rb +23 -0
  35. data/lib/vagrant-libvirt/version +1 -0
  36. data/lib/vagrant-libvirt/version.rb +72 -1
  37. data/locales/en.yml +12 -0
  38. data/spec/spec_helper.rb +37 -3
  39. data/spec/support/binding_proc.rb +24 -0
  40. data/spec/support/libvirt_context.rb +3 -1
  41. data/spec/support/matchers/have_file_content.rb +63 -0
  42. data/spec/support/sharedcontext.rb +7 -3
  43. data/spec/unit/action/clean_machine_folder_spec.rb +48 -0
  44. data/spec/unit/action/create_domain_spec.rb +166 -0
  45. data/spec/unit/action/create_domain_spec/default_system_storage_pool.xml +17 -0
  46. data/spec/unit/action/create_domain_spec/default_user_storage_pool.xml +17 -0
  47. data/spec/unit/action/create_domain_volume_spec.rb +102 -0
  48. data/spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml +21 -0
  49. data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml +21 -0
  50. data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml +21 -0
  51. data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml +21 -0
  52. data/spec/unit/action/destroy_domain_spec.rb +3 -3
  53. data/spec/unit/action/forward_ports_spec.rb +202 -0
  54. data/spec/unit/action/halt_domain_spec.rb +90 -0
  55. data/spec/unit/action/handle_box_image_spec.rb +363 -0
  56. data/spec/unit/action/set_name_of_domain_spec.rb +2 -2
  57. data/spec/unit/action/start_domain_spec.rb +231 -0
  58. data/spec/unit/action/start_domain_spec/clock_timer_rtc.xml +50 -0
  59. data/spec/unit/action/start_domain_spec/default.xml +48 -0
  60. data/spec/unit/action/start_domain_spec/default_added_tpm_path.xml +48 -0
  61. data/spec/unit/action/start_domain_spec/default_added_tpm_version.xml +48 -0
  62. data/spec/unit/action/wait_till_up_spec.rb +22 -21
  63. data/spec/unit/config_spec.rb +438 -0
  64. data/spec/unit/provider_spec.rb +11 -0
  65. data/spec/unit/templates/domain_all_settings.xml +16 -3
  66. data/spec/unit/templates/domain_custom_cpu_model.xml +4 -1
  67. data/spec/unit/templates/domain_defaults.xml +4 -1
  68. data/spec/unit/templates/domain_spec.rb +102 -3
  69. data/spec/unit/templates/tpm/version_1.2.xml +54 -0
  70. data/spec/unit/templates/tpm/version_2.0.xml +53 -0
  71. metadata +108 -16
  72. data/lib/vagrant-libvirt/action/halt_confirm.rb +0 -20
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+ require 'support/sharedcontext'
3
+
4
+ describe 'VagrantPlugins::ProviderLibvirt::Provider' do
5
+ require 'vagrant-libvirt/provider'
6
+
7
+ include_context 'unit'
8
+
9
+ describe '#ssh_info' do
10
+ end
11
+ end
@@ -1,5 +1,7 @@
1
1
  <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
2
  <name></name>
3
+ <title>title</title>
4
+ <description>description</description>
3
5
  <uuid></uuid>
4
6
  <memory></memory>
5
7
  <vcpu cpuset='1-4,^3,6'>1</vcpu>
@@ -32,33 +34,44 @@
32
34
  <pae/>
33
35
  <hyperv>
34
36
  <BBB state='on' />
37
+ <spinlocks state='on' retries='4096' />
35
38
  </hyperv>
36
39
  </features>
37
- <clock offset='utc'/>
40
+ <clock offset='variable'>
41
+ <timer name='t1'/>
42
+ <timer name='t2' track='b' tickpolicy='c' frequency='d' mode='e' present='yes'/>
43
+ </clock>
38
44
  <devices>
39
45
  <emulator>/usr/bin/kvm-spice</emulator>
40
46
  <disk type='file' device='disk'>
41
- <driver name='qemu' type='qcow2' cache='unsafe'/>
47
+ <driver name='qemu' type='qcow2' cache='unsafe' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
42
48
  <source file='/var/lib/libvirt/images/test.qcow2'/>
43
49
  <target dev='vda' bus='ide'/>
44
50
  </disk>
51
+ <disk type='file' device='disk'>
52
+ <driver name='qemu' type='qcow2' cache='unsafe' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
53
+ <source file='/var/lib/libvirt/images/test2.qcow2'/>
54
+ <target dev='vdb' bus='ide'/>
55
+ </disk>
45
56
  <disk type='file' device='disk'>
46
57
  <driver name='qemu' type='qcow2' cache='default'/>
47
58
  <source file='/var/lib/libvirt/images/test-disk1.qcow2'/>
48
59
  <target dev='vdb' bus='virtio'/>
49
60
  </disk>
50
61
  <disk type='file' device='disk'>
51
- <driver name='qemu' type='qcow2' cache='default'/>
62
+ <driver name='qemu' type='qcow2' cache='default' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
52
63
  <source file='/var/lib/libvirt/images/test-disk2.qcow2'/>
53
64
  <target dev='vdc' bus='virtio'/>
54
65
  </disk>
55
66
 
56
67
  <disk type='file' device='cdrom'>
68
+ <driver name='qemu' type='raw' />
57
69
  <source file=''/>
58
70
  <target dev='hda' bus='ide'/>
59
71
  <readonly/>
60
72
  </disk>
61
73
  <disk type='file' device='cdrom'>
74
+ <driver name='qemu' type='raw' />
62
75
  <source file=''/>
63
76
  <target dev='hdb' bus='ide'/>
64
77
  <readonly/>
@@ -1,5 +1,7 @@
1
1
  <domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
2
  <name></name>
3
+ <title></title>
4
+ <description></description>
3
5
  <uuid></uuid>
4
6
  <memory></memory>
5
7
  <vcpu>1</vcpu>
@@ -21,7 +23,8 @@
21
23
  <apic/>
22
24
  <pae/>
23
25
  </features>
24
- <clock offset='utc'/>
26
+ <clock offset='utc'>
27
+ </clock>
25
28
  <devices>
26
29
 
27
30
 
@@ -1,5 +1,7 @@
1
1
  <domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
2
  <name></name>
3
+ <title></title>
4
+ <description></description>
3
5
  <uuid></uuid>
4
6
  <memory></memory>
5
7
  <vcpu>1</vcpu>
@@ -21,7 +23,8 @@
21
23
  <apic/>
22
24
  <pae/>
23
25
  </features>
24
- <clock offset='utc'/>
26
+ <clock offset='utc'>
27
+ </clock>
25
28
  <devices>
26
29
 
27
30
 
@@ -9,6 +9,13 @@ describe 'templates/domain' do
9
9
  class DomainTemplateHelper < VagrantPlugins::ProviderLibvirt::Config
10
10
  include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
11
11
 
12
+ attr_accessor :domain_volumes
13
+
14
+ def initialize
15
+ super
16
+ @domain_volumes = []
17
+ end
18
+
12
19
  def finalize!
13
20
  super
14
21
  end
@@ -27,10 +34,16 @@ describe 'templates/domain' do
27
34
 
28
35
  context 'when all settings enabled' do
29
36
  before do
37
+ domain.title = 'title'
38
+ domain.description = 'description'
30
39
  domain.instance_variable_set('@domain_type', 'kvm')
31
40
  domain.cpu_mode = 'custom'
32
41
  domain.cpu_feature(name: 'AAA', policy: 'required')
33
42
  domain.hyperv_feature(name: 'BBB', state: 'on')
43
+ domain.clock_offset = 'variable'
44
+ domain.clock_timer(name: 't1')
45
+ domain.clock_timer(name: 't2', track: 'b', tickpolicy: 'c', frequency: 'd', mode: 'e', present: 'yes')
46
+ domain.hyperv_feature(name: 'spinlocks', state: 'on', retries: '4096')
34
47
  domain.cputopology(sockets: '1', cores: '3', threads: '2')
35
48
  domain.machine_type = 'pc-compatible'
36
49
  domain.machine_arch = 'x86_64'
@@ -39,12 +52,24 @@ describe 'templates/domain' do
39
52
  domain.boot('cdrom')
40
53
  domain.boot('hd')
41
54
  domain.emulator_path = '/usr/bin/kvm-spice'
42
- domain.instance_variable_set('@domain_volume_path', '/var/lib/libvirt/images/test.qcow2')
43
- domain.instance_variable_set('@domain_volume_cache', 'unsafe')
55
+ domain.instance_variable_set('@domain_volume_cache', 'deprecated')
44
56
  domain.disk_bus = 'ide'
45
57
  domain.disk_device = 'vda'
58
+ domain.disk_driver(:cache => 'unsafe', :io => 'threads', :copy_on_read => 'on', :discard => 'unmap', :detect_zeroes => 'on')
59
+ domain.domain_volumes.push({
60
+ :dev => 1.vdev.to_s,
61
+ :cache => 'unsafe',
62
+ :bus => domain.disk_bus,
63
+ :path => '/var/lib/libvirt/images/test.qcow2'
64
+ })
65
+ domain.domain_volumes.push({
66
+ :dev => 2.vdev.to_s,
67
+ :cache => 'unsafe',
68
+ :bus => domain.disk_bus,
69
+ :path => '/var/lib/libvirt/images/test2.qcow2'
70
+ })
46
71
  domain.storage(:file, path: 'test-disk1.qcow2')
47
- domain.storage(:file, path: 'test-disk2.qcow2')
72
+ domain.storage(:file, path: 'test-disk2.qcow2', io: 'threads', copy_on_read: 'on', discard: 'unmap', detect_zeroes: 'on')
48
73
  domain.disks.each do |disk|
49
74
  disk[:absolute_path] = '/var/lib/libvirt/images/' + disk[:path]
50
75
  end
@@ -103,4 +128,78 @@ describe 'templates/domain' do
103
128
  expect(domain.to_xml('domain')).to eq xml_expected
104
129
  end
105
130
  end
131
+
132
+ context 'when tpm 2.0 device is specified' do
133
+ before do
134
+ domain.tpm_version = '2.0'
135
+ domain.tpm_type = 'emulator'
136
+ domain.tpm_model = 'tpm-crb'
137
+ end
138
+ let(:test_file) { 'tpm/version_2.0.xml' }
139
+ it 'renders template' do
140
+ domain.finalize!
141
+ expect(domain.to_xml('domain')).to eq xml_expected
142
+ end
143
+ end
144
+
145
+ context 'when tpm 1.2 device is implicitly used' do
146
+ before do
147
+ domain.tpm_path = '/dev/tpm0'
148
+ end
149
+ let(:test_file) { 'tpm/version_1.2.xml' }
150
+ it 'renders template' do
151
+ domain.finalize!
152
+ expect(domain.to_xml('domain')).to eq xml_expected
153
+ end
154
+ end
155
+
156
+ context 'memballoon' do
157
+ context 'default' do
158
+ it 'renders without specifying the xml tag' do
159
+ domain.finalize!
160
+
161
+ expect(domain.to_xml('domain')).to_not match(/memballoon/)
162
+ end
163
+ end
164
+
165
+ context 'memballon enabled' do
166
+ before do
167
+ domain.memballoon_enabled = true
168
+ end
169
+
170
+ it 'renders with memballon element' do
171
+ domain.finalize!
172
+
173
+ expect(domain.to_xml('domain')).to match(/<memballoon model='virtio'>/)
174
+ expect(domain.to_xml('domain')).to match(/<address type='pci' domain='0x0000' bus='0x00' slot='0x0f' function='0x0'\/>/)
175
+ end
176
+
177
+ context 'all settings specified' do
178
+ before do
179
+ domain.memballoon_model = "virtio-non-transitional"
180
+ domain.memballoon_pci_bus = "0x01"
181
+ domain.memballoon_pci_slot = "0x05"
182
+ end
183
+
184
+ it 'renders with specified values' do
185
+ domain.finalize!
186
+
187
+ expect(domain.to_xml('domain')).to match(/<memballoon model='virtio-non-transitional'>/)
188
+ expect(domain.to_xml('domain')).to match(/<address type='pci' domain='0x0000' bus='0x01' slot='0x05' function='0x0'\/>/)
189
+ end
190
+ end
191
+ end
192
+
193
+ context 'memballon disabled' do
194
+ before do
195
+ domain.memballoon_enabled = false
196
+ end
197
+
198
+ it 'renders the memballoon element with model none' do
199
+ domain.finalize!
200
+
201
+ expect(domain.to_xml('domain')).to match(/<memballoon model='none'\/>/)
202
+ end
203
+ end
204
+ end
106
205
  end
@@ -0,0 +1,54 @@
1
+ <domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
+ <name></name>
3
+ <title></title>
4
+ <description></description>
5
+ <uuid></uuid>
6
+ <memory></memory>
7
+ <vcpu>1</vcpu>
8
+
9
+
10
+ <cpu mode='host-model'>
11
+ <model fallback='allow'></model>
12
+ </cpu>
13
+
14
+
15
+ <os>
16
+ <type>hvm</type>
17
+ <kernel></kernel>
18
+ <initrd></initrd>
19
+ <cmdline></cmdline>
20
+ </os>
21
+ <features>
22
+ <acpi/>
23
+ <apic/>
24
+ <pae/>
25
+ </features>
26
+ <clock offset='utc'>
27
+ </clock>
28
+ <devices>
29
+
30
+
31
+ <serial type='pty'>
32
+ <target port='0'/>
33
+ </serial>
34
+ <console type='pty'>
35
+ <target port='0'/>
36
+ </console>
37
+
38
+
39
+ <input type='mouse' bus='ps2'/>
40
+
41
+ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us' />
42
+ <video>
43
+ <model type='cirrus' vram='9216' heads='1'/>
44
+ </video>
45
+
46
+
47
+ <tpm model='tpm-tis'>
48
+ <backend type='passthrough'>
49
+ <device path='/dev/tpm0'/>
50
+ </backend>
51
+ </tpm>
52
+ </devices>
53
+
54
+ </domain>
@@ -0,0 +1,53 @@
1
+ <domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
+ <name></name>
3
+ <title></title>
4
+ <description></description>
5
+ <uuid></uuid>
6
+ <memory></memory>
7
+ <vcpu>1</vcpu>
8
+
9
+
10
+ <cpu mode='host-model'>
11
+ <model fallback='allow'></model>
12
+ </cpu>
13
+
14
+
15
+ <os>
16
+ <type>hvm</type>
17
+ <kernel></kernel>
18
+ <initrd></initrd>
19
+ <cmdline></cmdline>
20
+ </os>
21
+ <features>
22
+ <acpi/>
23
+ <apic/>
24
+ <pae/>
25
+ </features>
26
+ <clock offset='utc'>
27
+ </clock>
28
+ <devices>
29
+
30
+
31
+ <serial type='pty'>
32
+ <target port='0'/>
33
+ </serial>
34
+ <console type='pty'>
35
+ <target port='0'/>
36
+ </console>
37
+
38
+
39
+ <input type='mouse' bus='ps2'/>
40
+
41
+ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us' />
42
+ <video>
43
+ <model type='cirrus' vram='9216' heads='1'/>
44
+ </video>
45
+
46
+
47
+ <tpm model='tpm-crb'>
48
+ <backend type='emulator' version='2.0'>
49
+ </backend>
50
+ </tpm>
51
+ </devices>
52
+
53
+ </domain>
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Stanek
8
8
  - Dima Vasilets
9
9
  - Brian Pitts
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-05-12 00:00:00.000000000 Z
13
+ date: 2021-05-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec-core
@@ -54,6 +54,34 @@ dependencies:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 3.5.0
57
+ - !ruby/object:Gem::Dependency
58
+ name: simplecov
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: simplecov-lcov
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
57
85
  - !ruby/object:Gem::Dependency
58
86
  name: fog-libvirt
59
87
  requirement: !ruby/object:Gem::Requirement
@@ -82,6 +110,20 @@ dependencies:
82
110
  - - "~>"
83
111
  - !ruby/object:Gem::Version
84
112
  version: '2.1'
113
+ - !ruby/object:Gem::Dependency
114
+ name: rexml
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
85
127
  - !ruby/object:Gem::Dependency
86
128
  name: nokogiri
87
129
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +165,7 @@ files:
123
165
  - README.md
124
166
  - lib/vagrant-libvirt.rb
125
167
  - lib/vagrant-libvirt/action.rb
168
+ - lib/vagrant-libvirt/action/clean_machine_folder.rb
126
169
  - lib/vagrant-libvirt/action/create_domain.rb
127
170
  - lib/vagrant-libvirt/action/create_domain_volume.rb
128
171
  - lib/vagrant-libvirt/action/create_network_interfaces.rb
@@ -130,7 +173,6 @@ files:
130
173
  - lib/vagrant-libvirt/action/destroy_domain.rb
131
174
  - lib/vagrant-libvirt/action/destroy_networks.rb
132
175
  - lib/vagrant-libvirt/action/forward_ports.rb
133
- - lib/vagrant-libvirt/action/halt_confirm.rb
134
176
  - lib/vagrant-libvirt/action/halt_domain.rb
135
177
  - lib/vagrant-libvirt/action/handle_box_image.rb
136
178
  - lib/vagrant-libvirt/action/handle_storage_pool.rb
@@ -156,9 +198,12 @@ files:
156
198
  - lib/vagrant-libvirt/action/start_domain.rb
157
199
  - lib/vagrant-libvirt/action/suspend_domain.rb
158
200
  - lib/vagrant-libvirt/action/wait_till_up.rb
159
- - lib/vagrant-libvirt/cap/mount_p9.rb
201
+ - lib/vagrant-libvirt/cap/mount_9p.rb
202
+ - lib/vagrant-libvirt/cap/mount_virtiofs.rb
160
203
  - lib/vagrant-libvirt/cap/nic_mac_addresses.rb
161
- - lib/vagrant-libvirt/cap/synced_folder.rb
204
+ - lib/vagrant-libvirt/cap/public_address.rb
205
+ - lib/vagrant-libvirt/cap/synced_folder_9p.rb
206
+ - lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb
162
207
  - lib/vagrant-libvirt/config.rb
163
208
  - lib/vagrant-libvirt/driver.rb
164
209
  - lib/vagrant-libvirt/errors.rb
@@ -176,25 +221,49 @@ files:
176
221
  - lib/vagrant-libvirt/util/nfs.rb
177
222
  - lib/vagrant-libvirt/util/storage_util.rb
178
223
  - lib/vagrant-libvirt/util/timer.rb
224
+ - lib/vagrant-libvirt/util/ui.rb
225
+ - lib/vagrant-libvirt/version
179
226
  - lib/vagrant-libvirt/version.rb
180
227
  - locales/en.yml
181
228
  - spec/spec_helper.rb
229
+ - spec/support/binding_proc.rb
182
230
  - spec/support/environment_helper.rb
183
231
  - spec/support/libvirt_context.rb
232
+ - spec/support/matchers/have_file_content.rb
184
233
  - spec/support/sharedcontext.rb
234
+ - spec/unit/action/clean_machine_folder_spec.rb
235
+ - spec/unit/action/create_domain_spec.rb
236
+ - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
237
+ - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
238
+ - spec/unit/action/create_domain_volume_spec.rb
239
+ - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
240
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
241
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
242
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
185
243
  - spec/unit/action/destroy_domain_spec.rb
244
+ - spec/unit/action/forward_ports_spec.rb
245
+ - spec/unit/action/halt_domain_spec.rb
246
+ - spec/unit/action/handle_box_image_spec.rb
186
247
  - spec/unit/action/set_name_of_domain_spec.rb
248
+ - spec/unit/action/start_domain_spec.rb
249
+ - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
250
+ - spec/unit/action/start_domain_spec/default.xml
251
+ - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
252
+ - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
187
253
  - spec/unit/action/wait_till_up_spec.rb
188
254
  - spec/unit/config_spec.rb
255
+ - spec/unit/provider_spec.rb
189
256
  - spec/unit/templates/domain_all_settings.xml
190
257
  - spec/unit/templates/domain_custom_cpu_model.xml
191
258
  - spec/unit/templates/domain_defaults.xml
192
259
  - spec/unit/templates/domain_spec.rb
260
+ - spec/unit/templates/tpm/version_1.2.xml
261
+ - spec/unit/templates/tpm/version_2.0.xml
193
262
  homepage: https://github.com/vagrant-libvirt/vagrant-libvirt
194
263
  licenses:
195
264
  - MIT
196
265
  metadata: {}
197
- post_install_message:
266
+ post_install_message:
198
267
  rdoc_options: []
199
268
  require_paths:
200
269
  - lib
@@ -209,20 +278,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
278
  - !ruby/object:Gem::Version
210
279
  version: '0'
211
280
  requirements: []
212
- rubygems_version: 3.0.6
213
- signing_key:
281
+ rubyforge_project:
282
+ rubygems_version: 2.7.11
283
+ signing_key:
214
284
  specification_version: 4
215
285
  summary: libvirt provider for Vagrant.
216
286
  test_files:
217
- - spec/support/libvirt_context.rb
218
- - spec/support/sharedcontext.rb
219
- - spec/support/environment_helper.rb
220
- - spec/unit/templates/domain_all_settings.xml
221
- - spec/unit/templates/domain_custom_cpu_model.xml
222
- - spec/unit/templates/domain_defaults.xml
223
- - spec/unit/templates/domain_spec.rb
287
+ - spec/unit/action/start_domain_spec.rb
288
+ - spec/unit/action/create_domain_spec.rb
289
+ - spec/unit/action/forward_ports_spec.rb
224
290
  - spec/unit/action/wait_till_up_spec.rb
291
+ - spec/unit/action/clean_machine_folder_spec.rb
292
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
293
+ - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
294
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
295
+ - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
296
+ - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
297
+ - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
298
+ - spec/unit/action/start_domain_spec/default.xml
299
+ - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
225
300
  - spec/unit/action/destroy_domain_spec.rb
301
+ - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
302
+ - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
303
+ - spec/unit/action/handle_box_image_spec.rb
226
304
  - spec/unit/action/set_name_of_domain_spec.rb
305
+ - spec/unit/action/halt_domain_spec.rb
306
+ - spec/unit/action/create_domain_volume_spec.rb
227
307
  - spec/unit/config_spec.rb
308
+ - spec/unit/provider_spec.rb
309
+ - spec/unit/templates/domain_defaults.xml
310
+ - spec/unit/templates/domain_all_settings.xml
311
+ - spec/unit/templates/domain_spec.rb
312
+ - spec/unit/templates/tpm/version_1.2.xml
313
+ - spec/unit/templates/tpm/version_2.0.xml
314
+ - spec/unit/templates/domain_custom_cpu_model.xml
315
+ - spec/support/libvirt_context.rb
316
+ - spec/support/matchers/have_file_content.rb
317
+ - spec/support/environment_helper.rb
318
+ - spec/support/binding_proc.rb
319
+ - spec/support/sharedcontext.rb
228
320
  - spec/spec_helper.rb