Skip to content

Instantly share code, notes, and snippets.

@jbarnette
Last active January 24, 2024 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbarnette/a4bf5e9c3622c5c0016ea835f9547365 to your computer and use it in GitHub Desktop.
Save jbarnette/a4bf5e9c3622c5c0016ea835f9547365 to your computer and use it in GitHub Desktop.
hype http block example (amd64)
$ go install github.com/c35s/hype@latest
# it'll take a few seconds to show the shell
$ hype -kernel https://cdn.c35s.co/bzImage-amd64 \
-block https://cdn.c35s.co/ubuntu-amd64.squashfs \
-cmdline "console=hvc0 reboot=t root=/dev/vda init=/bin/sh"
[ 0.208154] loop: module loaded
[ 0.223990] virtio_blk virtio1: 1/0/0 default/read/poll queues
[ 0.264201] blk-mq: reduced tag depth to 10240
[ 0.383963] virtio_blk virtio1: [vda] 58128 512-byte logical blocks (29.8 MB/28.4 MiB)
[ 0.470978] rtc_cmos rtc_cmos: only 24-hr supported
[ 0.471364] fail to initialize ptp_kvm
[ 0.471464] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[ 0.472101] intel_pstate: CPU model not supported
[ 0.472849] Initializing XFRM netlink socket
[ 0.473229] NET: Registered PF_INET6 protocol family
[ 0.474100] Segment Routing with IPv6
[ 0.474451] In-situ OAM (IOAM) with IPv6
[ 0.474841] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.475568] NET: Registered PF_PACKET protocol family
[ 0.475985] 9pnet: Installing 9P2000 support
[ 0.491865] Key type dns_resolver registered
[ 0.507905] NET: Registered PF_VSOCK protocol family
[ 0.508098] microcode: Microcode Update Driver: v2.2.
[ 0.508101] IPI shorthand broadcast: enabled
[ 0.509210] sched_clock: Marking stable (509020095, 160217)->(522280827, -13100515)
[ 0.509365] registered taskstats version 1
[ 0.509462] Loading compiled-in X.509 certificates
[ 0.510749] md: Waiting for all devices to be available before autodetect
[ 0.510876] md: If you don't use raid, use raid=noautodetect
[ 0.510980] md: Autodetecting RAID arrays.
[ 0.511087] md: autorun ...
[ 0.511134] md: ... autorun DONE.
[ 1.136383] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x39c5250ff2d, max_idle_ns: 440795310846 ns
[ 1.136539] clocksource: Switched to clocksource tsc
[ 1.436303] VFS: Mounted root (squashfs filesystem) readonly on device 253:0.
[ 1.437752] Freeing unused kernel image (initmem) memory: 1720K
[ 1.438145] Write protecting the kernel read-only data: 16384k
[ 1.439282] Freeing unused kernel image (rodata/data gap) memory: 696K
[ 1.470599] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.470741] x86/mm: Checking user space page tables
[ 1.503868] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.504016] Run /bin/sh as init process
/bin/sh: 0: can't access tty; job control turned off
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment