Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am taking a Linux class right now, and my teacher has requested me to write a bash script. I have been given IP address of the server to create virtual machine on the server. I need someone to help me with this project by getting me started on this project. I have no clue right now how to start this project. Any help will be appreciated. Here is the requirement:
Write a bash script to create a virtual machine running Scientific Linux 6.3, x86_64 architecture. The
image should include the
telnet client
package, the
ftp
package, and the
httpd
package. The virtual
image should use 1GB of RAM, one virtual CPU, use a 4GB qcow2 disk image, connect to the
“virtual_bridge” network bridge using a random MAC address and DHCP boot protocol. The image
name should be <user name>. The image should run on an IBM blade server with a Scientific
Linux host operating system and KVM hypervisor.
You instructor will provide connection credentials in class.
The script must contain:
•
a title block
•
conditional debugging output
•
variables
•
ample comments
•
use of positional parameters to enable debugging and the image
Last edited by juniorb0y007; 03-30-2013 at 03:26 PM.
so what have you done already? Admitting it's homework doesn't somehow mean it's NOT homework... you need to ask us *SPECIFIC* questions and we can help you in those situations. We aren't here to do your work for you.
so what have you done already? Admitting it's homework doesn't somehow mean it's NOT homework... you need to ask us *SPECIFIC* questions and we can help you in those situations. We aren't here to do your work for you.
acid,
I agree with you. I am learning about bash script syntax right now. Also, I created my first simple bash script which executed correctly. I just started on this project today, and I will ask specific questions when needed. I was just asking for links and material from you guys that could help me complete this project. Thanks.
The first thing you should do when writing a script is to break it down into all the simple commands that you have to run to accomplish what you want.
Test the commands separately on the command line until you're sure you have their syntax and order of execution correct.
Then you can start to generalize the procedure, replacing fixed strings with variables and embedding them in loops for multiple runs.
That's it really. All a script is in the end is an automated sequential command list, with the syntax of the shell being used to generate the arguments you need for them.
Feel free to ask if you have problems with any of the individual steps.
And if you haven't seen the Bash Guide yet, IMO it gives perhaps the best generalized rundown of all of bash's major features.
Last edited by David the H.; 03-31-2013 at 11:25 AM.
Reason: fixed link
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.