mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-02 00:58:29 +00:00
Add hyperkit build
Useful for local performance tests Fix #443 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
24
hyperkit.sh
Executable file
24
hyperkit.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
KERNEL="alpine/kernel/x86_64/vmlinuz64"
|
||||
INITRD="alpine/initrd.img"
|
||||
CMDLINE="earlyprintk=serial console=ttyS0"
|
||||
|
||||
[ -f disk.img ] || dd if=/dev/zero of=disk.img bs=1m count=100
|
||||
|
||||
MEM="-m 1G"
|
||||
SMP="-c 1"
|
||||
NET=""
|
||||
if (( $EUID != 0 )); then
|
||||
printf "Need to run as root to get networking!\n\n"
|
||||
exit 1
|
||||
fi
|
||||
NET="-s 2:0,virtio-net"
|
||||
IMG_HDD="-s 4,virtio-blk,disk.img"
|
||||
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
|
||||
RND="-s 5,virtio-rnd"
|
||||
LPC_DEV="-l com1,stdio"
|
||||
|
||||
hyperkit.git/build/com.docker.hyperkit -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_HDD $RND -u -f kexec,$KERNEL,$INITRD,"$CMDLINE"
|
||||
Reference in New Issue
Block a user