{"id":1247,"date":"2020-07-23T12:55:41","date_gmt":"2020-07-23T02:55:41","guid":{"rendered":"https:\/\/blog.hegars.com\/?p=1247"},"modified":"2024-09-07T16:57:26","modified_gmt":"2024-09-07T06:57:26","slug":"qemu","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=1247","title":{"rendered":"QEMU"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">escape key <\/h3>\n\n\n\n<p>for&nbsp;<code>-nographic<\/code><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nCtrl-A X\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Disk <\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">create disk image<\/h3>\n\n\n\n<p>qemu-img create -f qcow2 win2k.img 4G<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">convert qcow2 to raw<\/h3>\n\n\n\n<p>qemu-img convert 32mb.qcow2 32mb.raw<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mount disk image<\/h3>\n\n\n\n<p>losetup \/dev\/loop0 32mb.raw <br>kpartx -a \/dev\/loop0 <br>mount \/dev\/mapper\/loop0p1 \/mnt\/32mb<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">convert an image<\/h3>\n\n\n\n<p>qemu-img convert -f vmdk -O raw image.vmdk image.img<\/p>\n\n\n\n<p>qemu-img convert imagefile.dd -O vmdk vmdkname.vmdk<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Change floppy disk on the fly<\/h3>\n\n\n\n<p> (qemu) change floppy0 \/path\/to\/floppy.img <\/p>\n\n\n\n<p>qemu-system-i386 -drive format=raw,file=.\/128mb.raw -m 128 -net nic,model=rtl8139 -net user -cdrom .\/FD12LGCY.iso  -drive format=raw,if=floppy,index=0,file=.\/FLOPPY.img -boot a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">booting a readonly disk dump<\/h3>\n\n\n\n<p><a href=\"https:\/\/wiki.qemu.org\/Documentation\/CreateSnapshot\">https:\/\/wiki.qemu.org\/Documentation\/CreateSnapshot<\/a><\/p>\n\n\n\n<p>qemu-system-x86_64 -display none -vnc :0 -m 8192 -hda \/mnt\/sda1\/win10.hdd -snapshot<\/p>\n\n\n\n<p>virsh pool-list<\/p>\n\n\n\n<p>virsh vol-list default<\/p>\n\n\n\n<p><a href=\"https:\/\/people.redhat.com\/pbonzini\/qemu-test-doc\/_build\/html\/topics\/disk_005fimages.html\">https:\/\/people.redhat.com\/pbonzini\/qemu-test-doc\/_build\/html\/topics\/disk_005fimages.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Temp<\/h2>\n\n\n\n<p>1265  qemu-img <br>  1266  qemu-img &#8211;help<br>  1267  qemu-img create -f raw win2k.img 4G<br>  1269  qemu-system-i386 -hda win2k.img -m 384 -boot c -vga cirrus -net nic,model=rtl8139 -net user<br>  1270  qemu-system-i386 -hda win2k.img -m 384 -boot c -vga cirrus -net nic,model=rtl8139 -net user  -usb -soundhw sb16 -localtime -cdrom EN_WIN2000_PRO_SP4.ISO<br>  1271  qemu-img create -f qcow2 win2k.img 4G<br>  1272  qemu-system-i386 -hda win2k.img -m 384 -boot c -vga cirrus -net nic,model=rtl8139 -net user  -usb -soundhw sb16 -localtime -cdrom EN_WIN2000_PRO_SP4.ISO<br>  1273  qemu-system-i386 -hda win2k.img -m 384 -boot c -vga cirrus emu  -usb -soundhw sb16 -localtime -cdrom EN_WIN2000_PRO_SP4.ISO -vnc<br>  1274  qemu-system-i386 -hda win2k.img -m 384 -boot c -vga cirrus -net nic,model=rtl8139 -net user  -usb -soundhw sb16 -localtime -cdrom EN_WIN2000_PRO_SP4.ISO -vnc :0<br>  1589  qemu-system-i386 -m 128m -nographic<br>  1590  qemu-system-i386 -m 128M -nographic<br>  1609  qemu-system-ppc<br>  1610  man qemu-system-ppc<br>  1611  qemu-system-ppc -m 32M -nographic -s -S -kernel zImage_ts_140-3.bin<br>  1612  qemu-system-ppc -m none 32M -nographic -s -S -kernel zImage_ts_140-3.bin<br>  1613  qemu-system-ppc &#8211;machine none -m 32M -nographic -s -S -kernel zImage_ts_140-3.bin<br>  1614  qemu-system-ppc &#8211;machine none -m 32M -nographic -kernel zImage_ts_140-3.bin<br>  1615  qemu-system-ppc -m 32M -nographic -kernel zImage_ts_140-3.bin<br>  1616  qemu-system-ppc -m 32M -nographic <br>  1617  qemu-system-ppc -m 32M -nographic zImage_ts_140-3.bin<br>  1618  qemu-system-ppc -m 32M -nographic -raw zImage_ts_140-3.bin<br>  1619  qemu-system-ppc -m 32M -nographic <br>  1621  qemu-system-arm <br>  1622  qemu-system-arm -machine raspi -nographic -m 128M<br>  1623  qemu-system-arm -machine raspi2 -nographic -m 128M<br>  1630  qemu-system-arm -machine raspi2 -nographic -m 128M recovery.bin <br>  1631  qemu-system-arm -machine raspi2 -nographic -m 128M -kernel recovery.bin <br>  1632  qemu-system-arm -machine raspi2 -nographic -m 256M -kernel recovery.bin <br>  1639  qemu-system-arm -machine raspi2 -nographic -m 256M -kernel raspbian_lite_latest <br>  1640  qemu-system-arm -machine raspi2 -nographic -m 256M -kernel pieeprom.bin <br>  1641  qemu-system-arm -machine raspi2 -nographic -m 256M -kernel pieeprom.bin -hda raspbian_lite_latest <br>  1652  qemu-system-arm -machine raspi2 -nographic -m 256M -kernel 2019-07-10-raspbian-buster-lite.img <br>  1653  qemu-system-arm -machine raspi2 -nographic -m 256M -hda 2019-07-10-raspbian-buster-lite.img <br>  1654  qemu-system-arm -machine raspi2 -nographic -m 256M 2019-07-10-raspbian-buster-lite.img <br>  1655  qemu-system-arm -machine raspi2 -nographic -m 256M -raw 2019-07-10-raspbian-buster-lite.img <br>  1656  man qemu<br>  1657  man qemu-system<br>  1658  qemu-system-arm -machine raspi2 -nographic -m 256M =format=raw 2019-07-10-raspbian-buster-lite.img <br>  1659  qemu-system-arm -machine raspi2 -nographic -m 256M format=raw 2019-07-10-raspbian-buster-lite.img <br>  1660  qemu-system-arm -machine raspi2 -nographic -m 256M -drive format=raw,2019-07-10-raspbian-buster-lite.img <br>  1661  qemu-system-arm -machine raspi2 -nographic -m 256M -hda format=raw,2019-07-10-raspbian-buster-lite.img <br>  1662  qemu-system-arm -machine raspi2 -nographic -m 256M -hda format=raw,media=2019-07-10-raspbian-buster-lite.img <br>  1663  qemu-system-arm -machine raspi2 -nographic -m 256M -drive format=raw,media=2019-07-10-raspbian-buster-lite.img <br>  1664  qemu-system-arm -machine raspi2 -nographic -m 256M -drive format=raw,file=2019-07-10-raspbian-buster-lite.img <br>  1665  qemu-system-arm -machine raspi2 -m 256M -drive format=raw,file=2019-07-10-raspbian-buster-lite.img <br>kernel\/raw\/master\/versatile-pb.dtb<br>  1710  qemu-system-ppc<br>  1711  qemu-system-sparc<br>  1713  qemu-system-x86_64 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>escape key for&nbsp;-nographic Disk create disk image qemu-img create -f qcow2 win2k.img 4G convert qcow2 to raw qemu-img convert 32mb.qcow2 32mb.raw mount disk image losetup \/dev\/loop0 32mb.raw kpartx -a \/dev\/loop0 mount \/dev\/mapper\/loop0p1 \/mnt\/32mb convert an image qemu-img convert -f vmdk -O raw image.vmdk image.img qemu-img convert imagefile.dd -O vmdk vmdkname.vmdk Change floppy disk on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[6,37],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1247"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1247"}],"version-history":[{"count":16,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions"}],"predecessor-version":[{"id":2555,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions\/2555"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}