Skip to content

Instantly share code, notes, and snippets.

@wiredfool
Created December 12, 2018 18:10
Show Gist options
  • Save wiredfool/0e1aa099a29f562cdc3ba30c36717995 to your computer and use it in GitHub Desktop.
Save wiredfool/0e1aa099a29f562cdc3ba30c36717995 to your computer and use it in GitHub Desktop.
xhyve startup script
#!/bin/sh
KERNEL="vmlinuz-4.4.0-112-generic"
INITRD="initrd.img-4.4.0-112-generic"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro"
MEM="-m 1G"
SMP="-c 2"
NET="-s 2:0,virtio-net"
IMG_HDD="-s 4,virtio-blk,hd.raw"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
UUID="-U 64DAA3B0-B568-4041-8D34-E0761DD2D60E"
sudo ~/src/xhyve/build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_HDD $DS_HDD $UUID -f kexec,$KERNEL,$INITRD,"$CMDLINE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment