notes:qemu
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| notes:qemu [2020/09/24 20:52] – created - external edit 127.0.0.1 | notes:qemu [2026/01/10 07:19] (current) – azman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Qemu Stuff ====== | ====== Qemu Stuff ====== | ||
| - | Qemu is a program that can emulate a computer | + | [[https:// |
| + | |||
| + | ===== Useful Notes ===== | ||
| + | |||
| + | * change tty in the guest os running on qemu with ALT + left or right arrows | ||
| + | |||
| + | ===== QEMU console ===== | ||
| + | |||
| + | To get this (compatmonitor0: | ||
| + | |||
| + | To switch '' | ||
| + | |||
| + | To get information on block devices available, type < | ||
| + | |||
| + | To change virtual CD image, type < | ||
| + | |||
| + | ===== Virtual Disks ===== | ||
| + | |||
| + | To create 15G disk image: < | ||
| + | |||
| + | To convert from VBox disk image: < | ||
| + | |||
| + | To convert **from** raw disk image: < | ||
| + | |||
| + | To convert **to** raw disk image: < | ||
| + | |||
| + | To get smaller disk image: < | ||
| + | |||
| + | ===== Other Stuff ===== | ||
| //just dumping this here for now...// | //just dumping this here for now...// | ||
| < | < | ||
| - | qemu-img create -f qcow2 WinXP.qcow2 15G | ||
| - | |||
| - | qemu-img convert -f vdi -O qcow2 WinXP.vdi WinXP.qcow2 | ||
| qemu-system-i386 -m 1536 -boot order=c, | qemu-system-i386 -m 1536 -boot order=c, | ||
| qemu-system-i386 -m 1536 -boot order=c -hda WinXP.qcow2 | qemu-system-i386 -m 1536 -boot order=c -hda WinXP.qcow2 | ||
| - | |||
| - | press ctrl+alt+2 to get monitor console | ||
| - | - type 'info block' to get block device information | ||
| - | - to change cd drive, type ' | ||
| - | or, use -monitor switch | ||
| qemu-system-i386 -monitor stdio -enable-kvm -m 1536M WinXP.qcow2 | qemu-system-i386 -monitor stdio -enable-kvm -m 1536M WinXP.qcow2 | ||
| Line 43: | Line 63: | ||
| -vga virtio -display sdl,gl=on | -vga virtio -display sdl,gl=on | ||
| -vga virtio -display gtk,gl=on | -vga virtio -display gtk,gl=on | ||
| - | |||
| - | qemu-img create -f qcow2 Slack.img 20G | ||
| qemu-system-i386 -m 1536 -boot order=c, | qemu-system-i386 -m 1536 -boot order=c, | ||
| - | |||
| - | qemu-img convert -f qcow2 -O raw image.qcow2 image.img | ||
| - | qemu-img convert -f raw -O qcow2 image.img image.qcow2 | ||
| - | |||
| - | qemu-img convert -O qcow2 image.qcow2 image_small.qcow2 | ||
| - | qemu-img convert -O qcow2 -c image.qcow2 image_smaller.qcow2 | ||
| </ | </ | ||
notes/qemu.1600951967.txt.gz · Last modified: by 127.0.0.1
