r/sysadmin • • Apr 04 '14

OneGet - Apt-Get for Windows, coming with PowerShell 5.0

http://blogs.technet.com/b/windowsserver/archive/2014/04/03/windows-management-framework-v5-preview.aspx
231 Upvotes

118 comments sorted by

View all comments

Show parent comment

11

u/djbon2112 DevOps Apr 04 '14

I've been on the receiving end of quite a few kernel panics. They happen. Usually caused by shitty hardware and kernel modules.

14

u/[deleted] Apr 04 '14

The vast majority of blue screens I've experienced since the XP/2003 era have also been hardware or driver related.

8

u/[deleted] Apr 04 '14

Yep I've experienced my fair share too. Fucking tape drives.

3

u/withabeard Apr 04 '14

I know blue screens aren't particularly readable. But at least it's something.

Once you've gone kernel panic you've got no idea what died... would be nice to get a log somewhere.

It's not like it's a problem that hasn't been solved elsewhere either.

8

u/Freeky Apr 04 '14

Er? What could be more descriptive than this? Gives you the process executing the crashing syscall and gives you a backtrace through the exact functions you can look up the code for. Certainly hell of a lot better than any BSOD I've seen.

That is unless Linux replaced it with a ":(" while I wasn't looking.

5

u/Mikecom32 Apr 04 '14

Windows has this in the form of minidumps (or full memory dumps if you so choose).

They're stored in %windir%\minidump and can be analyzed with the Windows debugging tools

1

u/Freeky Apr 04 '14

Every Unix does core dumps, most do minidumps, many have in-kernel debuggers you get dropped to directly from a panic, some are even scriptable.

1

u/Mikecom32 Apr 05 '14

I never said it didn't, I was just pointing out there's more to a Windows crash than a BSOD.

1

u/Freeky Apr 05 '14

And I'm saying the same about kernel panics :)

Would be nice if Windows had a proper verbose mode which made BSODs (and bootup) more detailed.

1

u/Mikecom32 Apr 05 '14

I agree! Looking at what they're doing with powershell, I have hope for the future.

3

u/withabeard Apr 04 '14

Yeah, last kernel panic I had, when I got a serial line connected to the box I had nothing but regular dmesg crap and then "Kernel Panic" on one line all alone.

No idea what to do next.

2

u/Freeky Apr 04 '14

Sounds like interrupts were disabled and for some reason the serial port driver didn't switch to polling.

This rather old page suggests you need the Early printk option in the kernel config enabled for it to do so.

1

u/withabeard Apr 04 '14

Ah awesome, it's a pretty archaic system. But annoying non-the-less when it does foobar itself and you've no idea why.

It's only done it once in the three years I've been here though.

5

u/fixed Loonix Admin Apr 04 '14

I had a FreeBSD box kernel panic on me... once. I had the case open and a coathanger fell onto the motherboard.

9

u/[deleted] Apr 04 '14

There are safer ways to abort your FreeBSD, depending on where you live, these days.