Created
November 8, 2015 04:19
-
-
Save mwilliammyers/c1939f2ac06b887da923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Linux | |
KERNEL_VERSION="4.2.0-16" | |
XHYVE_ROOT="/usr/local/VM/xhyve" | |
KERNEL="${XHYVE_ROOT}/ubuntu/boot/vmlinuz-${KERNEL_VERSION}-generic" | |
INITRD="${XHYVE_ROOT}/ubuntu/boot/initrd.img-${KERNEL_VERSION}-generic" | |
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro" | |
MEM="-m 3G" | |
SMP="-c 2" | |
NET="-s 2:0,virtio-net" | |
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso" | |
IMG_HDD="-s 4,virtio-blk,${XHYVE_ROOT}/ubuntu/hdd.img" | |
PCI_DEV="-s 0:0,hostbridge -s 31,lpc" | |
LPC_DEV="-l com1,stdio" | |
# ACPI="-A" | |
UUID="-U 997D74FA-8337-11E5-B9E9-3878BE0520A2" | |
# 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