diff --git a/virtinst/cli.py b/virtinst/cli.py index d7ad05976..038d395ea 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3778,12 +3778,6 @@ 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 6995d2c21..e292c5cd5 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -227,7 +227,6 @@ 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 @@ -964,16 +963,6 @@ class Guest(XMLBuilder): if not self.conn.is_qemu(): return - # For most QEMU guests, libvirt will automatically add a memballoon - # device, which means that if the user has explicitly asked for it - # *not* to be present then we still need to create the device and - # set the model to "none" to let libvirt know - if self.disable_default_memballoon: - dev = DeviceMemballoon(self.conn) - dev.model = "none" - self.add_device(dev) - return - # We know for certain that a memballoon is good to have with these # machine types; for other machine types, we leave the decision up # to libvirt