IT 3110: Systems Automation
Shell Scripting 2
This assignment will hone your skills as a Bash shell programmer.
Create the following script:
A script called
deploy_vm.sh. This script will be run on your DHCP server machine. You should be able to provide a name and ip of your vm to this script and the script will automatically insert appropriate fixed dhcp entries. Example usage:
./deploy_vm.sh logger 126.96.36.199
./deploy_vm.shis the name of my script
loggeris the name of the vm that I am creating
188.8.131.52is the fixed ip address of the new vm.
Your script would at some point need to ssh to
vm.cs.dixie.edu and create a new vm using the
citv clonevm command.
Then you should be able to parse the mac address from the
citv showvm commandto use in your dhcp file. You need to add a fixed entry for this new vm.
THen your script should boot the vm
citv bootvm ???? c
Take a print screen of your scripts running. Also upload your scripts.
- Submit to Canvas
Last Updated 02/10/2021