HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
kaniini
slabbed-or-not
C2014–2014
kaniini / slabbed-or-not

slabbed-or-not

Detect if your container is running under a hypervisor

3Distinct people
3Mentions
0Explicit recommenders
199GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Detect if your container is running under a hypervisor

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2014-01-30 02:27:22 UTC to 2014-01-30 04:58:56 UTC.

0122014-01-30 02:00:00 UTC to 2014-01-30 03:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJan 30, 02:002014-01-30 03:00:00 UTC to 2014-01-30 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJan 30, 03:002014-01-30 04:00:00 UTC to 2014-01-30 05:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJan 30, 04:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 30, 02:002014-01-30 02:00:00 UTC2014-01-30 03:00:00 UTC110
Jan 30, 03:002014-01-30 03:00:00 UTC2014-01-30 04:00:00 UTC000
Jan 30, 04:002014-01-30 04:00:00 UTC2014-01-30 05:00:00 UTC202

What Hacker News says

3 sources
Out of curiosity how would you reimplement this file in bash? https://github.com/kaniini/slabbed-or-not/blob/master/xen-de... In particular, the fact that it's using inline asm directly (for cpuid, ud2, some others). Maybe with 'as' but that's not exactly pure bash (and I suspect not embedding it in C would need a non-trivial main function anyway). Reading an arbitrary memory address (for the cpuid scans) might be a bit tricky too, though it could be doable with /proc/$PID/mem.
In Slabbed-or-not: Detect if your VPS container is running under a hypervisor
I was running out the door when I made the post, and wound up screenshotting the wrong tab by mistake. The correct tab had a big error message like "We're sorry, we didn't generate this code blob fast enough for you" with no raw link. Sorry about that. On the very slim chance that a Github staffer is reading this, here's the link that was down for ~30 minutes: https://github.com/kaniini/slabbed-or-not/blob/master/slabbe... ... It was down at around 8pm PST.
In Slabbed-or-not: Detect if your VPS container is running under a hypervisor

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.