File mask_unused_hv_features.patch of Package virt-v2v
Remove warnings on capabilites not listed off in `virsh capabilities` for the
hypervisor. Without this change, guest conversion can report errors such as:
virt-v2v: WARNING: The connected hypervisor does not support feature pae.
virt-v2v: WARNING: The connected hypervisor does not support feature hap.
virt-v2v: WARNING: The connected hypervisor does not support feature viridian.
Index: virt-v2v-v0.9.1/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm
===================================================================
--- virt-v2v-v0.9.1.orig/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm
+++ virt-v2v-v0.9.1/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm
@@ -556,9 +556,13 @@ sub _configure_capabilities
my @new_features = ();
foreach my $feature (@{$meta->{features}}) {
if (!exists($features{$feature})) {
- logmsg WARN, __x('The connected hypervisor does not '.
- 'support feature {feature}.',
- feature => $feature);
+ # Don't report warnings on features provided, but not listed
+ # in virsh capabilities for the hypervisor
+ if ($feature !~ /^(hap|pae|viridian)$/) {
+ logmsg WARN, __x('The connected hypervisor does not '.
+ 'support feature {feature}.',
+ feature => $feature);
+ }
}
elsif ($feature eq 'acpi' && !$guestcaps->{acpi}) {