News for hackers. Stuff that matters.
Re:Microsoft announces Hyper-V Containers by ochoseis on Wednesday April 08, 2015 @02:45PM (#9342890)
Since this is all remote powershell, it would be nice if MS/Windows introduced a native SSH server. That would probably help drive some conversion for people used to the posix world.
Re:Microsoft announces Hyper-V Containers by quotemstr on Wednesday April 08, 2015 @06:33PM (#9344563)
In order to make a native SSH server, Windows need pseudoconsoles (analogous to pseudoterminals in POSIXland). That is, it must be possible for a random program to create a handle that supports operations like SetConsoleCursorPosition without having to call AllocConsole. Calling AllocConsole is a problem because there's no way to monitor what programs are doing with that console except scraping it. (The accessibility hooks are insufficient because if you try to access the console from inside them, you deadlock, and if you queue an access request for later, you race.)

Since consoles are real kernel objects since Windows 8 and talk to conhost over IPC anyway, this feature is eminently doable. It's been my top feature requests for years. Nobody's gotten around to it.

Pseudoconsoles would be a bit more complicated than POSIX pseudoterminals because Windows consoles have more features, but the basic concept would transplant beautifully. It'd also make Cygwin a lot better.

I miss working on operating systems.

Re:Microsoft announces Hyper-V Containers by olavgg on Wednesday April 08, 2015 @03:01PM (#9343012)
This!!!! One of the biggest things I really miss in Windows-land is SSH. Just today I had to create a SSH tunnel for SQL Server. While it's not a big issue with third party tools, it should just be built and ready for use as with every Linux distro, FreeBSD, Solaris and OSX.
Re:Microsoft announces Hyper-V Containers by dordoka on Wednesday April 08, 2015 @03:10PM (#9343098)
While they are at it, they could create a posix compatible layer for Windows. That would really drive some conversion.

edit: after rereading my comment and seeing the downvotes, just to clarify, it was a serious, not negative suggestion. :)

Re:Microsoft announces Hyper-V Containers by tkmcc on Wednesday April 08, 2015 @04:45PM (#9343840)
There used to be Windows Services for UNIX (a.k.a. Subsystem for UNIX-based Applications):

http://en.wikipedia.org/wiki/Windows_Services_for_UNIX

https://technet.microsoft.com/en-us/library/cc771470.aspx

Re:Microsoft announces Hyper-V Containers by mushiake on Wednesday April 08, 2015 @05:02PM (#9343961)
They ditched in Windows Server 2012.

Now recommend cygwin.

"The Subsystem for UNIX-based Applications (SUA) is deprecated. If you use the SUA POSIX subsystem with this release, use Hyper-V to virtualize the server. If you use the tools provided by SUA, switch to Cygwin's POSIX emulation, or use either mingw-w64 (available from Sourceforge.net) or MinGW (available from MinGW.org) for doing a native port. " https://technet.microsoft.com/en-us/library/hh831568.aspx

Re:Microsoft announces Hyper-V Containers by DiabloD3 on Wednesday April 08, 2015 @06:45PM (#9344626)
msys2 is a lot better than mingw+msys and cygwin, in my opinion. I switched months ago and its been a lot easier to deal with.
Re:Microsoft announces Hyper-V Containers by emodendroket on Wednesday April 08, 2015 @03:24PM (#9343206)
They've done that before and, as far as I know, it was not an extremely popular product.
Re:Microsoft announces Hyper-V Containers by stormbrew on Wednesday April 08, 2015 @03:58PM (#9343477)
It was not an extremely functional product. It was largely there to get government contracts where one of the requirements was POSIX conformance, even if they weren't using it.
Re:Microsoft announces Hyper-V Containers by emodendroket on Wednesday April 08, 2015 @04:16PM (#9343609)
Imagining they had first-class support for it (a major undertaking, I'd guess, but anyway) how many people would use it? I'd guess it'd be about the same people who use Cygwin now.
Re:Microsoft announces Hyper-V Containers by stormbrew on Thursday April 09, 2015 @02:08PM (#9349674)
Why would you guess that? Because cygwin is nothing close to first class support. It has a lot of friction associated with its use. You're better off just running linux in a vm if you want posix on windows, and trust me plenty of people do that these days.
Re:Microsoft announces Hyper-V Containers by rbanffy on Wednesday April 08, 2015 @11:12PM (#9345638)
Anyone porting applications from Linux would be able to use it to reduce the effort.
Re:Microsoft announces Hyper-V Containers by emodendroket on Thursday April 09, 2015 @09:29AM (#9347315)
Yes, but I think Microsoft's ultimate concern is how many people will want to use such applications. How many will? Think about how few people run, say, PHP applications under Windows. Even though it's possible. (Well, actually, often it won't work right because PHP developers don't bother to test with anything besides Linux)
Re:Microsoft announces Hyper-V Containers by jamra on Thursday April 09, 2015 @01:03AM (#9345868)
I think with Azure, you can log into your Azure instance and then send commands. I recently tried to set up automated deployments for our non-Azure infrastructure and investigated bringing things to Azure.

It's not the same as SSH, but then again powershell is not the same as linux shells.