Beispiel #1
0
 def __init__(self, arch, name, config_ignored, boot_image, disk_image):
     VMController.__init__(self, 'QEMU-' + arch)
     self.arch = arch
     self.booted = False
     self.name = name
     self.boot_image = boot_image
     self.disk_image = disk_image
Beispiel #2
0
 def __init__(self, arch, name, config, boot_image, disk_image):
     VMController.__init__(self, 'xterm-' + arch)
     self.arch = arch
     self.booted = False
     self.name = name
     self.config = config if config is not None else 'msim.conf'
     self.boot_image = boot_image
     self.disk_image = disk_image
     self.x11_display = None
Beispiel #3
0
    def terminate(self):
        if not self.booted:
            self.screendump_file = None
            self.screenshot_filename = None
            return
        if self.xterm is not None:
            self.xterm.kill()
            self.xterm.wait()

        self.xserver.kill()
        self.xserver.wait()

        VMController.terminate(self)
Beispiel #4
0
 def terminate(self):
     if not self.booted:
         return
     self._send_command('quit')
     VMController.terminate(self)
Beispiel #5
0
 def __init__(self, arch, name, boot_image):
     VMController.__init__(self, 'QEMU-' + arch)
     self.arch = arch
     self.booted = False
     self.name = name
     self.boot_image = boot_image