Skip to content

Instantly share code, notes, and snippets.

@julien-f
Created August 1, 2020 07:19
Show Gist options
  • Save julien-f/a6f98de3bd5a775f3f04b2fa14a9a102 to your computer and use it in GitHub Desktop.
Save julien-f/a6f98de3bd5a775f3f04b2fa14a9a102 to your computer and use it in GitHub Desktop.
xenstore-read work-around for VMWare
#!/bin/sh
case "${1:-}" in
vm)
uuid=$(cat /sys/devices/virtual/dmi/id/product_uuid)
echo "/vm/$uuid"
;;
*)
echo 'xenstore-read error: ENOENT' >&2
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment