OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: jobinjv on May 25, 2019, 01:15:24 pm

Title: Unable to install on HyperV - Mount Error
Post by: jobinjv on May 25, 2019, 01:15:24 pm
I am trying to setup opnsense on a hyperv and every time the install ends at the same point. I have allocated 32 GB HDD and 3 GB RAM, 2 Virtual processors as well.

I tried to install 18.7 and upgrade to 19.1. 18.7 went fine and I was able to do ten initial config. Once I did the upgrade it went back to the same thing.
Title: Re: Unable to install on HyperV
Post by: bimmerdriver on May 25, 2019, 08:04:21 pm
I have opnsense production and development versions running on windows server 2012r2 hyper-v with no issues like what you're having. Can you provide more details about the configuration?
Title: Re: Unable to install on HyperV
Post by: mimugmail on May 26, 2019, 07:23:28 am
Dont use Gen2 machine mode
Title: Re: Unable to install on HyperV
Post by: jobinjv on May 26, 2019, 09:10:17 am
Its Gen 1.

Title: Re: Unable to install on HyperV
Post by: bimmerdriver on May 26, 2019, 05:27:00 pm
I'm using generation 2 for both versions of opnsense that I have running. There is no reason not to use it. You just have to remember to disable secure boot, because it's not supported by freebsd. For the rest of the settings, you should use defaults.

Title: Re: Unable to install on HyperV
Post by: jobinjv on May 30, 2019, 12:34:19 am
I used Gen 1, Installed 18.7. Worked perfectly fine till i tried to upgrade to 19.1.7 and there it went.

Tried a fresh install and still the same.

I tried on Gen 2 with secure boot disabled and below are the different stages of how that install went.

Title: Re: Unable to install on HyperV
Post by: bunchofreeds on May 30, 2019, 03:41:52 am
I run OPNsense 19.1.8 with Hyper-V 2019 - Was installed as 19.1.4 then been upgraded since.

Have installed and run 19.1.7 both Gen 1 and Gen 2 successfully.

Is it possible your 19.1.7 media is corrupt?
Title: Re: Unable to install on HyperV
Post by: bimmerdriver on May 30, 2019, 04:36:48 am
I used Gen 1, Installed 18.7. Worked perfectly fine till i tried to upgrade to 19.1.7 and there it went.

Tried a fresh install and still the same.

I tried on Gen 2 with secure boot disabled and below are the different stages of how that install went.
I see only one network adapter. What is your network configuration?
Title: Re: Unable to install on HyperV
Post by: jobinjv on May 30, 2019, 02:34:01 pm
I just didn't enable, its the same if its added too.  :-\
Title: Re: Unable to install on HyperV
Post by: bimmerdriver on May 31, 2019, 01:12:41 am
Post the settings for the network adapters.

Try installing the same version of freebsd.
Title: Re: Unable to install on HyperV
Post by: jobinjv on May 31, 2019, 10:11:34 am
 LAN NIC

(https://i.ibb.co/nmgqjdS/2019-05-31-10-58-36.jpg) (https://ibb.co/H4FLqwQ)
(https://i.ibb.co/1XqCsd7/2019-05-31-10-58-57.jpg) (https://ibb.co/z2R387Q)
(https://i.ibb.co/Bf9Jgdg/2019-05-31-10-59-06.jpg) (https://ibb.co/10kN9h9)

WAN NIC

(https://i.ibb.co/3z0Zf3V/2019-05-31-10-59-16.jpg) (https://ibb.co/BNgM4pv)
(https://i.ibb.co/RYp3Dzd/2019-05-31-10-59-27.jpg) (https://ibb.co/wBNSzMj)
(https://i.ibb.co/2dH72Gw/2019-05-31-10-59-39.jpg) (https://ibb.co/jDsvKnd)

Last screen on the install process

(https://i.ibb.co/N6Qp4X5/2019-05-31-11-00-14.jpg) (https://ibb.co/DDskqNh)

Title: Re: Unable to install on HyperV
Post by: jobinjv on May 31, 2019, 02:13:18 pm
Why does the install stop at the point it tries to mount root

(https://i.ibb.co/mHMX89H/2019-05-31-14-02-04.jpg) (https://ibb.co/JzMyQvz)
Title: Re: Unable to install on HyperV
Post by: bimmerdriver on May 31, 2019, 04:13:01 pm
Your network adapter settings are exactly what I'm using.

I have no comment about why it's stopping when it's trying to mount root. I've never seen that. Maybe someone else?
Title: Re: Unable to install on HyperV
Post by: jobinjv on June 01, 2019, 12:56:00 pm
It seems alls going waste, Gen1 Gen2. Nothing makes a sense. Direct DVD, ISO Image or even the VGA image onto a disk doesn't do the thing. All stop right here.
Title: Re: Unable to install on HyperV - Mount Error
Post by: bunchofreeds on June 05, 2019, 12:45:31 am
Just a thought...

Do you have the latest supported BIOS for your system.
An updated Hardened FreeBSD 11.2 is used now and may require a later BIOS?
Possibly worth checking any other firmware for storage controllers etc
Title: Re: Unable to install on HyperV - Mount Error
Post by: ala.tech on June 05, 2019, 06:55:41 am
Edited for duplication and unfortunately I am too newb to know how to delete. But, also, what hardware you running hyper-V on?
Title: Re: Unable to install on HyperV - Mount Error
Post by: ala.tech on June 05, 2019, 06:58:43 am
What version of Hyper-V are you running? I have installed OPNSense on 2012 R2, 2016, and 2019. That all said, I did have the issue when installing 19.1 on Hyper-V 2019 where it would get stuck at selecting the install destination, but the CTRL-C would get it through that.

A thought would be to add an IDE controller and attach a HDD to that to see if that allows it through. I have other non-OPNSense BSD versions like the IDE controller better than the SCSI.

Lastly, I can build an OPNSense VM on Hyper-V, export it, and give you a link to see if it is just the install or OPNSense as a whole on your particular setup.
Title: Re: Unable to install on HyperV - Mount Error
Post by: jobinjv on June 05, 2019, 04:28:47 pm
Just a thought...

Do you have the latest supported BIOS for your system.
An updated Hardened FreeBSD 11.2 is used now and may require a later BIOS?
Possibly worth checking any other firmware for storage controllers etc

I have a GA-890FXA-UD5 with an AMD Phenomâ„¢ II X6.

I am running a pfSense on the same and its running fine, which makes me doubt. It is also based on FreeBSD 11.2

Title: Re: Unable to install on HyperV - Mount Error
Post by: jobinjv on June 05, 2019, 05:21:36 pm
What version of Hyper-V are you running? I have installed OPNSense on 2012 R2, 2016, and 2019. That all said, I did have the issue when installing 19.1 on Hyper-V 2019 where it would get stuck at selecting the install destination, but the CTRL-C would get it through that.

A thought would be to add an IDE controller and attach a HDD to that to see if that allows it through. I have other non-OPNSense BSD versions like the IDE controller better than the SCSI.

Lastly, I can build an OPNSense VM on Hyper-V, export it, and give you a link to see if it is just the install or OPNSense as a whole on your particular setup.

I have Hyper-V running on 2019. I was thinking of having a direct HDD for the VM.

I would be great if you could share a link, Can be checked if its something with the install.
Title: Re: Unable to install on HyperV - Mount Error
Post by: ala.tech on June 06, 2019, 10:39:53 pm
I apologize for the delay, ended up in meetings all day yesterday. Here is the link to get it:

https://www.dropbox.com/s/xasw9wz8vmdv7yf/OPNSense_19_1_4.zip?dl=0

It will expire in 15 days. I did the following:

Gen 2 VM (Secure Boot Off)
2x vCPU
3GB of RAM
32GB of HDD (SCSI 0:0)
2x vNIC

Installed 19.1.4 (image I had laying around) using Guided Install method and GPT/UEFI for disk. Default login.
I did test it by putting an IP on the LAN interface and hooking it up to my test network. It passed traffic and worked. I then reset it all to factory defaults using the console menu.

Hopefully that helps!
Title: Re: Unable to install on HyperV - Mount Error
Post by: bunchofreeds on June 07, 2019, 02:40:15 am
Pfsense is using FreeBSD 11.2, whereas OPNsense is using 'Hardened FreeBSD' 11.2 https://hardenedbsd.org/

I believe some components are removed from a standard FreeBSD kernel when creating a Hardened BSD build in an attempt to reduce the possible attack surface among other things.
If you're on the latest supported BIOS and firmware then it might be a request to the Hardened BSD team to see what is going on.

OPNsense and Hardened BSD have a pretty close relationship from what I understand, so hopefully one of their team can help with getting you past this boot error.

Edit: You could try downloading HBSD 11.2 and booting that up in Hyper-V 2019. See if it fails at the same point. This would point to either OPNsense or HBSD as being the issue.

Title: Re: Unable to install on HyperV - Mount Error
Post by: jobinjv on June 07, 2019, 10:35:40 am
I apologize for the delay, ended up in meetings all day yesterday. Here is the link to get it:

https://www.dropbox.com/s/xasw9wz8vmdv7yf/OPNSense_19_1_4.zip?dl=0

It will expire in 15 days. I did the following:

Gen 2 VM (Secure Boot Off)
2x vCPU
3GB of RAM
32GB of HDD (SCSI 0:0)
2x vNIC

Installed 19.1.4 (image I had laying around) using Guided Install method and GPT/UEFI for disk. Default login.
I did test it by putting an IP on the LAN interface and hooking it up to my test network. It passed traffic and worked. I then reset it all to factory defaults using the console menu.

Hopefully that helps!

Thank You so much but that too didnt work :(

Pfsense is using FreeBSD 11.2, whereas OPNsense is using 'Hardened FreeBSD' 11.2 https://hardenedbsd.org/

I believe some components are removed from a standard FreeBSD kernel when creating a Hardened BSD build in an attempt to reduce the possible attack surface among other things.
If you're on the latest supported BIOS and firmware then it might be a request to the Hardened BSD team to see what is going on.

OPNsense and Hardened BSD have a pretty close relationship from what I understand, so hopefully one of their team can help with getting you past this boot error.

Edit: You could try downloading HBSD 11.2 and booting that up in Hyper-V 2019. See if it fails at the same point. This would point to either OPNsense or HBSD as being the issue.



This seemed to point to the cause thou, the Hardened BSD also didnt install and kept going the same way. Have send a mail to the develeopers over at Hardened BSD hope they can help :(