- self.out.output("Shutting down helper VM ...", False)
- self.image.g.sync()
- # guestfs_shutdown which is the prefered way to shutdown the backend
- # process was introduced in version 1.19.16
- if check_guestfs_version(self.g, 1, 19, 16) >= 0:
- self.image.g.shutdown()
- else:
- self.image.g.kill_subprocess()
-
- self.out.success('done')