mirror of
https://github.com/GNS3/gns3-server
synced 2025-06-05 23:58:52 +00:00
parent
8085080e41
commit
4cc66a3801
@ -892,6 +892,7 @@ class QemuVM(BaseVM):
|
|||||||
self._hw_virtualization = False
|
self._hw_virtualization = False
|
||||||
if self.is_running():
|
if self.is_running():
|
||||||
log.info('Stopping QEMU VM "{}" PID={}'.format(self._name, self._process.pid))
|
log.info('Stopping QEMU VM "{}" PID={}'.format(self._name, self._process.pid))
|
||||||
|
self.status = "stopped"
|
||||||
try:
|
try:
|
||||||
if self.acpi_shutdown:
|
if self.acpi_shutdown:
|
||||||
yield from self._control_vm("system_powerdown")
|
yield from self._control_vm("system_powerdown")
|
||||||
@ -903,7 +904,6 @@ class QemuVM(BaseVM):
|
|||||||
self._process.kill()
|
self._process.kill()
|
||||||
if self._process.returncode is None:
|
if self._process.returncode is None:
|
||||||
log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid))
|
log.warn('QEMU VM "{}" PID={} is still running'.format(self._name, self._process.pid))
|
||||||
self.status = "stopped"
|
|
||||||
self._process = None
|
self._process = None
|
||||||
self._stop_cpulimit()
|
self._stop_cpulimit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user