[PATCH] s4/wintest: ESXi driver capability for wintest

Zahari Zahariev zahari.zahariev at postpath.com
Wed Jan 19 08:34:16 MST 2011


This change introduces few new ESXi specific config parameters.
This changes the way we build stop/reset/revert commands so there
is a new command place-holder dictionary expands the current
capabilities. Another change is that we do not collect VirtualBox
VM names when first shut down machines but the system names 'W2K8R2A_'.

Communication with the remote ESXi server is done via the SSH wrapper
'sshpass'. There is a little side effect with error code reporting but
generally it works when everything is configured right.
---
 wintest/conf/zahari-esxi.conf |   55 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 55 insertions(+), 0 deletions(-)
 create mode 100644 wintest/conf/zahari-esxi.conf

diff --git a/wintest/conf/zahari-esxi.conf b/wintest/conf/zahari-esxi.conf
new file mode 100644
index 0000000..83a6c5d
--- /dev/null
+++ b/wintest/conf/zahari-esxi.conf
@@ -0,0 +1,55 @@
+# config file for test-howto.py for zahari
+
+# where the git checkout is
+SOURCETREE            : /root/samba-master
+
+# where to install Samba to
+PREFIX                : /usr/local/samba
+
+# VMware ESX server 
+
+# debug level which will be put in smb.conf
+DEBUGLEVEL	      : 1
+
+# commands to control VMs
+VM_POWEROFF	          : su zahari -c "sshpass -p ${ESXPASS} ssh -o StrictHostKeyChecking=no root@${ESXHOST} vim-cmd vmsvc/power.off ${ESXID} 2>&1; sleep 5"
+VM_RESTORE            : su zahari -c "sshpass -p ${ESXPASS} ssh -o StrictHostKeyChecking=no root@${ESXHOST} vim-cmd vmsvc/snapshot.revert ${ESXID} ${ESXSNAPSHOT} 2>&1; sleep 5"
+VM_RESET              : su zahari -c "sshpass -p ${ESXPASS} ssh -o StrictHostKeyChecking=no root@${ESXHOST} vim-cmd vmsvc/power.reboot ${ESXID} 2>&1; sleep 5"
+
+# interfaces to listen on
+INTERFACE             : eth0
+
+# this is an additional IP that will be used for named to listen
+# on. It should not be the primary IP of the interface
+INTERFACE_IP	      : 10.191.10.90
+INTERFACE_NET	      : 10.191.10.90/16
+
+# how to run bind9
+BIND9	              : /usr/sbin/named
+NAMED_CHECKCONF       : /usr/sbin/named-checkconf
+RNDC	              : /usr/sbin/rndc
+BIND_USER	          : bind
+
+# provision information
+REALM                 : HOWTO.SAMBA90.TEST
+LCREALM               : howto.samba90.test
+DOMAIN                : howto-0
+BASEDN                : DC=howto,DC=samba90,DC=test
+PASSWORD1             : p at r0l@123!
+PASSWORD2             : p at r0l@1234!
+PASSWORD3             : p at r0l@12345!
+
+#
+# In case of ESXi environment XXX_VM parameter has no use 
+# but it must be present so wintest script can recognize
+# this configuration as a valid one (legasy VBox dependancy)
+#
+# this w2k8r2 VM will become a DC in the samba domain
+W2K8R2B_HOSTNAME      : WIN-SVD8RSRCPSS
+W2K8R2B_VM            : has-no-effect
+W2K8R2B_PASS          : P at ssw0rd
+W2K8R2B_ESXID         : 128
+W2K8R2B_ESXSNAPSHOT   : 0 1
+W2K8R2B_ESXHOST       : 10.191.35.30
+W2K8R2B_ESXPASS       : P at ssw0rd
+
-- 
1.7.1


--------------020205050609050803080004--


More information about the samba-technical mailing list