#!/bin/sh

KERNEL="../alpine/kernel/vmlinuz64"
INITRD="../alpine/initrd.img.gz"
CMDLINE="earlyprintk=serial console=ttyS0"

MEM="-m 1G"
#SMP="-c 2"
NET=""
if (( $EUID != 0 )); then
    printf "Warning: not running as root will have no networking!\n\n"
    sleep 1
else
NET="-s 2:0,virtio-net"
fi
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
IMG_HDD="-s 4,virtio-blk,disk.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
RND="-s 5,virtio-rnd"
LPC_DEV="-l com1,stdio"
ACPI="-A"
CLOCK="-u"
#UUID="-U deadbeef-dead-dead-dead-deaddeafbeef"

build/xhyve $ACPI $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $RND $UUID $CLOCK -f kexec,$KERNEL,$INITRD,"$CMDLINE"

#!/bin/sh

KERNEL="../alpine/kernel/x86_64/vmlinuz64"
INITRD="../alpine/initrd.img.gz"
CMDLINE="earlyprintk=serial console=ttyS0"

MEM="-m 1G"
#SMP="-c 2"
NET=""
if (( $EUID != 0 )); then
    printf "Warning: not running as root will have no networking!\n\n"
    sleep 1
else
NET="-s 2:0,virtio-net"
fi
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
IMG_HDD="-s 4,virtio-blk,disk.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
RND="-s 5,virtio-rnd"
LPC_DEV="-l com1,stdio"
ACPI="-A"
CLOCK="-u"
#UUID="-U deadbeef-dead-dead-dead-deaddeafbeef"

build/xhyve $ACPI $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $RND $UUID $CLOCK -f kexec,$KERNEL,$INITRD,"$CMDLINE"

Fix make xhyve after kernel image moved
Fix make xhyve after kernel image moved

Signed-off-by: Justin Cormack <af64ee19f04db9509cb02b0e470e11e5402ef9b3@docker.com>
