OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: sh8pe on February 01, 2017, 01:47:57 pm

Title: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: sh8pe on February 01, 2017, 01:47:57 pm
Hi,

I tried to upgrade my opnsense from 16.7.14 to 17.1 in my Hyper-V (W2K12R2) VM, and after the
first boot I´ve got the Error: Mounting from ufs:/dev/da0s1a failed with error 19
With pressing "?" (List valid disk boot devices) only CD0 and FD0 is shown, nothing else.
One of the last message I see before is: (da0:blkvsc0:0:0:0): Periph destroyed

Maybe it is related to this bug?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212721

Someone else run into the same problem?

Best regards,
sh8pe
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: weust on February 01, 2017, 02:39:04 pm
I haven't updated yet, but will check it tomorrow evening.

I have a fresh install of 17.1b which is updated to 17.1rc1.
That runs and boots just fine.

Also have a 16.7.12 iirc, that I will upgrade full to 17.1 tomorrow night.
Will let you know how that went.

Oh, keep in mind that 11 had problems with booting, but that was pre-release.
Like the links mentions for 11-rc2/rc3.

Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: sh8pe on February 01, 2017, 10:02:14 pm
Now I´ve tried to boot with kernel.old and was successful. Afterwards I choose option 12 again, answered the question with "y" to install minor updates, installed kernel 16.7.11 and now I´m back again.  ;D

Now I am able to backup / snapshot and all that stuff before trying the update again ... in some month  ;)

BR
sh8pe
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: GurliGebis on February 02, 2017, 07:51:10 am
The fix is here, we just need it applied, and a new ISO to install from: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175166&action=diff
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: GurliGebis on February 02, 2017, 09:37:06 am
And here is an ISO that works: https://pkg.opnsense.org/snapshots/OPNsense-17.1-HyperV-cdrom-amd64.iso.bz2
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: GurliGebis on February 02, 2017, 09:37:47 am
Upgrading is not possible with it though, so backup the config, reinstall with this iso, then restore the config like you normally would.
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: sh8pe on February 02, 2017, 10:37:44 am
This was quick! I will try it this evening!  :D
Thank you for your support!

BR
sh8pe
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: franco on February 02, 2017, 01:28:54 pm
Upgrade is still possible, you can mount the ISO into the existing VM, boot from it, go to the installer, select "Import Configuration", and then "Guided Installation". It will keep all your settings.

Note this is a FreeBSD 11.0 bug. We're adding a fix to 17.1.1.


Cheers,
Franco
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: GurliGebis on February 02, 2017, 04:07:08 pm
Ohhh, I didn't think about the import config directly from the installer - that's pretty smart :D
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: franco on February 02, 2017, 04:23:23 pm
FYI: https://github.com/opnsense/src/commit/bdf347ea9da

Coming to 17.1.1, thanks for testing GurliGebis!


Cheers,
Franco
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: weust on February 03, 2017, 08:07:32 am
I'll just wait for 17.1.1 then.

Reading the FreeBSD page I find it very confusing.
11-RC2 and 11-RC3 has this issue. It was fixed, and somehow came back exactly the same in 11-RELEASE?
Then what was OPNsense 17.1b and 17.1rc1 running? Thought that was 11-RELEASE?
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: franco on February 03, 2017, 11:00:06 am
*Not* fixed on 11.0-RELEASE. 11-STABLE is, but with a very long patch from Microsoft basically updating Hyper-V support, but who knows what problems are in there then... ;)
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: weust on February 03, 2017, 11:44:02 am
What branch was 17.1b and 17.1rc1 based on, then?
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: franco on February 03, 2017, 11:58:08 am
11.0-RELEASE with some things from 11-STABLE backported manually. 11-STABLE is not so stable (at least not with a verified release out there, it's open for commits and that makes it difficult to ensure "stableness"), so we are somewhere in the middle between those two points.
Title: Re: Upgrade from 16.7.14: First boot failed with Error 19 in Hyper-V VM
Post by: weust on February 03, 2017, 12:20:55 pm
Oh, the joy of FreeBSD and their naming conventions!