Last active
October 4, 2018 09:40
-
-
Save bruienne/d1053df883b47822c6e0 to your computer and use it in GitHub Desktop.
xhyve boot2docker sample config
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 | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to add briding of the 'en0' interface with virtio-net - use the appropriate interface for your host.