From 2efba7cca5ae49c5b90e09f61bab0db8902dce7d Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Mon, 20 Jul 2015 22:21:59 +0500 Subject: [PATCH] WIP: supply cloud-config via openstack config-2 CD --- scripts/run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/run b/scripts/run index d7dad23a..d3172745 100755 --- a/scripts/run +++ b/scripts/run @@ -90,12 +90,19 @@ KERNEL_ARGS="rancher.password=rancher console=ttyS0 ${QEMU_APPEND}" if [ "$UNAME" == "Darwin" ] && [ -x $(which xhyve) ]; then + CLOUD_CONFIG_ISO="$(pwd)/cloud-config.iso" + rm -rf ${CLOUD_CONFIG_ISO} + + # PREREQ: brew install cdrtools + mkisofs -R -V config-2 -o "${CLOUD_CONFIG_ISO}" "$(pwd)/cloud-init" + echo PWD=`pwd` exec sudo xhyve -H -P \ -m 4G \ -s 0:0,hostbridge -s 31,lpc \ -l com1,stdio \ -s 2:0,virtio-net \ + -s 3,ahci-cd,${CLOUD_CONFIG_ISO} \ -U a01fb25c-3a19-4759-a47a-2e353e51807d \ -f kexec,${KERNEL},${INITRD_TEST},"earlyprintk=serial acpi=off elevator=noop ${KERNEL_ARGS}"