{"id":13974,"date":"2022-09-06T10:18:38","date_gmt":"2022-09-06T07:18:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=13974"},"modified":"2024-03-09T21:31:46","modified_gmt":"2024-03-09T18:31:46","slug":"change-windows-boot-device-from-ide-to-virtio-on-kvm","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/change-windows-boot-device-from-ide-to-virtio-on-kvm\/","title":{"rendered":"Change Windows Boot Device from IDE to Virtio on KVM"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to change Windows boot device from IDE to Virtio on KVM. IDE and Virtio are types of virtual disk controllers. They emulate the common hard disk controllers for physical devices. The type of the virtual bus\/device controllers that you use while setting up a virtual machine will affect the performance of the VM in terms of data read write operations. Thre are other device controllers supported by KVM including SATA, SCSI, USB. Of all these, Virtio bus device controller provides maximum performance.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#change-windows-boot-device-from-ide-to-virtio\">Change Windows Boot Device from IDE to Virtio<\/a><ul><li><a href=\"#install-virtio-drivers-on-windows-systems\">Install Virtio Drivers on Windows Systems<\/a><\/li><li><a href=\"#configure-windows-to-start-in-safe-mode\">Configure Windows to Start in Safe Mode<\/a><\/li><li><a href=\"#attach-virtio-drivers-iso-to-the-virtual-machine\">Attach Virtio Drivers ISO to the Virtual Machine<\/a><\/li><li><a href=\"#disable-safe-mode-boot\">Disable Safe Mode Boot<\/a><\/li><li><a href=\"#change-boot-device-from-ide-to-virtio-and-start-the-vm\">Change Boot Device from IDE to Virtio and Start the VM<\/a><\/li><li><a href=\"#other-tutorials\">Other Tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"change-windows-boot-device-from-ide-to-virtio\">Change Windows Boot Device from IDE to Virtio<\/h2>\n\n\n\n<p>So, assuming that you have already installed and configured your Windows VM on KVM, and using IDE bus device controller, how can you change it to Virtio for better performance?<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1174\" height=\"793\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE.png\" alt=\"Change Windows Boot Device from IDE to Virtio on KVM\" class=\"wp-image-13980\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE.png?v=1662879212 1174w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE-768x519.png?v=1662879212 768w\" sizes=\"(max-width: 1174px) 100vw, 1174px\" \/><\/figure><\/div>\n\n\n<p>Well, as much it is easy to just change the disk bus controller from the virtual machine settings as shown below and apply the changes;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1263\" height=\"808\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio.png\" alt=\"Change Windows Boot Device from IDE to Virtio on KVM\" class=\"wp-image-13981\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio.png?v=1662879241 1263w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio-768x491.png?v=1662879241 768w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" \/><\/figure><\/div>\n\n\n<p>When you boot, it may fail with <strong>INACCESSIBLE BOOT DEVICE<\/strong>;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1589\" height=\"870\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-no-boot-device.png\" alt=\"\" class=\"wp-image-13982\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-no-boot-device.png?v=1662879280 1589w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-no-boot-device-768x420.png?v=1662879280 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-no-boot-device-1536x841.png?v=1662879280 1536w\" sizes=\"(max-width: 1589px) 100vw, 1589px\" \/><\/figure><\/div>\n\n\n<p>So, in such situations, how can you proceed to boot your Windows system with Virtio disk bus type?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-virtio-drivers-on-windows-systems\">Install Virtio Drivers on Windows Systems<\/h3>\n\n\n\n<p>If you want to change your Windows boot device from IDE to Virtio on KVM, you first of all need to install Virtio drivers.<\/p>\n\n\n\n<p>In this tutorial, we are going to use Windows 10 as a our Virtual Machine. However, the method of installing Virtio drivers is same across all Windows systems.<\/p>\n\n\n\n<p>Thus, power off the virtual machine and change the boot device bus type back to IDE as it were before;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1174\" height=\"793\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE.png\" alt=\"Change Windows Boot Device from IDE to Virtio on KVM\" class=\"wp-image-13980\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE.png?v=1662879212 1174w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-IDE-768x519.png?v=1662879212 768w\" sizes=\"(max-width: 1174px) 100vw, 1174px\" \/><\/figure><\/div>\n\n\n<p>Once you change the bus type to IDE, apply the changes and boot the virtual machine.<\/p>\n\n\n\n<p>Once the virtual machine boots, login and;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download the <a href=\"https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/stable-virtio\/virtio-win.iso\" target=\"_blank\" rel=\"noopener\">latest stable Virtio drivers <\/a>&nbsp;or you can download the&nbsp;<a href=\"https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/latest-virtio\/virtio-win.iso\" target=\"_blank\" rel=\"noopener\">most recent<\/a>&nbsp;build of the ISO.<\/li>\n\n\n\n<li>Open the Windows File Explorer and navigate to where you downloaded your Virtio drivers ISO file.<\/li>\n\n\n\n<li>Double click the ISO file to mount it so you can be able to access the installer.<\/li>\n\n\n\n<li>Once the ISO is mounted, double click the <strong>virtio-win-gt-x64<\/strong> installer and follow the installation instructions.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1252\" height=\"797\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/install-virti-drivers-windows.png\" alt=\"\" class=\"wp-image-13983\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/install-virti-drivers-windows.png?v=1662879376 1252w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/install-virti-drivers-windows-768x489.png?v=1662879376 768w\" sizes=\"(max-width: 1252px) 100vw, 1252px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-windows-to-start-in-safe-mode\">Configure Windows to Start in Safe Mode<\/h3>\n\n\n\n<p>In order for the Windows system to enable and load all the newly installed Virtio drivers, you need to configure it to boot in safe mode first.<\/p>\n\n\n\n<p>To configure Windows 10 to boot in safe mode;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open CMD as administrator<\/li>\n\n\n\n<li>Run the command below;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>bcdedit \/set {current} safeboot minimal<\/code><\/pre>\n\n\n\n<p>You should see a message, <strong>The operation completed successfully.<\/strong><\/p>\n\n\n\n<p>Poweroff the VM once that is done.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"attach-virtio-drivers-iso-to-the-virtual-machine\">Attach Virtio Drivers ISO to the Virtual Machine<\/h3>\n\n\n\n<p>Similarly, download <a href=\"https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/latest-virtio\/virtio-win.iso\" target=\"_blank\" rel=\"noreferrer noopener\">Virtio drivers ISO file<\/a> to your host machine and attach it to the VM;<\/p>\n\n\n\n<p>Under virtual machine hardware information;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>Add Hardware<\/strong> option at the bottom<\/li>\n\n\n\n<li>Under <strong>Storage<\/strong>\n<ul class=\"wp-block-list\">\n<li>click <strong>Select or create custom storage<\/strong><\/li>\n\n\n\n<li>click <strong>Manage&#8230;<\/strong> and navigate to where you downloaded the Virtio drivers ISO file to<\/li>\n\n\n\n<li>change <strong>Bus Type<\/strong> to <strong>VirtIO<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1661\" height=\"1028\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/attach-virtio-drivers.png\" alt=\"Change Windows Boot Device from IDE to Virtio on KVM\" class=\"wp-image-13992\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/attach-virtio-drivers.png?v=1662960518 1661w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/attach-virtio-drivers-768x475.png?v=1662960518 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/attach-virtio-drivers-1536x951.png?v=1662960518 1536w\" sizes=\"(max-width: 1661px) 100vw, 1661px\" \/><\/figure><\/div>\n\n\n<p>Start the VM.<\/p>\n\n\n\n<p>It will boot in Safe Mode and load all the necessary drivers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disable-safe-mode-boot\">Disable Safe Mode Boot<\/h3>\n\n\n\n<p>Once again, open CMD as administrator and disable safe mode boot;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bcdedit \/deletevalue {current} safeboot<\/code><\/pre>\n\n\n\n<p>Similarly, you should see a message, <strong>The operation completed successfully.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"change-boot-device-from-ide-to-virtio-and-start-the-vm\">Change Boot Device from IDE to Virtio and Start the VM<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Shutdown the VM.<\/li>\n\n\n\n<li>Remove that attached Virtio Drivers ISO file and apply the changes.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1904\" height=\"1021\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/remove-attached-Virtio-Drivers-ISO-file.png\" alt=\"Change Windows Boot Device from IDE to Virtio on KVM\" class=\"wp-image-13984\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/remove-attached-Virtio-Drivers-ISO-file.png?v=1662879438 1904w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/remove-attached-Virtio-Drivers-ISO-file-768x412.png?v=1662879438 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/remove-attached-Virtio-Drivers-ISO-file-1536x824.png?v=1662879438 1536w\" sizes=\"(max-width: 1904px) 100vw, 1904px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Change the boot disk bus type to Virtio and apply the changes;<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1263\" height=\"808\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio.png\" alt=\"\" class=\"wp-image-13981\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio.png?v=1662879241 1263w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/boot-device-bus-virtio-768x491.png?v=1662879241 768w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" \/><\/figure><\/div>\n\n\n<p>Apply the changes and start the VM after that.<\/p>\n\n\n\n<p>And there you go.<\/p>\n\n\n\n<p>You Windows virtual machine should now boot with Virtio disk with no error!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1818\" height=\"994\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-disk-kvm.png\" alt=\"\" class=\"wp-image-13985\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-disk-kvm.png?v=1662879719 1818w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-disk-kvm-768x420.png?v=1662879719 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/09\/windows-10-virtio-disk-kvm-1536x840.png?v=1662879719 1536w\" sizes=\"(max-width: 1818px) 100vw, 1818px\" \/><\/figure><\/div>\n\n\n<p>That concludes our guide on changing Windows boot device from IDE to Virtio on KVM.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-tutorials\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/easy-way-to-extend-kvm-virtual-machine-disk-size\/\" target=\"_blank\" rel=\"noreferrer noopener\">Easy Way to Extend KVM Virtual Machine Disk Size<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/start-and-stop-kvm-virtual-machines-from-command-line\/\" target=\"_blank\" rel=\"noreferrer noopener\">Start and Stop KVM Virtual Machines from Command Line<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/use-virtualbox-vms-on-kvm\/\" target=\"_blank\" rel=\"noreferrer noopener\">Use VirtualBox VMs on KVM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to change Windows boot device from IDE to Virtio on KVM. IDE and Virtio are types of virtual<\/p>\n","protected":false},"author":1,"featured_media":13990,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,112],"tags":[5786,5787,5788,5785,5784],"class_list":["post-13974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-kvm","tag-how-do-i-convert-an-ide-disk-to-virtio","tag-how-to-change-the-controller-driver-of-a-windows-vm-to-virtio","tag-how-to-migrate-an-ide-vm-to-a-virtio-vm","tag-windows-10-in-kvm-change-boot-disk-to-virtio","tag-windows-boot-device-from-ide-to-virtio-on-kvm","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13974"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=13974"}],"version-history":[{"count":13,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13974\/revisions"}],"predecessor-version":[{"id":20625,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13974\/revisions\/20625"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/13990"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=13974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=13974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=13974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}