diff --git a/scripts/build b/scripts/build index 2b2dd1e..240d732 100755 --- a/scripts/build +++ b/scripts/build @@ -6,7 +6,8 @@ apt-get update apt-get install -y \ curl \ openssh-client \ - qemu-kvm + qemu-kvm \ + socat curl -L https://github.com/coreos/container-linux-config-transpiler/releases/download/v0.3.0/ct-v0.3.0-x86_64-unknown-linux-gnu -o ct chmod +x ct diff --git a/scripts/start b/scripts/start index 3124418..b610b8d 100755 --- a/scripts/start +++ b/scripts/start @@ -7,6 +7,7 @@ VM_MEMORY="${VM_MEMORY:-4G}" HOSTFWD="${HOSTFWD:-hostfwd=tcp::2222-:22}" DISK_IMG="${DISK_IMG:-./coreos_production_qemu_image.img}" CD_ARG="" +MONITOR_OUTPUT="${MONITOR_OUTPUT:-unix:/tmp/kvm-mon}" if [ -n "${CLOUD_CONFIG_FILE}" ]; then echo "Setting cloud config file: ${CLOUD_CONFIG_FILE}" @@ -51,4 +52,5 @@ qemu-system-x86_64 \ -machine accel=kvm \ -vga std \ -smp 2 \ + -monitor "${MONITOR_OUTPUT}" \ $@