diff --git a/virtinst/cli.py b/virtinst/cli.py index 9a1fe2f68..97eb4fc06 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3576,6 +3576,12 @@ class ParserMemballoon(VirtCLIParser): cls.add_arg("autodeflate", "autodeflate", is_onoff=True) cls.add_arg("stats.period", "stats_period") + def _parse(self, inst): + if self.optstr == "none": + self.guest.disable_default_memballoon = True + + return super()._parse(inst) + ################### # --panic parsing # diff --git a/virtinst/guest.py b/virtinst/guest.py index 441c38cfd..593d1cb3f 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -227,6 +227,7 @@ class Guest(XMLBuilder): self.skip_default_usbredir = False self.skip_default_graphics = False self.skip_default_rng = False + self.disable_default_memballoon = False self.x86_cpu_default = self.cpu.SPECIAL_MODE_APP_DEFAULT self.skip_default_osinfo = False