Skip to content

Instantly share code, notes, and snippets.

@mwilliammyers
Created November 8, 2015 04:19
Show Gist options
  • Save mwilliammyers/b5f54fb68385d786147c to your computer and use it in GitHub Desktop.
Save mwilliammyers/b5f54fb68385d786147c to your computer and use it in GitHub Desktop.
#!/bin/sh
KERNEL="ubuntu/vmlinuz"
INITRD="ubuntu/initrd.gz"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off"
MEM="-m 1G"
#SMP="-c 2"
NET="-s 2:0,virtio-net"
IMG_CD="-s 3,ahci-cd,ubuntu/ubuntu-15.04-server-amd64.iso"
IMG_HDD="-s 4,virtio-blk,ubuntu/hdd.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
UUID="-U 997D74FA-8337-11E5-B9E9-3878BE0520A2"
xhyve $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