vagrant-libvirt 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +13 -103
- data/.coveralls.yml +0 -1
- data/.github/issue_template.md +0 -37
- data/.gitignore +0 -21
- data/.travis.yml +0 -28
- data/CHANGELOG.md +0 -99
- data/Gemfile +0 -27
- data/LICENSE +0 -22
- data/README.md +0 -1311
- data/Rakefile +0 -8
- data/example_box/README.md +0 -29
- data/example_box/Vagrantfile +0 -60
- data/example_box/metadata.json +0 -5
- data/lib/vagrant-libvirt.rb +0 -29
- data/lib/vagrant-libvirt/action.rb +0 -362
- data/lib/vagrant-libvirt/action/create_domain.rb +0 -313
- data/lib/vagrant-libvirt/action/create_domain_volume.rb +0 -87
- data/lib/vagrant-libvirt/action/create_network_interfaces.rb +0 -294
- data/lib/vagrant-libvirt/action/create_networks.rb +0 -353
- data/lib/vagrant-libvirt/action/destroy_domain.rb +0 -83
- data/lib/vagrant-libvirt/action/destroy_networks.rb +0 -95
- data/lib/vagrant-libvirt/action/forward_ports.rb +0 -221
- data/lib/vagrant-libvirt/action/halt_domain.rb +0 -35
- data/lib/vagrant-libvirt/action/handle_box_image.rb +0 -156
- data/lib/vagrant-libvirt/action/handle_storage_pool.rb +0 -57
- data/lib/vagrant-libvirt/action/is_created.rb +0 -18
- data/lib/vagrant-libvirt/action/is_running.rb +0 -21
- data/lib/vagrant-libvirt/action/is_suspended.rb +0 -42
- data/lib/vagrant-libvirt/action/message_already_created.rb +0 -16
- data/lib/vagrant-libvirt/action/message_not_created.rb +0 -16
- data/lib/vagrant-libvirt/action/message_not_running.rb +0 -16
- data/lib/vagrant-libvirt/action/message_not_suspended.rb +0 -16
- data/lib/vagrant-libvirt/action/package_domain.rb +0 -105
- data/lib/vagrant-libvirt/action/prepare_nfs_settings.rb +0 -94
- data/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb +0 -17
- data/lib/vagrant-libvirt/action/prune_nfs_exports.rb +0 -27
- data/lib/vagrant-libvirt/action/read_mac_addresses.rb +0 -40
- data/lib/vagrant-libvirt/action/remove_libvirt_image.rb +0 -20
- data/lib/vagrant-libvirt/action/remove_stale_volume.rb +0 -50
- data/lib/vagrant-libvirt/action/resume_domain.rb +0 -34
- data/lib/vagrant-libvirt/action/set_boot_order.rb +0 -109
- data/lib/vagrant-libvirt/action/set_name_of_domain.rb +0 -64
- data/lib/vagrant-libvirt/action/share_folders.rb +0 -71
- data/lib/vagrant-libvirt/action/start_domain.rb +0 -303
- data/lib/vagrant-libvirt/action/suspend_domain.rb +0 -40
- data/lib/vagrant-libvirt/action/wait_till_up.rb +0 -102
- data/lib/vagrant-libvirt/cap/mount_p9.rb +0 -42
- data/lib/vagrant-libvirt/cap/nic_mac_addresses.rb +0 -17
- data/lib/vagrant-libvirt/cap/synced_folder.rb +0 -113
- data/lib/vagrant-libvirt/config.rb +0 -698
- data/lib/vagrant-libvirt/driver.rb +0 -118
- data/lib/vagrant-libvirt/errors.rb +0 -149
- data/lib/vagrant-libvirt/plugin.rb +0 -92
- data/lib/vagrant-libvirt/provider.rb +0 -130
- data/lib/vagrant-libvirt/templates/default_storage_pool.xml.erb +0 -13
- data/lib/vagrant-libvirt/templates/domain.xml.erb +0 -229
- data/lib/vagrant-libvirt/templates/private_network.xml.erb +0 -34
- data/lib/vagrant-libvirt/templates/public_interface.xml.erb +0 -23
- data/lib/vagrant-libvirt/util.rb +0 -11
- data/lib/vagrant-libvirt/util/collection.rb +0 -19
- data/lib/vagrant-libvirt/util/erb_template.rb +0 -22
- data/lib/vagrant-libvirt/util/error_codes.rb +0 -100
- data/lib/vagrant-libvirt/util/network_util.rb +0 -138
- data/lib/vagrant-libvirt/util/timer.rb +0 -17
- data/lib/vagrant-libvirt/version.rb +0 -5
- data/locales/en.yml +0 -159
- data/spec/spec_helper.rb +0 -9
- data/spec/support/environment_helper.rb +0 -46
- data/spec/support/libvirt_context.rb +0 -30
- data/spec/support/sharedcontext.rb +0 -34
- data/spec/unit/action/destroy_domain_spec.rb +0 -97
- data/spec/unit/action/set_name_of_domain_spec.rb +0 -21
- data/spec/unit/action/wait_till_up_spec.rb +0 -127
- data/spec/unit/config_spec.rb +0 -106
- data/spec/unit/templates/domain_all_settings.xml +0 -133
- data/spec/unit/templates/domain_defaults.xml +0 -46
- data/spec/unit/templates/domain_spec.rb +0 -75
- data/tools/create_box.sh +0 -130
- data/tools/prepare_redhat_for_box.sh +0 -119
- data/vagrant-libvirt.gemspec +0 -28
@@ -1,229 +0,0 @@
|
|
1
|
-
<domain type='<%= @domain_type %>' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
2
|
-
<name><%= @name %></name>
|
3
|
-
<uuid><%= @uuid %></uuid>
|
4
|
-
<memory><%= @memory_size %></memory>
|
5
|
-
<vcpu><%= @cpus %></vcpu>
|
6
|
-
|
7
|
-
|
8
|
-
<cpu mode='<%= @cpu_mode %>'>
|
9
|
-
<% if @cpu_mode != 'host-passthrough' %>
|
10
|
-
<model fallback='<%= @cpu_fallback %>'><% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %></model>
|
11
|
-
<% if @nested %>
|
12
|
-
<feature policy='optional' name='vmx'/>
|
13
|
-
<feature policy='optional' name='svm'/>
|
14
|
-
<% end %>
|
15
|
-
<% @cpu_features.each do |cpu_feature| %>
|
16
|
-
<feature name='<%= cpu_feature[:name] %>' policy='<%= cpu_feature[:policy] %>'/>
|
17
|
-
<% end %>
|
18
|
-
<% else %>
|
19
|
-
<% if @numa_nodes %>
|
20
|
-
<numa>
|
21
|
-
<% @numa_nodes.each do |node| %>
|
22
|
-
<cell id='<%= node[:id] %>' cpus='<%= node[:cpu] %>' memory='<%= node[:mem] %>'/>
|
23
|
-
<% end %>
|
24
|
-
</numa>
|
25
|
-
<% end %>
|
26
|
-
<% end %>
|
27
|
-
</cpu>
|
28
|
-
|
29
|
-
|
30
|
-
<os>
|
31
|
-
<% if @machine_type %>
|
32
|
-
<% if @machine_arch %>
|
33
|
-
<type arch='<%= @machine_arch %>' machine='<%= @machine_type %>'>hvm</type>
|
34
|
-
<% else %>
|
35
|
-
<type machine='<%= @machine_type %>'>hvm</type>
|
36
|
-
<% end %>
|
37
|
-
<% else %>
|
38
|
-
<% if @machine_arch %>
|
39
|
-
<type arch='<%= @machine_arch %>'>hvm</type>
|
40
|
-
<% else %>
|
41
|
-
<type>hvm</type>
|
42
|
-
<% end %>
|
43
|
-
<% end %>
|
44
|
-
<% if @loader %>
|
45
|
-
<loader readonly='yes' type='rom'><%= @loader %></loader>
|
46
|
-
<% end %>
|
47
|
-
<% if @boot_order.count >= 1 %>
|
48
|
-
<bootmenu enable='yes'/>
|
49
|
-
<% end %>
|
50
|
-
<kernel><%= @kernel %></kernel>
|
51
|
-
<initrd><%= @initrd %></initrd>
|
52
|
-
<cmdline><%= @cmd_line %></cmdline>
|
53
|
-
<% if @dtb %>
|
54
|
-
<dtb><%= @dtb %></dtb>
|
55
|
-
<% end %>
|
56
|
-
</os>
|
57
|
-
<features>
|
58
|
-
<% @features.each do |feature| %>
|
59
|
-
<<%= feature %>/>
|
60
|
-
<% end %>
|
61
|
-
<% if @kvm_hidden %>
|
62
|
-
<kvm>
|
63
|
-
<hidden state='on'/>
|
64
|
-
</kvm>
|
65
|
-
<% end %>
|
66
|
-
</features>
|
67
|
-
<clock offset='utc'/>
|
68
|
-
<devices>
|
69
|
-
<% if @emulator_path %>
|
70
|
-
<emulator><%= @emulator_path %></emulator>
|
71
|
-
<% end %>
|
72
|
-
<% if @domain_volume_path %>
|
73
|
-
<disk type='file' device='disk'>
|
74
|
-
<driver name='qemu' type='qcow2' cache='<%= @domain_volume_cache %>'/>
|
75
|
-
<source file='<%= @domain_volume_path %>'/>
|
76
|
-
<%# we need to ensure a unique target dev -%>
|
77
|
-
<target dev='<%= @disk_device %>' bus='<%= @disk_bus %>'/>
|
78
|
-
</disk>
|
79
|
-
<% end %>
|
80
|
-
<%# additional disks -%>
|
81
|
-
<% @disks.each do |d| -%>
|
82
|
-
<disk type='file' device='disk'>
|
83
|
-
<driver name='qemu' type='<%= d[:type] %>' cache='<%= d[:cache] %>'/>
|
84
|
-
<source file='<%= d[:absolute_path] %>'/>
|
85
|
-
<target dev='<%= d[:device] %>' bus='<%= d[:bus] %>'/>
|
86
|
-
<% if d[:shareable] %>
|
87
|
-
<shareable/>
|
88
|
-
<% end %>
|
89
|
-
<% if d[:serial] %>
|
90
|
-
<serial><%= d[:serial] %></serial>
|
91
|
-
<% end %>
|
92
|
-
<%# this will get auto generated by libvirt
|
93
|
-
<address type='pci' domain='0x0000' bus='0x00' slot='???' function='0x0'/>
|
94
|
-
-%>
|
95
|
-
</disk>
|
96
|
-
<% end -%>
|
97
|
-
|
98
|
-
<% @cdroms.each do |c| %>
|
99
|
-
<disk type='file' device='cdrom'>
|
100
|
-
<source file='<%= c[:path] %>'/>
|
101
|
-
<target dev='<%= c[:dev] %>' bus='<%= c[:bus] %>'/>
|
102
|
-
<readonly/>
|
103
|
-
</disk>
|
104
|
-
<% end %>
|
105
|
-
|
106
|
-
<serial type='pty'>
|
107
|
-
<target port='0'/>
|
108
|
-
</serial>
|
109
|
-
<console type='pty'>
|
110
|
-
<target port='0'/>
|
111
|
-
</console>
|
112
|
-
|
113
|
-
<% @channels.each do |channel| %>
|
114
|
-
<channel type='<%= channel[:type] %>' >
|
115
|
-
<source mode='<%= channel[:source_mode] %>'
|
116
|
-
<% if channel[:source_path] %>
|
117
|
-
path="<%= channel[:source_path] %>"
|
118
|
-
<% end %>
|
119
|
-
/>
|
120
|
-
<target type='<%= channel[:target_type] %>'
|
121
|
-
<% if channel[:target_name] %>
|
122
|
-
name="<%= channel[:target_name] %>"
|
123
|
-
<% end %>
|
124
|
-
<% if channel[:target_address] %>
|
125
|
-
address="<%= channel[:target_address] %>"
|
126
|
-
<% end %>
|
127
|
-
<% if channel[:target_port] %>
|
128
|
-
port="<%= channel[:target_port] %>"
|
129
|
-
<% end %>
|
130
|
-
/>
|
131
|
-
</channel>
|
132
|
-
<% end %>
|
133
|
-
|
134
|
-
<% @inputs.each do |input| %>
|
135
|
-
<input type='<%= input[:type] %>' bus='<%= input[:bus] %>'/>
|
136
|
-
<% end %>
|
137
|
-
|
138
|
-
<% if !@sound_type.nil? %>
|
139
|
-
<%# Sound device-%>
|
140
|
-
<sound model='<%= @sound_type %>'>
|
141
|
-
</sound>
|
142
|
-
<%# End Sound%>
|
143
|
-
<% end %>
|
144
|
-
<% if @graphics_type != 'none' %>
|
145
|
-
<%# Video device -%>
|
146
|
-
<graphics type='<%= @graphics_type %>' port='<%= @graphics_port %>' autoport='<%= @graphics_autoport %>' listen='<%= @graphics_ip %>' keymap='<%= @keymap %>' <%= @graphics_passwd%> />
|
147
|
-
<video>
|
148
|
-
<model type='<%= @video_type %>' vram='<%= @video_vram %>' heads='1'/>
|
149
|
-
</video>
|
150
|
-
<%#End Video -%>
|
151
|
-
<% end %>
|
152
|
-
<% if @rng[:model] == "random"%>
|
153
|
-
<rng model='virtio'>
|
154
|
-
<backend model='random'>/dev/random</backend>
|
155
|
-
</rng>
|
156
|
-
<% end %>
|
157
|
-
<% @pcis.each do |pci| %>
|
158
|
-
<hostdev mode='subsystem' type='pci' managed='yes'>
|
159
|
-
<source>
|
160
|
-
<address domain='0x0000'
|
161
|
-
bus='<%= pci[:bus] %>'
|
162
|
-
slot='<%= pci[:slot] %>'
|
163
|
-
function='<%= pci[:function] %>'/>
|
164
|
-
</source>
|
165
|
-
</hostdev>
|
166
|
-
<% end %>
|
167
|
-
<% @usbs.each do |usb| %>
|
168
|
-
<hostdev mode='subsystem' type='usb'>
|
169
|
-
<source startupPolicy='<%= usb[:startupPolicy] || "mandatory" %>'>
|
170
|
-
<% if usb[:vendor] %>
|
171
|
-
<vendor id='<%= usb[:vendor] %>'/>
|
172
|
-
<% end %>
|
173
|
-
<% if usb[:product] %>
|
174
|
-
<product id='<%= usb[:product] %>'/>
|
175
|
-
<% end %>
|
176
|
-
<% if usb[:bus] && usb[:device] %>
|
177
|
-
<address bus='<%= usb[:bus] %>' device='<%= usb[:device] %>'/>
|
178
|
-
<% end %>
|
179
|
-
</source>
|
180
|
-
</hostdev>
|
181
|
-
<% end %>
|
182
|
-
<% unless @redirdevs.empty? %>
|
183
|
-
<% @redirdevs.each do |redirdev| %>
|
184
|
-
<redirdev bus='usb' type='<%= redirdev[:type] %>'>
|
185
|
-
</redirdev>
|
186
|
-
<% end %>
|
187
|
-
<% unless @redirfilters.empty? %>
|
188
|
-
<redirfilter>
|
189
|
-
<% @redirfilters.each do |usbdev| %>
|
190
|
-
<usbdev class='<%= usbdev[:class] %>' vendor='<%= usbdev[:vendor] %>' product='<%= usbdev[:product] %>' version='<%= usbdev[:version] %>' allow='<%= usbdev[:allow] %>'/>
|
191
|
-
<% end %>
|
192
|
-
</redirfilter>
|
193
|
-
<% end %>
|
194
|
-
<% end %>
|
195
|
-
<% unless @watchdog_dev.empty? %>
|
196
|
-
<%# Watchdog Device -%>
|
197
|
-
<watchdog model='<%= @watchdog_dev[:model] %>' action='<%= @watchdog_dev[:action] %>'/>
|
198
|
-
<% end %>
|
199
|
-
|
200
|
-
<% unless @smartcard_dev.empty? -%>
|
201
|
-
<% if @smartcard_dev[:mode] == 'passthrough' %>
|
202
|
-
<% if @smartcard_dev[:type] == 'tcp' %>
|
203
|
-
<smartcard mode='<%= @smartcard_dev[:mode] %>' type='<%= @smartcard_dev[:type] %>'>
|
204
|
-
<source mode='<%= @smartcard_dev[:source_mode] %>' host='<%= @smartcard_dev[:source_host] %>' service='<%= @smartcard_dev[:source_service] %>'/>
|
205
|
-
</smartcard>
|
206
|
-
<% else %>
|
207
|
-
<smartcard mode='<%= @smartcard_dev[:mode] %>' type='<%= @smartcard_dev[:type] %>'/>
|
208
|
-
<% end %>
|
209
|
-
<% end %>
|
210
|
-
<% end -%>
|
211
|
-
|
212
|
-
<% if @tpm_path -%>
|
213
|
-
<%# TPM Device -%>
|
214
|
-
<tpm model='<%= @tpm_model %>'>
|
215
|
-
<backend type='<%= @tpm_type %>'>
|
216
|
-
<device path='<%= @tpm_path %>'/>
|
217
|
-
</backend>
|
218
|
-
</tpm>
|
219
|
-
<% end -%>
|
220
|
-
</devices>
|
221
|
-
|
222
|
-
<% unless @qargs.empty? %>
|
223
|
-
<qemu:commandline>
|
224
|
-
<% @qargs.each do |arg| %>
|
225
|
-
<qemu:arg value='<%= arg[:value] %>'/>
|
226
|
-
<% end %>
|
227
|
-
</qemu:commandline>
|
228
|
-
<% end %>
|
229
|
-
</domain>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<network ipv6='<%= @guest_ipv6 %>'>
|
2
|
-
<name><%= @network_name %></name>
|
3
|
-
<bridge name="<%= @network_bridge_name %>" />
|
4
|
-
|
5
|
-
<% if (@network_forward_mode != 'none' && @network_forward_mode != 'veryisolated') %>
|
6
|
-
<% if @network_forward_device %>
|
7
|
-
<forward mode="<%= @network_forward_mode %>" dev="<%= @network_forward_device %>" />
|
8
|
-
<% else %>
|
9
|
-
<forward mode="<%= @network_forward_mode %>" />
|
10
|
-
<% end %>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<% if @network_forward_mode != 'veryisolated' %>
|
14
|
-
<ip address="<%= @network_address %>" netmask="<%= @network_netmask %>">
|
15
|
-
<% if @network_dhcp_enabled %>
|
16
|
-
<dhcp>
|
17
|
-
<range start="<%= @network_range_start %>" end="<%= @network_range_stop %>" />
|
18
|
-
<% if @network_dhcp_bootp_file %>
|
19
|
-
<% if @network_dhcp_bootp_server %>
|
20
|
-
<bootp file="<%= @network_dhcp_bootp_file %>" server="<%= @network_dhcp_bootp_server %>" />
|
21
|
-
<% else %>
|
22
|
-
<bootp file="<%= @network_dhcp_bootp_file %>" />
|
23
|
-
<% end %>
|
24
|
-
<% end %>
|
25
|
-
</dhcp>
|
26
|
-
<% end %>
|
27
|
-
</ip>
|
28
|
-
<% end %>
|
29
|
-
|
30
|
-
<% if !@network_ipv6_address.nil? && !@network_ipv6_prefix.nil? %>
|
31
|
-
<ip family='ipv6' address="<%= @network_ipv6_address %>" prefix="<%= @network_ipv6_prefix %>"></ip>
|
32
|
-
<% end %>
|
33
|
-
|
34
|
-
</network>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<interface type='<%= @type %>'<% if @trust_guest_rx_filters %> trustGuestRxFilters='yes'<% end %>>
|
2
|
-
<% if @mac %>
|
3
|
-
<mac address='<%= @mac %>'/>
|
4
|
-
<% end %>
|
5
|
-
<%if @type == 'direct'%>
|
6
|
-
<source dev='<%= @device %>' mode='<%= @mode %>'/>
|
7
|
-
<% elsif !@portgroup.nil? %>
|
8
|
-
<source network='<%=@network_name%>' portgroup='<%=@portgroup%>'/>
|
9
|
-
<% else %>
|
10
|
-
<source bridge='<%=@device%>'/>
|
11
|
-
<% end %>
|
12
|
-
<model type='<%=@model_type%>'/>
|
13
|
-
<% if @driver_name and @driver_queues %>
|
14
|
-
<driver name='<%=@driver_name%>' queues='<%=@driver_queues%>'/>
|
15
|
-
<% elsif @driver_queues %>
|
16
|
-
<driver queues='<%=@driver_queues%>'/>
|
17
|
-
<% elsif @driver_name %>
|
18
|
-
<driver name='<%=@driver_name%>'/>
|
19
|
-
<% end %>
|
20
|
-
<% if @ovs %>
|
21
|
-
<virtualport type='openvswitch'/>
|
22
|
-
<% end %>
|
23
|
-
</interface>
|
data/lib/vagrant-libvirt/util.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module ProviderLibvirt
|
3
|
-
module Util
|
4
|
-
autoload :ErbTemplate, 'vagrant-libvirt/util/erb_template'
|
5
|
-
autoload :Collection, 'vagrant-libvirt/util/collection'
|
6
|
-
autoload :Timer, 'vagrant-libvirt/util/timer'
|
7
|
-
autoload :NetworkUtil, 'vagrant-libvirt/util/network_util'
|
8
|
-
autoload :ErrorCodes, 'vagrant-libvirt/util/error_codes'
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module ProviderLibvirt
|
3
|
-
module Util
|
4
|
-
module Collection
|
5
|
-
# This method finds a matching _thing_ in a collection of
|
6
|
-
# _things_. This works matching if the ID or NAME equals to
|
7
|
-
# `name`. Or, if `name` is a regexp, a partial match is chosen
|
8
|
-
# as well.
|
9
|
-
def self.find_matching(collection, name)
|
10
|
-
collection.each do |single|
|
11
|
-
return single if single.name == name
|
12
|
-
end
|
13
|
-
|
14
|
-
nil
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'erubis'
|
2
|
-
|
3
|
-
module VagrantPlugins
|
4
|
-
module ProviderLibvirt
|
5
|
-
module Util
|
6
|
-
module ErbTemplate
|
7
|
-
# TODO: remove and use nokogiri builder
|
8
|
-
# TODO: might be a chance to use vagrant template system according to https://github.com/mitchellh/vagrant/issues/3231
|
9
|
-
def to_xml(template_name = nil, data = binding)
|
10
|
-
erb = template_name || self.class.to_s.split('::').last.downcase
|
11
|
-
path = File.join(File.dirname(__FILE__), '..', 'templates',
|
12
|
-
"#{erb}.xml.erb")
|
13
|
-
template = File.read(path)
|
14
|
-
|
15
|
-
# TODO: according to erubis documentation, we should rather use evaluate and forget about
|
16
|
-
# binding since the template may then change variables values
|
17
|
-
Erubis::Eruby.new(template, trim: true).result(data)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,100 +0,0 @@
|
|
1
|
-
# Ripped from http://libvirt.org/html/libvirt-virterror.html#virErrorNumber.
|
2
|
-
module VagrantPlugins
|
3
|
-
module ProviderLibvirt
|
4
|
-
module Util
|
5
|
-
module ErrorCodes
|
6
|
-
VIR_ERR_OK = 0
|
7
|
-
VIR_ERR_INTERNAL_ERROR = 1 # internal error
|
8
|
-
VIR_ERR_NO_MEMORY = 2 # memory allocation failure
|
9
|
-
VIR_ERR_NO_SUPPORT = 3 # no support for this function
|
10
|
-
VIR_ERR_UNKNOWN_HOST = 4 # could not resolve hostname
|
11
|
-
VIR_ERR_NO_CONNECT = 5 # can't connect to hypervisor
|
12
|
-
VIR_ERR_INVALID_CONN = 6 # invalid connection object
|
13
|
-
VIR_ERR_INVALID_DOMAIN = 7 # invalid domain object
|
14
|
-
VIR_ERR_INVALID_ARG = 8 # invalid function argument
|
15
|
-
VIR_ERR_OPERATION_FAILED = 9 # a command to hypervisor failed
|
16
|
-
VIR_ERR_GET_FAILED = 10 # a HTTP GET command to failed
|
17
|
-
VIR_ERR_POST_FAILED = 11 # a HTTP POST command to failed
|
18
|
-
VIR_ERR_HTTP_ERROR = 12 # unexpected HTTP error code
|
19
|
-
VIR_ERR_SEXPR_SERIAL = 13 # failure to serialize an S-Expr
|
20
|
-
VIR_ERR_NO_XEN = 14 # could not open Xen hypervisor control
|
21
|
-
VIR_ERR_XEN_CALL = 15 # failure doing an hypervisor call
|
22
|
-
VIR_ERR_OS_TYPE = 16 # unknown OS type
|
23
|
-
VIR_ERR_NO_KERNEL = 17 # missing kernel information
|
24
|
-
VIR_ERR_NO_ROOT = 18 # missing root device information
|
25
|
-
VIR_ERR_NO_SOURCE = 19 # missing source device information
|
26
|
-
VIR_ERR_NO_TARGET = 20 # missing target device information
|
27
|
-
VIR_ERR_NO_NAME = 21 # missing domain name information
|
28
|
-
VIR_ERR_NO_OS = 22 # missing domain OS information
|
29
|
-
VIR_ERR_NO_DEVICE = 23 # missing domain devices information
|
30
|
-
VIR_ERR_NO_XENSTORE = 24 # could not open Xen Store control
|
31
|
-
VIR_ERR_DRIVER_FULL = 25 # too many drivers registered
|
32
|
-
VIR_ERR_CALL_FAILED = 26 # not supported by the drivers (DEPRECATED)
|
33
|
-
VIR_ERR_XML_ERROR = 27 # an XML description is not well formed or broken
|
34
|
-
VIR_ERR_DOM_EXIST = 28 # the domain already exist
|
35
|
-
VIR_ERR_OPERATION_DENIED = 29 # operation forbidden on read-only connections
|
36
|
-
VIR_ERR_OPEN_FAILED = 30 # failed to open a conf file
|
37
|
-
VIR_ERR_READ_FAILED = 31 # failed to read a conf file
|
38
|
-
VIR_ERR_PARSE_FAILED = 32 # failed to parse a conf file
|
39
|
-
VIR_ERR_CONF_SYNTAX = 33 # failed to parse the syntax of a conf file
|
40
|
-
VIR_ERR_WRITE_FAILED = 34 # failed to write a conf file
|
41
|
-
VIR_ERR_XML_DETAIL = 35 # detail of an XML error
|
42
|
-
VIR_ERR_INVALID_NETWORK = 36 # invalid network object
|
43
|
-
VIR_ERR_NETWORK_EXIST = 37 # the network already exist
|
44
|
-
VIR_ERR_SYSTEM_ERROR = 38 # general system call failure
|
45
|
-
VIR_ERR_RPC = 39 # some sort of RPC error
|
46
|
-
VIR_ERR_GNUTLS_ERROR = 40 # error from a GNUTLS call
|
47
|
-
VIR_WAR_NO_NETWORK = 41 # failed to start network
|
48
|
-
VIR_ERR_NO_DOMAIN = 42 # domain not found or unexpectedly disappeared
|
49
|
-
VIR_ERR_NO_NETWORK = 43 # network not found
|
50
|
-
VIR_ERR_INVALID_MAC = 44 # invalid MAC address
|
51
|
-
VIR_ERR_AUTH_FAILED = 45 # authentication failed
|
52
|
-
VIR_ERR_INVALID_STORAGE_POOL = 46 # invalid storage pool object
|
53
|
-
VIR_ERR_INVALID_STORAGE_VOL = 47 # invalid storage vol object
|
54
|
-
VIR_WAR_NO_STORAGE = 48 # failed to start storage
|
55
|
-
VIR_ERR_NO_STORAGE_POOL = 49 # storage pool not found
|
56
|
-
VIR_ERR_NO_STORAGE_VOL = 50 # storage volume not found
|
57
|
-
VIR_WAR_NO_NODE = 51 # failed to start node driver
|
58
|
-
VIR_ERR_INVALID_NODE_DEVICE = 52 # invalid node device object
|
59
|
-
VIR_ERR_NO_NODE_DEVICE = 53 # node device not found
|
60
|
-
VIR_ERR_NO_SECURITY_MODEL = 54 # security model not found
|
61
|
-
VIR_ERR_OPERATION_INVALID = 55 # operation is not applicable at this time
|
62
|
-
VIR_WAR_NO_INTERFACE = 56 # failed to start interface driver
|
63
|
-
VIR_ERR_NO_INTERFACE = 57 # interface driver not running
|
64
|
-
VIR_ERR_INVALID_INTERFACE = 58 # invalid interface object
|
65
|
-
VIR_ERR_MULTIPLE_INTERFACES = 59 # more than one matching interface found
|
66
|
-
VIR_WAR_NO_NWFILTER = 60 # failed to start nwfilter driver
|
67
|
-
VIR_ERR_INVALID_NWFILTER = 61 # invalid nwfilter object
|
68
|
-
VIR_ERR_NO_NWFILTER = 62 # nw filter pool not found
|
69
|
-
VIR_ERR_BUILD_FIREWALL = 63 # nw filter pool not found
|
70
|
-
VIR_WAR_NO_SECRET = 64 # failed to start secret storage
|
71
|
-
VIR_ERR_INVALID_SECRET = 65 # invalid secret
|
72
|
-
VIR_ERR_NO_SECRET = 66 # secret not found
|
73
|
-
VIR_ERR_CONFIG_UNSUPPORTED = 67 # unsupported configuration construct
|
74
|
-
VIR_ERR_OPERATION_TIMEOUT = 68 # timeout occurred during operation
|
75
|
-
VIR_ERR_MIGRATE_PERSIST_FAILED = 69 # a migration worked, but making the VM persist on the dest host failed
|
76
|
-
VIR_ERR_HOOK_SCRIPT_FAILED = 70 # a synchronous hook script failed
|
77
|
-
VIR_ERR_INVALID_DOMAIN_SNAPSHOT = 71 # invalid domain snapshot
|
78
|
-
VIR_ERR_NO_DOMAIN_SNAPSHOT = 72 # domain snapshot not found
|
79
|
-
VIR_ERR_INVALID_STREAM = 73 # stream pointer not valid
|
80
|
-
VIR_ERR_ARGUMENT_UNSUPPORTED = 74 # valid API use but unsupported by the given driver
|
81
|
-
VIR_ERR_STORAGE_PROBE_FAILED = 75 # storage pool probe failed
|
82
|
-
VIR_ERR_STORAGE_POOL_BUILT = 76 # storage pool already built
|
83
|
-
VIR_ERR_SNAPSHOT_REVERT_RISKY = 77 # force was not requested for a risky domain snapshot revert
|
84
|
-
VIR_ERR_OPERATION_ABORTED = 78 # operation on a domain was canceled/aborted by user
|
85
|
-
VIR_ERR_AUTH_CANCELLED = 79 # authentication cancelled
|
86
|
-
VIR_ERR_NO_DOMAIN_METADATA = 80 # The metadata is not present
|
87
|
-
VIR_ERR_MIGRATE_UNSAFE = 81 # Migration is not safe
|
88
|
-
VIR_ERR_OVERFLOW = 82 # integer overflow
|
89
|
-
VIR_ERR_BLOCK_COPY_ACTIVE = 83 # action prevented by block copy job
|
90
|
-
VIR_ERR_OPERATION_UNSUPPORTED = 84 # The requested operation is not supported
|
91
|
-
VIR_ERR_SSH = 85 # error in ssh transport driver
|
92
|
-
VIR_ERR_AGENT_UNRESPONSIVE = 86 # guest agent is unresponsive, not running or not usable
|
93
|
-
VIR_ERR_RESOURCE_BUSY = 87 # resource is already in use
|
94
|
-
VIR_ERR_ACCESS_DENIED = 88 # operation on the object/resource was denied
|
95
|
-
VIR_ERR_DBUS_SERVICE = 89 # error from a dbus service
|
96
|
-
VIR_ERR_STORAGE_VOL_EXIST = 90 # the storage vol already exists
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|