diff options
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 239c48ffac..fd2717ec87 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -96,11 +96,11 @@ Examples: | |||
| 96 | runqemu qemux86-64 core-image-sato ext4 | 96 | runqemu qemux86-64 core-image-sato ext4 |
| 97 | runqemu qemux86-64 wic-image-minimal wic | 97 | runqemu qemux86-64 wic-image-minimal wic |
| 98 | runqemu path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial | 98 | runqemu path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial |
| 99 | runqemu qemux86 iso/hddimg/vmdk/qcow2/vdi/ramfs/cpio.gz... | 99 | runqemu qemux86 iso/hddimg/wic.vmdk/wic.qcow2/wic.vdi/ramfs/cpio.gz... |
| 100 | runqemu qemux86 qemuparams="-m 256" | 100 | runqemu qemux86 qemuparams="-m 256" |
| 101 | runqemu qemux86 bootparams="psplash=false" | 101 | runqemu qemux86 bootparams="psplash=false" |
| 102 | runqemu path/to/<image>-<machine>.vmdk | ||
| 103 | runqemu path/to/<image>-<machine>.wic | 102 | runqemu path/to/<image>-<machine>.wic |
| 103 | runqemu path/to/<image>-<machine>.wic.vmdk | ||
| 104 | """) | 104 | """) |
| 105 | 105 | ||
| 106 | def check_tun(): | 106 | def check_tun(): |
| @@ -220,7 +220,8 @@ class BaseConfig(object): | |||
| 220 | self.snapshot = False | 220 | self.snapshot = False |
| 221 | self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', | 221 | self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', |
| 222 | 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz') | 222 | 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz') |
| 223 | self.vmtypes = ('hddimg', 'hdddirect', 'wic', 'vmdk', 'qcow2', 'vdi', 'iso') | 223 | self.vmtypes = ('hddimg', 'hdddirect', 'wic', 'wic.vmdk', |
| 224 | 'wic.qcow2', 'wic.vdi', 'iso') | ||
| 224 | self.network_device = "-device e1000,netdev=net0,mac=@MAC@" | 225 | self.network_device = "-device e1000,netdev=net0,mac=@MAC@" |
| 225 | # Use different mac section for tap and slirp to avoid | 226 | # Use different mac section for tap and slirp to avoid |
| 226 | # conflicts, e.g., when one is running with tap, the other is | 227 | # conflicts, e.g., when one is running with tap, the other is |
| @@ -987,6 +988,8 @@ class BaseConfig(object): | |||
| 987 | def setup_rootfs(self): | 988 | def setup_rootfs(self): |
| 988 | if self.get('QB_ROOTFS') == 'none': | 989 | if self.get('QB_ROOTFS') == 'none': |
| 989 | return | 990 | return |
| 991 | if 'wic.' in self.fstype: | ||
| 992 | self.fstype = self.fstype[4:] | ||
| 990 | rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw' | 993 | rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw' |
| 991 | 994 | ||
| 992 | qb_rootfs_opt = self.get('QB_ROOTFS_OPT') | 995 | qb_rootfs_opt = self.get('QB_ROOTFS_OPT') |
