Commit 92118e5e authored by Steffen Gebert's avatar Steffen Gebert
Browse files

VM seems not to switch off

parent 44cccd40
......@@ -94,9 +94,16 @@ virt-install \
--extra-args "auto=true netcfg/get_hostname=$HOST_NAME netcfg/hostname=$HOST_NAME passwd/root-password=$PASSWORD passwd/root-password-again=$PASSWORD netcfg/get_ipaddress=$NET_IPV4_ADDRESS netcfg/get_netmask=$NET_IPV4_NETMASK netcfg/get_gateway=$NET_IPV4_GATEWAY console=ttyS0,115200n8 serial"
echo "Finished with virt-install."
read -p "Did the installation finish and the VM shut down? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
fi
echo "Doing some aftermath..."
# shutdown
virsh shutdown $SERVER_NAME
virsh destroy $SERVER_NAME
wait_for_shutdown $SERVER_NAME
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment