Skip to content

Instantly share code, notes, and snippets.

@ailispaw
Created June 23, 2015 16:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ailispaw/b0395c7b1837c510b577 to your computer and use it in GitHub Desktop.
Save ailispaw/b0395c7b1837c510b577 to your computer and use it in GitHub Desktop.
RancherOS on xhyve
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
#!/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"
@ailispaw
Copy link
Author

You can see the IP address at the top entry of /var/db/dhcpd_leases after boot.

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