diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index fca8d1d29d..9af13f3360 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -162,6 +162,7 @@ class BaseConfig(object): | |||
162 | self.lock = '' | 162 | self.lock = '' |
163 | self.lock_descriptor = '' | 163 | self.lock_descriptor = '' |
164 | self.bitbake_e = '' | 164 | self.bitbake_e = '' |
165 | self.snapshot = False | ||
165 | self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', 'cpio.gz', 'cpio', 'ramfs') | 166 | self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', 'cpio.gz', 'cpio', 'ramfs') |
166 | self.vmtypes = ('hddimg', 'hdddirect', 'wic', 'vmdk', 'qcow2', 'vdi', 'iso') | 167 | self.vmtypes = ('hddimg', 'hdddirect', 'wic', 'vmdk', 'qcow2', 'vdi', 'iso') |
167 | 168 | ||
@@ -328,6 +329,8 @@ class BaseConfig(object): | |||
328 | self.vhost_enabled = True | 329 | self.vhost_enabled = True |
329 | elif arg == 'slirp': | 330 | elif arg == 'slirp': |
330 | self.slirp_enabled = True | 331 | self.slirp_enabled = True |
332 | elif arg == 'snapshot': | ||
333 | self.snapshot = True | ||
331 | elif arg == 'publicvnc': | 334 | elif arg == 'publicvnc': |
332 | self.qemu_opt_script += ' -vnc :0' | 335 | self.qemu_opt_script += ' -vnc :0' |
333 | elif arg.startswith('tcpserial='): | 336 | elif arg.startswith('tcpserial='): |
@@ -809,6 +812,9 @@ class BaseConfig(object): | |||
809 | # Enable virtio RNG else we can run out of entropy in guests | 812 | # Enable virtio RNG else we can run out of entropy in guests |
810 | self.qemu_opt += " -device virtio-rng-pci" | 813 | self.qemu_opt += " -device virtio-rng-pci" |
811 | 814 | ||
815 | if self.snapshot: | ||
816 | self.qemu_opt += " -snapshot" | ||
817 | |||
812 | if self.serialstdio: | 818 | if self.serialstdio: |
813 | logger.info("Interrupt character is '^]'") | 819 | logger.info("Interrupt character is '^]'") |
814 | cmd = "stty intr ^]" | 820 | cmd = "stty intr ^]" |