User Tools

Site Tools


notes:qemu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:qemu [2026/01/10 07:17] – [Other Stuff] azmannotes:qemu [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Qemu Stuff ====== 
- 
-[[https://www.qemu.org|Qemu]] is a machine emulator (i.e. virtual machine), similar to VirtualBox and VMWare. 
- 
-===== Useful Notes ===== 
- 
-  * change tty in the guest os running on qemu with ALT + left or right arrows 
- 
-===== QEMU console ===== 
- 
-To get this (compatmonitor0: available in 'View' menu), hit ''CTRL+ALT+F2''. It is also available on host terminal using ''-monitor stdio'' command-line option. 
- 
-To switch ''tty'' terminal in guest OS, type <code>sendkey ctrl-alt-f2</code> 
- 
-To get information on block devices available, type <code>info block</code> 
- 
-To change virtual CD image, type <code>change <device> <file></code> 
- 
-===== Virtual Disks ===== 
- 
-To create 15G disk image: <code>qemu-img create -f qcow2 disk.qcow2 15G</code> 
- 
-To convert from VBox disk image: <code>qemu-img convert -f vdi -O qcow2 disk.vdi disk.qcow2</code> 
- 
-To convert **from** raw disk image: <code>qemu-img convert -f raw -O qcow2 disk.img disk.qcow2</code> 
- 
-To convert **to** raw disk image: <code>qemu-img convert -f qcow2 -O raw disk.qcow2 disk.img</code> 
- 
-===== Other Stuff ===== 
- 
-//just dumping this here for now...// 
- 
-<code> 
- 
-qemu-system-i386 -m 1536 -boot order=c,once=d -hda WinXP.qcow2 -cdrom winxp.iso 
- 
-qemu-system-i386 -m 1536 -boot order=c -hda WinXP.qcow2 
- 
-qemu-system-i386 -monitor stdio -enable-kvm -m 1536M WinXP.qcow2 
- 
-to get pure vga (640x480) old games on windows xp? 
--vga cirrus 
- 
-default is 
-# -net nic -net user 
-nic: enables network card 
-user: sets up virtual subnet (dhcp: 10.0.2.15{guest} 10.0.2.2{host}) 
- 
-# -net nic -net user,hostname=my1VM 
-# -name "MY1 VM" 
- 
-# -redir tcp:2222::22 
- 
-qemu-system-i386 -soundhw help 
- 
-qemu-system-i386 -soundhw sb16 
-qemu-system-i386 -soundhw all 
- 
-3d graphics 
- 
--vga virtio -display sdl,gl=on 
--vga virtio -display gtk,gl=on 
- 
-qemu-system-i386 -m 1536 -boot order=c,once=d -hda Slack.img -cdrom slackware-14.1-install.iso 
- 
-qemu-img convert -O qcow2 image.qcow2 image_small.qcow2 
-qemu-img convert -O qcow2 -c image.qcow2 image_smaller.qcow2 
-</code> 
  
notes/qemu.1768000650.txt.gz · Last modified: by azman