add monitor socket

This commit is contained in:
Barak Michener 2018-02-25 21:01:14 -08:00
parent b44639dfe0
commit d0dd75b016
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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}" \
$@