Skip to content

Instantly share code, notes, and snippets.

@bruienne
Last active October 4, 2018 09:40
Show Gist options
  • Save bruienne/d1053df883b47822c6e0 to your computer and use it in GitHub Desktop.
Save bruienne/d1053df883b47822c6e0 to your computer and use it in GitHub Desktop.
xhyve boot2docker sample config
#!/bin/sh
KERNEL="/path/to/vmlinuz64"
INITRD="/path/to/initrd.img"
#CMDLINE="earlyprintk=serial console=ttyS0 acpi=off"
CMDLINE="loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10:LABEL=boot2docker-data base"
MEM="-m 1G"
#SMP="-c 2"
NET="-s 2:0,virtio-net,en0"
IMG_CD="-s 3,ahci-cd,/path/to/boot2docker.iso"
#IMG_HDD="-s 4,virtio-blk,/somepath/somefile.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"
@bruienne
Copy link
Author

Updated to add briding of the 'en0' interface with virtio-net - use the appropriate interface for your host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment