From d04590e74daf1879ff49fc4e9c77484a3996985e Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 21 Nov 2014 18:29:50 +0100 Subject: [PATCH] gh-5: Get information from vmware tools if context cd is not found Used with vcenter driver --- base/etc/init.d/vmcontext | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/etc/init.d/vmcontext b/base/etc/init.d/vmcontext index 1e020a6..63ef1d5 100755 --- a/base/etc/init.d/vmcontext +++ b/base/etc/init.d/vmcontext @@ -62,6 +62,11 @@ case "$1" in umount /mnt else + if type vmtoolsd ; then + vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | openssl base64 -d > /tmp/context.sh + export_rc_vars /tmp/context.sh + fi + execute_scripts fi ;;