#!/bin/bash
#
# SLES4SAP 12 SP1
# 
system="$1"  # like se02group2
installSrv="192.168.201.40"
export PATH="$PATH:/hana_inst/workshop/automateVMs/bin"
#
# start system
#
virsh start $system; sleep 2 ; 
#
# jump over the F12 Boot menu message
#
virsh send-key $system --codeset linux KEY_ENTER; sleep 5; 
#
# select "Installallatio"
#
virsh send-key $system --codeset linux KEY_DOWN;  sleep 1;
#
# send the boot command line to install
#
perl tool_string_to_virsh_sendkey --domain $system \
  -string="autoyast=nfs://$installSrv/hana_inst/ay/$system-ay.xml netdevice=eth0 netsetup=dhcp instmode=cd"; sleep 1; 
#
# commit the line
#
virsh send-key $system --codeset linux KEY_ENTER;
