Created
June 23, 2015 16:57
-
-
Save ailispaw/b0395c7b1837c510b577 to your computer and use it in GitHub Desktop.
RancherOS on xhyve
This file contains hidden or 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
all: initrd vmlinuz | |
initrd vmlinuz: rancheros.iso | |
hdiutil mount rancheros.iso | |
cp /Volumes/RancherOS/boot/$@ . | |
hdiutil unmount /Volumes/RancherOS | |
rancheros.iso: | |
curl -OL https://github.com/rancherio/os/releases/download/v0.3.1/rancheros.iso | |
clean: | |
$(RM) initrd vmlinuz | |
$(RM) rancheros.iso | |
.PHONY: all clean |
This file contains hidden or 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="vmlinuz" | |
INITRD="initrd" | |
#CMDLINE="earlyprintk=serial console=ttyS0 acpi=off" | |
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off quiet rancher.password=rancher" | |
MEM="-m 1G" | |
#SMP="-c 2" | |
NET="-s 2:0,virtio-net" | |
#IMG_CD="-s 3,ahci-cd,rancheros-lite.iso" | |
#IMG_HDD="-s 4,virtio-blk,rancheros-lite-packer-disk1.raw" | |
PCI_DEV="-s 0:0,hostbridge -s 31,lpc" | |
LPC_DEV="-l com1,stdio" | |
UUID="-U a01fb25c-3a19-4759-a47a-2e353e51807d" | |
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
You can see the IP address at the top entry of /var/db/dhcpd_leases after boot.