Installing opnsense 17.1 on Hyper-V Server 2008 R2

A customer wants an Installation of the opnsense Firewall on a Hyper-V Server 2008 R2. So I got the zipped iso file from one of the mirrors, unpacked it and started the installation. During the setup the installer told me that it was unable to find a suitable IDE or SCSI drive:


“The installer could not find any disks suitable for Installation (IDE or SCSI) attached to this Computer…”

I installed opnsense a couple of days before on a Hyper-V Server 2016 so I thought it would no problem to also install it on Hyper-V on Server 2008 R2 but that is not the case. It seems that BSD has a problem on Hyper-V on Server 2008 R2. This issue is also documented on TechNet:

The page also has a solution for the problem in section “Disable the Fast IDE Driver“. You need to exit the boot loader an disable the fast IDE driver. To do this in opnsense boot the CD and exit the boot loader with menu item 3 (Escape to loader prompt):


Then enter the following commands:

set hw.ata.disk_enable=1


This disables the fast IDE driver and boots the installer so that you are able to install opnsense. The change is not permanent, if you boot the opnsense vm the next time you have to repeat the procedure. To make the change stay we have to edit the file “/boot/loader.conf.local”. It is also possible to edit the file “loader.conf” directly but if you change something in the configuration of the vm (add a network card for example) this file will be overwritten. So the right file to edit is “loader.conf.local” and not “loader.conf”.

To do this start the opnsense vm and exit the boot loader and enter the commands again. Opnsense will now boot and automatically assign the interfaces if you don’t invoke the manual interface assignment. Logon with the default logon data, “root” as username and “opnsense” as password. Opnsense should display the console menu:


Exit the console menu with “8” and enter the following command to load the text editor and edit the file loader.conf.local:

ee /boot/loader.conf.local

In the text editor add a new line with the following text:


The content should look like this after the Change:

Press “Escape” and select “a) leave editor” and save the changes:

Now you can reboot the vm without any manual tasks, the entry in the loader.conf.local will permanently disable the fast IDE driver.

Author Image
Carlos Shepardos

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: