{"id":96017,"date":"2020-10-23T16:00:35","date_gmt":"2020-10-23T13:00:35","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/"},"modified":"2020-10-23T16:00:35","modified_gmt":"2020-10-23T13:00:35","slug":"how-to-use-qemu-to-boot-another-os-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/","title":{"rendered":"#How to use QEMU to boot another OS \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6aee683b5b4fd\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6aee683b5b4fd\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/#1_The_command_to_start_QEMU\" >1. The command to start QEMU<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/#2_The_virtual_disk\" >2. The virtual disk<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/#3_The_boot_ISO\" >3. The boot ISO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/#4_Memory\" >4. Memory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-qemu-to-boot-another-os-cloudsavvy-it\/#5_Boot_order\" >5. Boot order<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to use QEMU to boot another OS \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\" alignnone wp-image-7524 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/34712ab5d64eaea8026ce30494f85fac\/p\/uploads\/2020\/10\/5c8bb131.png\" alt=\"QEMU logo.\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>That old legacy system is gone, never to be heard from again. Right? But what do you do on the fateful day that someone needs to access data that\u2019s tr<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ed in an old legacy application? If modern applications can\u2019t read the data, you need to run the legacy system. And that\u2019s where\u00a0<em>system emulation<\/em> comes in.<\/p>\n<p>The open-source PC emulator\u00a0QEMU\u00a0is included by default in most mainline Linux distributions, but you can also download versions of QEMU for other Linux distributions. If you run Windows or macOS, the <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.qemu.org\/\">QEMU website<\/a> provides packages for those platforms, too. QEMU provides excellent system-level compatibility and support, making it an ideal and lightweight virtual machine environment.<\/p>\n<p>You\u2019ll need a place to install the legacy system inside QEMU, and for that you\u2019ll need a virtual C: drive. In DOS, just as in Windows, drives are represented as letters. A: and B: are the first and second floppy disk drives, and C: is the first hard drive. Other <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/social-mediaa\/\" data-internallinksmanager029f6b8e52c=\"1\" title=\"Social Media\" target=\"_blank\" rel=\"noopener\">media<\/a>, including other hard drives or CD-ROM drives, are assigned D:, E:, and so on.<\/p>\n<p>Under QEMU, virtual drives are image files. To initialize a file that you can use as a virtual C: drive, use the <code>qemu-img<\/code> command. To create an image file that\u2019s about 200MB, type this:<\/p>\n<pre>$ qemu-img create image.img 200M<\/pre>\n<p>Unlike PC emulator systems like VMware or VirtualBox, you need to \u201cbuild\u201d your virtual system by instructing QEMU to add each component of the virtual machine. QEMU uses command line options to define everything. This can make QEMU difficult to use at first, but this provides flexibility in creating exactly the virtual machine that you want. To get started, you only need to know a few parameters to start a virtual machine:<\/p>\n<h2><span class=\"ez-toc-section\" id=\"1_The_command_to_start_QEMU\"><\/span>1. The command to start QEMU<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To emulate a legacy PC system, use <code>qemu-system-i386<\/code> . To emulate a more modern system, use <code>qemu-system-x86_64<\/code> .<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_The_virtual_disk\"><\/span>2. The virtual disk<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use <code>-hda <em>imagefile<\/em><\/code> to tell QEMU to use imagefile as the hard drive image. This should be the same virtual disk you defined with the\u00a0 <code>qemu-img<\/code>\u00a0 command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_The_boot_ISO\"><\/span>3. The boot ISO<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Set <code>-cdrom <em>isofile<\/em><\/code> to define the CD-ROM or DVD image file. For example, this might be the bootable ISO image to install Linux, Windows, or another operating system.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_Memory\"><\/span>4. Memory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Set the amount of memory in the virtual machine with the <code>-m <em>size<\/em><\/code> option. If you do not explicitly set this, QEMU defaults to 128 MB. You can also append a suffix of <code>M<\/code> or <code>G<\/code> to specify the memory in MB or GB.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_Boot_order\"><\/span>5. Boot order<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use <code>-boot [<em>options<\/em>]<\/code> to specify the order that QEMU should look for bootable devices. For example, set <code>-boot order=dc<\/code> to tell QEMU to try the CDROM ( <code>d<\/code> ) first, then the hard drive ( <code>c<\/code> ).<\/p>\n<p>Now that we have the essentials to start a virtual machine with QEMU, we can put it all together on a single command line to create and boot your virtual machine!<\/p>\n<p>Let\u2019s try it with an example: installing a copy of the FreeDOS operating system.\u00a0FreeDOS is an open source DOS-compatible operating system that you can use to run legacy business software and other DOS applications. Any program that works on MS-DOS should also run on FreeDOS.<\/p>\n<p>First, download a copy of the FreeDOS 1.2 install CD-ROM from the <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.freedos.org\/\">FreeDOS website<\/a>, as FD12CD.iso.<\/p>\n<p>Then define a virtual disk with the <code>qemu-img<\/code> command:<\/p>\n<pre>$ qemu-img create image.img 200M<\/pre>\n<p>Use that virtual disk in the command line to start QEMU:<\/p>\n<pre>$ qemu-system-i386 -hda image.img -cdrom\u00a0FD12CD.iso -m 16M -boot order=dc<\/pre>\n<figure id=\"attachment_7510\" style=\"width: 740px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7510 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/124c72430ce7daffc1c1695bca7e25de\/p\/uploads\/2020\/10\/19325850.png\" alt=\"Booting the FreeDOS 1.2 installer in QEMU\" width=\"740\" height=\"482\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Booting the FreeDOS 1.2 installer in QEMU.<\/figcaption><\/figure>\n<p>And follow the prompts to install FreeDOS:<\/p>\n<figure id=\"attachment_7511\" style=\"width: 740px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7511 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8937c6dfff5ea73d495e1ae5bd69d95d\/p\/uploads\/2020\/10\/edebab43.png\" alt=\"Starting the FreeDOS 1.2 installer in QEMU\" width=\"740\" height=\"482\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Starting the FreeDOS 1.2 installer in QEMU.<\/figcaption><\/figure>\n<figure id=\"attachment_7512\" style=\"width: 740px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7512 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/71abb53e2f0e49ef04d2ee8c21bdb2df\/p\/uploads\/2020\/10\/6a9501ce.png\" alt=\"Completing the FreeDOS 1.2 install in QEMU\" width=\"740\" height=\"482\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Completing the FreeDOS 1.2 install in QEMU.<\/figcaption><\/figure>\n<p>And now you have a running DOS system!<\/p>\n<figure id=\"attachment_7513\" style=\"width: 740px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7513 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0076913e35b2381f5c7381961c60309d\/p\/uploads\/2020\/10\/094d0115.png\" alt=\"Running FreeDOS 1.2 in QEMU\" width=\"740\" height=\"482\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Running FreeDOS 1.2 in QEMU<\/figcaption><\/figure>\n<p>QEMU and FreeDOS make it easy to run old DOS programs under other operating systems, including Linux. Once you\u2019ve set up QEMU as the virtual machine emulator and installed FreeDOS, you should be all set to run your favorite classic DOS programs from Linux.\n<\/p><\/div>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/6719\/how-to-use-qemu-to-boot-another-os\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to use QEMU to boot another OS \u2013 CloudSavvy IT&#8221; That old legacy system is gone, never to be heard from again. Right? But what do you do on the fateful day that someone needs to access data that\u2019s trapped in an old legacy application? If modern applications can\u2019t read the data, you need&#8230;<\/p>\n","protected":false},"author":1,"featured_media":96018,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/10\/5c8bb131.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-96017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/96017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=96017"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/96017\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/96018"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=96017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=96017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=96017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}