sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Ensure that corehost works on Nano Server

Open analogrelay opened this issue 10 years ago • 54 comments

We had some issues with building dnx on Nano Server. We need to verify that corehost will work fine on Nano Server (which only supports the OneCore APIs).

analogrelay avatar Dec 10 '15 17:12 analogrelay

I think @schellap and @gkhanna79 own this now, right? This is definitely important for RTM since we expect ASP.NET applications to run on Nano Server. @moozzyk may have some insight from our own porting efforts for DNX.

/cc @piotrpMSFT

analogrelay avatar Jan 14 '16 18:01 analogrelay

Yes, @schellap owns it. However, I am not sure if this can make RC2 but can be done for RTM. I will move this to RTM - let me know if anyone feels otherwise.

CC @leecow

gkhanna79 avatar Jan 14 '16 19:01 gkhanna79

@anurse @Rick-Anderson @shirhatti Curious ... Does the .NET 5 on Nano doc also need to stay under-the-covers until RTM? https://github.com/aspnet/Docs/pull/894

guardrex avatar Jan 15 '16 08:01 guardrex

My only concern with waiting for RTM is that DNX RC1 ran on Nano Server, so this would be a temporary regression of behavior since an ASP.NET app compiled with dotnet cli would not be guaranteed to run on Nano Server.

@DamianEdwards, @danroth27, @davidfowl and @glennc should probably be aware of that :)

/cc @victorhurdugaci @muratg @Eilon

analogrelay avatar Jan 15 '16 18:01 analogrelay

We have customers running on Nano now so this would indeed be a regression for RC2. What is the hold up?

DamianEdwards avatar Jan 15 '16 18:01 DamianEdwards

It's mostly just that we have a new host now (corehost rather than dnx) and we need to to ensure that it runs on Nano server.

analogrelay avatar Jan 15 '16 18:01 analogrelay

This would require building the host against apisets so that it can work on Nano server. And since it will be linked against them, we need to have the right forwarder binaries in place.

The work is to ensure all of this works - especially on downlevel OS. It would have been awesome to see this issue earlier but it came our way just yesterday. We will see what can be done for RC2.

CC @Petermarcu

gkhanna79 avatar Jan 15 '16 23:01 gkhanna79

At the moment ASP.NET requires reverse forwarders to be installed on Nano.

moozzyk avatar Jan 15 '16 23:01 moozzyk

If reverse forwarders are installed, then the host should work (since R-Forwarders are going to resolve Kernel32->API-*). Has someone on ASP.NET or Nano server tried using the host?

gkhanna79 avatar Jan 15 '16 23:01 gkhanna79

Yes ... It's working with the Forwarders package. Which is what we have in the tutorial on this. I can rapidly respond to changes for the doc to match any changes teams make, and I can add a note at the head of the doc saying "works for RC1 only" if RC2 is a concern.

guardrex avatar Jan 15 '16 23:01 guardrex

... btw ... my test middleware app is RC2 current packages and runtime ... and it did work just this morning.

guardrex avatar Jan 15 '16 23:01 guardrex

... dotnet CLI changes ... no idea on that one ... which I think is what @anurse is referring to here.

guardrex avatar Jan 15 '16 23:01 guardrex

Requiring the reverse forwarders is probably just fine, so if we need to do that, that's fine.

@moozzyk, @victorhurdugaci You guys have done nano server work before. Do you still have a VM set up using nano? My VM host doesn't use Hyper-V (because Docker) so I can't easily set one up. We just need someone to try running a dotnet-published app on Nano Server and see if it works :)

analogrelay avatar Jan 15 '16 23:01 analogrelay

When we convert MusicStore it will test Nano server too. We have a Nano CI agent for it

victorhurdugaci avatar Jan 16 '16 00:01 victorhurdugaci

If reverse forwarders (and not APISet forwarders) are always going to be present on Nano server, then please try the test @anurse suggested above. It should just work without requiring any changes to the host. In that case, this issue is a no-op and can be closed (once confirmation comes through).

gkhanna79 avatar Jan 16 '16 01:01 gkhanna79

The requirement of having reverse loaders on Nano for ASP.NET 5 comes from http platform handler and libuv. I could imagine that in the future http plafrom handler will no longer require forwarders. Similarly libuv can be fixed (there are ~20 APIs that are not available in one core - most of which have *Ex counterparts that are present in onecore) - especially if http platform handler is fixed.

Also, not sure how much of a scenario it is but cli apps will likely won't work...

I would say leave this open to fix for post RTM.

moozzyk avatar Jan 16 '16 01:01 moozzyk

Also, not sure how much of a scenario it is but cli apps will likely won't work...

@moozzyk Curious why it will/might break for dotnet cli? ... just because if true, it blocks the release of the ".NET 5 on Nano Server" doc for quite a while.

guardrex avatar Jan 16 '16 01:01 guardrex

@moozzyk Nevermind. I'm off that doc now. Someone else is going to handle it.

guardrex avatar Jan 16 '16 04:01 guardrex

@GuardRex In general native apps not against onecore.lib don't work without reverse forwarders and reverse forwarders are not installed on Nano by default (as opposed to e.g. win10 Iot Core).

moozzyk avatar Jan 16 '16 04:01 moozzyk

@moozzyk thx

guardrex avatar Jan 16 '16 04:01 guardrex