vagrant-libvirt 0.0.45 → 0.4.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +542 -167
  3. data/lib/vagrant-libvirt/action.rb +2 -2
  4. data/lib/vagrant-libvirt/action/create_domain.rb +112 -42
  5. data/lib/vagrant-libvirt/action/create_domain_volume.rb +14 -10
  6. data/lib/vagrant-libvirt/action/create_network_interfaces.rb +8 -5
  7. data/lib/vagrant-libvirt/action/create_networks.rb +2 -2
  8. data/lib/vagrant-libvirt/action/destroy_domain.rb +1 -1
  9. data/lib/vagrant-libvirt/action/forward_ports.rb +10 -8
  10. data/lib/vagrant-libvirt/action/halt_domain.rb +1 -1
  11. data/lib/vagrant-libvirt/action/handle_box_image.rb +28 -60
  12. data/lib/vagrant-libvirt/action/handle_storage_pool.rb +4 -4
  13. data/lib/vagrant-libvirt/action/package_domain.rb +64 -12
  14. data/lib/vagrant-libvirt/action/prepare_nfs_settings.rb +3 -9
  15. data/lib/vagrant-libvirt/action/prune_nfs_exports.rb +19 -9
  16. data/lib/vagrant-libvirt/action/remove_libvirt_image.rb +2 -2
  17. data/lib/vagrant-libvirt/action/remove_stale_volume.rb +17 -11
  18. data/lib/vagrant-libvirt/action/set_boot_order.rb +2 -2
  19. data/lib/vagrant-libvirt/action/set_name_of_domain.rb +6 -9
  20. data/lib/vagrant-libvirt/action/start_domain.rb +87 -30
  21. data/lib/vagrant-libvirt/action/wait_till_up.rb +10 -32
  22. data/lib/vagrant-libvirt/cap/public_address.rb +16 -0
  23. data/lib/vagrant-libvirt/cap/synced_folder.rb +3 -3
  24. data/lib/vagrant-libvirt/config.rb +294 -42
  25. data/lib/vagrant-libvirt/driver.rb +49 -34
  26. data/lib/vagrant-libvirt/errors.rb +5 -5
  27. data/lib/vagrant-libvirt/plugin.rb +7 -2
  28. data/lib/vagrant-libvirt/provider.rb +2 -9
  29. data/lib/vagrant-libvirt/templates/domain.xml.erb +52 -10
  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 +6 -1
  34. data/lib/vagrant-libvirt/util/nfs.rb +17 -0
  35. data/lib/vagrant-libvirt/util/ui.rb +23 -0
  36. data/lib/vagrant-libvirt/version +1 -0
  37. data/lib/vagrant-libvirt/version.rb +72 -1
  38. data/locales/en.yml +6 -6
  39. data/spec/spec_helper.rb +28 -2
  40. data/spec/support/libvirt_context.rb +3 -1
  41. data/spec/support/sharedcontext.rb +7 -3
  42. data/spec/unit/action/create_domain_spec.rb +160 -0
  43. data/spec/unit/action/create_domain_spec/default_system_storage_pool.xml +17 -0
  44. data/spec/unit/action/create_domain_spec/default_user_storage_pool.xml +17 -0
  45. data/spec/unit/action/destroy_domain_spec.rb +2 -2
  46. data/spec/unit/action/set_name_of_domain_spec.rb +3 -3
  47. data/spec/unit/action/start_domain_spec.rb +231 -0
  48. data/spec/unit/action/start_domain_spec/clock_timer_rtc.xml +50 -0
  49. data/spec/unit/action/start_domain_spec/default.xml +48 -0
  50. data/spec/unit/action/start_domain_spec/default_added_tpm_path.xml +48 -0
  51. data/spec/unit/action/start_domain_spec/default_added_tpm_version.xml +48 -0
  52. data/spec/unit/action/wait_till_up_spec.rb +14 -9
  53. data/spec/unit/config_spec.rb +438 -0
  54. data/spec/unit/provider_spec.rb +11 -0
  55. data/spec/unit/templates/domain_all_settings.xml +20 -5
  56. data/spec/unit/templates/domain_custom_cpu_model.xml +4 -1
  57. data/spec/unit/templates/domain_defaults.xml +4 -1
  58. data/spec/unit/templates/domain_spec.rb +92 -4
  59. data/spec/unit/templates/tpm/version_1.2.xml +54 -0
  60. data/spec/unit/templates/tpm/version_2.0.xml +53 -0
  61. metadata +91 -36
  62. data/.coveralls.yml +0 -1
  63. data/.github/issue_template.md +0 -37
  64. data/.gitignore +0 -21
  65. data/.travis.yml +0 -24
  66. data/Gemfile +0 -26
  67. data/Rakefile +0 -8
  68. data/example_box/README.md +0 -29
  69. data/example_box/Vagrantfile +0 -60
  70. data/example_box/metadata.json +0 -5
  71. data/lib/vagrant-libvirt/templates/default_storage_volume.xml.erb +0 -14
  72. data/tools/create_box.sh +0 -130
  73. data/tools/prepare_redhat_for_box.sh +0 -119
  74. data/vagrant-libvirt.gemspec +0 -51
@@ -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,8 +1,10 @@
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
- <vcpu>1</vcpu>
7
+ <vcpu cpuset='1-4,^3,6'>1</vcpu>
6
8
 
7
9
 
8
10
  <cpu mode='custom'>
@@ -11,6 +13,12 @@
11
13
  <topology sockets='1' cores='3' threads='2'/>
12
14
  </cpu>
13
15
 
16
+ <numatune>
17
+ <memory nodeset='1-4,^3,6'/>
18
+ </numatune>
19
+ <cputune>
20
+ <shares>1024</shares>
21
+ </cputune>
14
22
 
15
23
  <os>
16
24
  <type arch='x86_64' machine='pc-compatible'>hvm</type>
@@ -28,11 +36,14 @@
28
36
  <BBB state='on' />
29
37
  </hyperv>
30
38
  </features>
31
- <clock offset='utc'/>
39
+ <clock offset='variable'>
40
+ <timer name='t1'/>
41
+ <timer name='t2' track='b' tickpolicy='c' frequency='d' mode='e' present='yes'/>
42
+ </clock>
32
43
  <devices>
33
44
  <emulator>/usr/bin/kvm-spice</emulator>
34
45
  <disk type='file' device='disk'>
35
- <driver name='qemu' type='qcow2' cache='unsafe'/>
46
+ <driver name='qemu' type='qcow2' cache='unsafe' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
36
47
  <source file='/var/lib/libvirt/images/test.qcow2'/>
37
48
  <target dev='vda' bus='ide'/>
38
49
  </disk>
@@ -42,7 +53,7 @@
42
53
  <target dev='vdb' bus='virtio'/>
43
54
  </disk>
44
55
  <disk type='file' device='disk'>
45
- <driver name='qemu' type='qcow2' cache='default'/>
56
+ <driver name='qemu' type='qcow2' cache='default' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
46
57
  <source file='/var/lib/libvirt/images/test-disk2.qcow2'/>
47
58
  <target dev='vdc' bus='virtio'/>
48
59
  </disk>
@@ -104,7 +115,7 @@
104
115
  </hostdev>
105
116
  <hostdev mode='subsystem' type='pci' managed='yes'>
106
117
  <source>
107
- <address domain='0x0000'
118
+ <address domain='0x0001'
108
119
  bus='0x03'
109
120
  slot='0x00'
110
121
  function='0x0'/>
@@ -137,5 +148,9 @@
137
148
  <qemu:commandline>
138
149
  <qemu:arg value='-device'/>
139
150
  <qemu:arg value='dummy-device'/>
151
+ <qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
152
+ <qemu:env name='QEMU_AUDIO_TIMER_PERIOD' value='150'/>
153
+ <qemu:env name='QEMU_PA_SAMPLES' value='1024'/>
154
+ <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/>
140
155
  </qemu:commandline>
141
156
  </domain>
@@ -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
 
@@ -11,7 +11,6 @@ describe 'templates/domain' do
11
11
 
12
12
  def finalize!
13
13
  super
14
- @qargs = @qemu_args
15
14
  end
16
15
  end
17
16
 
@@ -28,10 +27,15 @@ describe 'templates/domain' do
28
27
 
29
28
  context 'when all settings enabled' do
30
29
  before do
30
+ domain.title = 'title'
31
+ domain.description = 'description'
31
32
  domain.instance_variable_set('@domain_type', 'kvm')
32
33
  domain.cpu_mode = 'custom'
33
34
  domain.cpu_feature(name: 'AAA', policy: 'required')
34
35
  domain.hyperv_feature(name: 'BBB', state: 'on')
36
+ domain.clock_offset = 'variable'
37
+ domain.clock_timer(name: 't1')
38
+ domain.clock_timer(name: 't2', track: 'b', tickpolicy: 'c', frequency: 'd', mode: 'e', present: 'yes')
35
39
  domain.cputopology(sockets: '1', cores: '3', threads: '2')
36
40
  domain.machine_type = 'pc-compatible'
37
41
  domain.machine_arch = 'x86_64'
@@ -41,11 +45,12 @@ describe 'templates/domain' do
41
45
  domain.boot('hd')
42
46
  domain.emulator_path = '/usr/bin/kvm-spice'
43
47
  domain.instance_variable_set('@domain_volume_path', '/var/lib/libvirt/images/test.qcow2')
44
- domain.instance_variable_set('@domain_volume_cache', 'unsafe')
48
+ domain.instance_variable_set('@domain_volume_cache', 'deprecated')
45
49
  domain.disk_bus = 'ide'
46
50
  domain.disk_device = 'vda'
51
+ domain.disk_driver(:cache => 'unsafe', :io => 'threads', :copy_on_read => 'on', :discard => 'unmap', :detect_zeroes => 'on')
47
52
  domain.storage(:file, path: 'test-disk1.qcow2')
48
- domain.storage(:file, path: 'test-disk2.qcow2')
53
+ domain.storage(:file, path: 'test-disk2.qcow2', io: 'threads', copy_on_read: 'on', discard: 'unmap', detect_zeroes: 'on')
49
54
  domain.disks.each do |disk|
50
55
  disk[:absolute_path] = '/var/lib/libvirt/images/' + disk[:path]
51
56
  end
@@ -64,7 +69,7 @@ describe 'templates/domain' do
64
69
  source_path: '/tmp/foo')
65
70
  domain.random(model: 'random')
66
71
  domain.pci(bus: '0x06', slot: '0x12', function: '0x5')
67
- domain.pci(bus: '0x03', slot: '0x00', function: '0x0')
72
+ domain.pci(domain: '0x0001', bus: '0x03', slot: '0x00', function: '0x0')
68
73
  domain.usb_controller(model: 'nec-xhci', ports: '4')
69
74
  domain.usb(bus: '1', device: '2', vendor: '0x1234', product: '0xabcd')
70
75
  domain.redirdev(type: 'tcp', host: 'localhost', port: '4000')
@@ -76,6 +81,15 @@ describe 'templates/domain' do
76
81
 
77
82
  domain.qemuargs(value: '-device')
78
83
  domain.qemuargs(value: 'dummy-device')
84
+
85
+ domain.qemuenv(QEMU_AUDIO_DRV: 'pa')
86
+ domain.qemuenv(QEMU_AUDIO_TIMER_PERIOD: '150')
87
+ domain.qemuenv(QEMU_PA_SAMPLES: '1024')
88
+ domain.qemuenv(QEMU_PA_SERVER: '/run/user/1000/pulse/native')
89
+
90
+ domain.shares = '1024'
91
+ domain.cpuset = '1-4,^3,6'
92
+ domain.nodeset = '1-4,^3,6'
79
93
  end
80
94
  let(:test_file) { 'domain_all_settings.xml' }
81
95
  it 'renders template' do
@@ -95,4 +109,78 @@ describe 'templates/domain' do
95
109
  expect(domain.to_xml('domain')).to eq xml_expected
96
110
  end
97
111
  end
112
+
113
+ context 'when tpm 2.0 device is specified' do
114
+ before do
115
+ domain.tpm_version = '2.0'
116
+ domain.tpm_type = 'emulator'
117
+ domain.tpm_model = 'tpm-crb'
118
+ end
119
+ let(:test_file) { 'tpm/version_2.0.xml' }
120
+ it 'renders template' do
121
+ domain.finalize!
122
+ expect(domain.to_xml('domain')).to eq xml_expected
123
+ end
124
+ end
125
+
126
+ context 'when tpm 1.2 device is implicitly used' do
127
+ before do
128
+ domain.tpm_path = '/dev/tpm0'
129
+ end
130
+ let(:test_file) { 'tpm/version_1.2.xml' }
131
+ it 'renders template' do
132
+ domain.finalize!
133
+ expect(domain.to_xml('domain')).to eq xml_expected
134
+ end
135
+ end
136
+
137
+ context 'memballoon' do
138
+ context 'default' do
139
+ it 'renders without specifying the xml tag' do
140
+ domain.finalize!
141
+
142
+ expect(domain.to_xml('domain')).to_not match(/memballoon/)
143
+ end
144
+ end
145
+
146
+ context 'memballon enabled' do
147
+ before do
148
+ domain.memballoon_enabled = true
149
+ end
150
+
151
+ it 'renders with memballon element' do
152
+ domain.finalize!
153
+
154
+ expect(domain.to_xml('domain')).to match(/<memballoon model='virtio'>/)
155
+ expect(domain.to_xml('domain')).to match(/<address type='pci' domain='0x0000' bus='0x00' slot='0x0f' function='0x0'\/>/)
156
+ end
157
+
158
+ context 'all settings specified' do
159
+ before do
160
+ domain.memballoon_model = "virtio-non-transitional"
161
+ domain.memballoon_pci_bus = "0x01"
162
+ domain.memballoon_pci_slot = "0x05"
163
+ end
164
+
165
+ it 'renders with specified values' do
166
+ domain.finalize!
167
+
168
+ expect(domain.to_xml('domain')).to match(/<memballoon model='virtio-non-transitional'>/)
169
+ expect(domain.to_xml('domain')).to match(/<address type='pci' domain='0x0000' bus='0x01' slot='0x05' function='0x0'\/>/)
170
+ end
171
+ end
172
+ end
173
+
174
+ context 'memballon disabled' do
175
+ before do
176
+ domain.memballoon_enabled = false
177
+ end
178
+
179
+ it 'renders the memballoon element with model none' do
180
+ domain.finalize!
181
+
182
+ expect(domain.to_xml('domain')).to match(/<memballoon model='none'\/>/)
183
+ end
184
+ end
185
+ end
98
186
  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,17 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.4.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: 2018-10-23 00:00:00.000000000 Z
13
+ date: 2021-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: contextual_proc
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
15
29
  - !ruby/object:Gem::Dependency
16
30
  name: rspec-core
17
31
  requirement: !ruby/object:Gem::Requirement
@@ -55,47 +69,75 @@ dependencies:
55
69
  - !ruby/object:Gem::Version
56
70
  version: 3.5.0
57
71
  - !ruby/object:Gem::Dependency
58
- name: fog-libvirt
72
+ name: simplecov
59
73
  requirement: !ruby/object:Gem::Requirement
60
74
  requirements:
61
75
  - - ">="
62
76
  - !ruby/object:Gem::Version
63
- version: 0.3.0
64
- type: :runtime
77
+ version: '0'
78
+ type: :development
65
79
  prerelease: false
66
80
  version_requirements: !ruby/object:Gem::Requirement
67
81
  requirements:
68
82
  - - ">="
69
83
  - !ruby/object:Gem::Version
70
- version: 0.3.0
84
+ version: '0'
71
85
  - !ruby/object:Gem::Dependency
72
- name: nokogiri
86
+ name: simplecov-lcov
73
87
  requirement: !ruby/object:Gem::Requirement
74
88
  requirements:
75
89
  - - ">="
76
90
  - !ruby/object:Gem::Version
77
- version: 1.6.0
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ - !ruby/object:Gem::Dependency
100
+ name: fog-libvirt
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 0.6.0
78
106
  type: :runtime
79
107
  prerelease: false
80
108
  version_requirements: !ruby/object:Gem::Requirement
81
109
  requirements:
82
110
  - - ">="
83
111
  - !ruby/object:Gem::Version
84
- version: 1.6.0
112
+ version: 0.6.0
85
113
  - !ruby/object:Gem::Dependency
86
114
  name: fog-core
87
115
  requirement: !ruby/object:Gem::Requirement
88
116
  requirements:
89
117
  - - "~>"
90
118
  - !ruby/object:Gem::Version
91
- version: 1.43.0
119
+ version: '2.1'
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '2.1'
127
+ - !ruby/object:Gem::Dependency
128
+ name: nokogiri
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.6'
92
134
  type: :runtime
93
135
  prerelease: false
94
136
  version_requirements: !ruby/object:Gem::Requirement
95
137
  requirements:
96
138
  - - "~>"
97
139
  - !ruby/object:Gem::Version
98
- version: 1.43.0
140
+ version: '1.6'
99
141
  - !ruby/object:Gem::Dependency
100
142
  name: rake
101
143
  requirement: !ruby/object:Gem::Requirement
@@ -119,17 +161,8 @@ executables: []
119
161
  extensions: []
120
162
  extra_rdoc_files: []
121
163
  files:
122
- - ".coveralls.yml"
123
- - ".github/issue_template.md"
124
- - ".gitignore"
125
- - ".travis.yml"
126
- - Gemfile
127
164
  - LICENSE
128
165
  - README.md
129
- - Rakefile
130
- - example_box/README.md
131
- - example_box/Vagrantfile
132
- - example_box/metadata.json
133
166
  - lib/vagrant-libvirt.rb
134
167
  - lib/vagrant-libvirt/action.rb
135
168
  - lib/vagrant-libvirt/action/create_domain.rb
@@ -166,6 +199,7 @@ files:
166
199
  - lib/vagrant-libvirt/action/wait_till_up.rb
167
200
  - lib/vagrant-libvirt/cap/mount_p9.rb
168
201
  - lib/vagrant-libvirt/cap/nic_mac_addresses.rb
202
+ - lib/vagrant-libvirt/cap/public_address.rb
169
203
  - lib/vagrant-libvirt/cap/synced_folder.rb
170
204
  - lib/vagrant-libvirt/config.rb
171
205
  - lib/vagrant-libvirt/driver.rb
@@ -173,7 +207,6 @@ files:
173
207
  - lib/vagrant-libvirt/plugin.rb
174
208
  - lib/vagrant-libvirt/provider.rb
175
209
  - lib/vagrant-libvirt/templates/default_storage_pool.xml.erb
176
- - lib/vagrant-libvirt/templates/default_storage_volume.xml.erb
177
210
  - lib/vagrant-libvirt/templates/domain.xml.erb
178
211
  - lib/vagrant-libvirt/templates/private_network.xml.erb
179
212
  - lib/vagrant-libvirt/templates/public_interface.xml.erb
@@ -182,30 +215,41 @@ files:
182
215
  - lib/vagrant-libvirt/util/erb_template.rb
183
216
  - lib/vagrant-libvirt/util/error_codes.rb
184
217
  - lib/vagrant-libvirt/util/network_util.rb
218
+ - lib/vagrant-libvirt/util/nfs.rb
185
219
  - lib/vagrant-libvirt/util/storage_util.rb
186
220
  - lib/vagrant-libvirt/util/timer.rb
221
+ - lib/vagrant-libvirt/util/ui.rb
222
+ - lib/vagrant-libvirt/version
187
223
  - lib/vagrant-libvirt/version.rb
188
224
  - locales/en.yml
189
225
  - spec/spec_helper.rb
190
226
  - spec/support/environment_helper.rb
191
227
  - spec/support/libvirt_context.rb
192
228
  - spec/support/sharedcontext.rb
229
+ - spec/unit/action/create_domain_spec.rb
230
+ - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
231
+ - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
193
232
  - spec/unit/action/destroy_domain_spec.rb
194
233
  - spec/unit/action/set_name_of_domain_spec.rb
234
+ - spec/unit/action/start_domain_spec.rb
235
+ - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
236
+ - spec/unit/action/start_domain_spec/default.xml
237
+ - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
238
+ - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
195
239
  - spec/unit/action/wait_till_up_spec.rb
196
240
  - spec/unit/config_spec.rb
241
+ - spec/unit/provider_spec.rb
197
242
  - spec/unit/templates/domain_all_settings.xml
198
243
  - spec/unit/templates/domain_custom_cpu_model.xml
199
244
  - spec/unit/templates/domain_defaults.xml
200
245
  - spec/unit/templates/domain_spec.rb
201
- - tools/create_box.sh
202
- - tools/prepare_redhat_for_box.sh
203
- - vagrant-libvirt.gemspec
246
+ - spec/unit/templates/tpm/version_1.2.xml
247
+ - spec/unit/templates/tpm/version_2.0.xml
204
248
  homepage: https://github.com/vagrant-libvirt/vagrant-libvirt
205
249
  licenses:
206
250
  - MIT
207
251
  metadata: {}
208
- post_install_message:
252
+ post_install_message:
209
253
  rdoc_options: []
210
254
  require_paths:
211
255
  - lib
@@ -220,21 +264,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
264
  - !ruby/object:Gem::Version
221
265
  version: '0'
222
266
  requirements: []
223
- rubyforge_project:
224
- rubygems_version: 2.7.6
225
- signing_key:
267
+ rubyforge_project:
268
+ rubygems_version: 2.7.11
269
+ signing_key:
226
270
  specification_version: 4
227
271
  summary: libvirt provider for Vagrant.
228
272
  test_files:
229
- - spec/spec_helper.rb
230
- - spec/support/environment_helper.rb
231
- - spec/support/libvirt_context.rb
232
- - spec/support/sharedcontext.rb
273
+ - spec/unit/action/start_domain_spec.rb
274
+ - spec/unit/action/create_domain_spec.rb
275
+ - spec/unit/action/wait_till_up_spec.rb
276
+ - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
277
+ - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
278
+ - spec/unit/action/start_domain_spec/default.xml
279
+ - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
233
280
  - spec/unit/action/destroy_domain_spec.rb
281
+ - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
282
+ - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
234
283
  - spec/unit/action/set_name_of_domain_spec.rb
235
- - spec/unit/action/wait_till_up_spec.rb
236
284
  - spec/unit/config_spec.rb
237
- - spec/unit/templates/domain_all_settings.xml
238
- - spec/unit/templates/domain_custom_cpu_model.xml
285
+ - spec/unit/provider_spec.rb
239
286
  - spec/unit/templates/domain_defaults.xml
287
+ - spec/unit/templates/domain_all_settings.xml
240
288
  - spec/unit/templates/domain_spec.rb
289
+ - spec/unit/templates/tpm/version_1.2.xml
290
+ - spec/unit/templates/tpm/version_2.0.xml
291
+ - spec/unit/templates/domain_custom_cpu_model.xml
292
+ - spec/support/libvirt_context.rb
293
+ - spec/support/environment_helper.rb
294
+ - spec/support/sharedcontext.rb
295
+ - spec/spec_helper.rb