Skip to content

Instantly share code, notes, and snippets.

@stevenwilliamson
Created May 27, 2014 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenwilliamson/873ae6ed1bb3a0f75edf to your computer and use it in GitHub Desktop.
Save stevenwilliamson/873ae6ed1bb3a0f75edf to your computer and use it in GitHub Desktop.
#!/bin/bash
for vm in $(vmadm lookup type=KVM); do
socat -ly \
-L /zones/${vm}/root/tmp/vm_console_socat.lock \
-u /zones/${vm}/root/tmp/vm.console \
OPEN:/zones/${vm}/cores/vm.console_socat.log,creat,append &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment