Added option to enable kvm_hidden feature in virt-install cmd-line

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Pavel Hrdina 2015-09-08 12:03:04 +02:00
parent d66b691035
commit 39da70a456
5 changed files with 10 additions and 0 deletions

View File

@ -246,6 +246,10 @@ Enable APIC PV EOI
Enable hypver VAPIC, but disable spinlocks
=item B<--features kvm_hidden=on>
Allow the KVM hypervisor signature to be hidden from the guest
=back
Use --features=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsFeatures>

View File

@ -21,6 +21,9 @@
</hyperv>
<vmport state="on"/>
<viridian/>
<kvm>
<hidden state="on"/>
</kvm>
</features>
<numatune>
<memory nodeset="2,4,6"/>

View File

@ -162,6 +162,7 @@ class XMLParseTest(unittest.TestCase):
check("hyperv_spinlocks", True, True)
check("hyperv_spinlocks_retries", 12287, 54321)
check("vmport", False, True)
check("kvm_hidden", None, True)
check = self._make_checker(guest.cpu)
check("match", "exact", "strict")

View File

@ -1515,6 +1515,7 @@ class ParserFeatures(VirtCLIParser):
"hyperv_spinlocks_retries")
self.set_param("vmport", "vmport", is_onoff=True)
self.set_param("kvm_hidden", "kvm_hidden", is_onoff=True)
###################

View File

@ -48,3 +48,4 @@ class DomainFeatures(XMLBuilder):
vmport = XMLProperty("./vmport/@state", is_onoff=True,
default_name="default", default_cb=lambda s: False)
kvm_hidden = XMLProperty("./kvm/hidden/@state", is_onoff=True)