Skip to content

Instantly share code, notes, and snippets.

@OriPekelman
Created March 22, 2017 13:35
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 OriPekelman/a77760ea59e59c2481ea46b39dfd0a5b to your computer and use it in GitHub Desktop.
Save OriPekelman/a77760ea59e59c2481ea46b39dfd0a5b to your computer and use it in GitHub Desktop.
#!/bin/sh
KERNEL="/Users/oripekelman/Sites/xhyve-platform/tmp/cd/install.386/vmlinuz"
INITRD="initrd.img"
CMDLINE="modules=sd-mod,ext4,console quiet console=ttyS0 acpi=on"
MEM="-m 1G"
NET="-s 2:0,virtio-net"
IMG_HDD="-s 4,virtio-blk,hdd.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
ACPI="-A"
# Linux
xhyve $ACPI $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_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