add monitor socket
This commit is contained in:
parent
b44639dfe0
commit
d0dd75b016
2 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
openssh-client \
|
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
|
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
|
chmod +x ct
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ VM_MEMORY="${VM_MEMORY:-4G}"
|
||||||
HOSTFWD="${HOSTFWD:-hostfwd=tcp::2222-:22}"
|
HOSTFWD="${HOSTFWD:-hostfwd=tcp::2222-:22}"
|
||||||
DISK_IMG="${DISK_IMG:-./coreos_production_qemu_image.img}"
|
DISK_IMG="${DISK_IMG:-./coreos_production_qemu_image.img}"
|
||||||
CD_ARG=""
|
CD_ARG=""
|
||||||
|
MONITOR_OUTPUT="${MONITOR_OUTPUT:-unix:/tmp/kvm-mon}"
|
||||||
|
|
||||||
if [ -n "${CLOUD_CONFIG_FILE}" ]; then
|
if [ -n "${CLOUD_CONFIG_FILE}" ]; then
|
||||||
echo "Setting cloud config file: ${CLOUD_CONFIG_FILE}"
|
echo "Setting cloud config file: ${CLOUD_CONFIG_FILE}"
|
||||||
|
|
@ -51,4 +52,5 @@ qemu-system-x86_64 \
|
||||||
-machine accel=kvm \
|
-machine accel=kvm \
|
||||||
-vga std \
|
-vga std \
|
||||||
-smp 2 \
|
-smp 2 \
|
||||||
|
-monitor "${MONITOR_OUTPUT}" \
|
||||||
$@
|
$@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue