Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need script urgent for my following assignment Install a new Centos 7 VM into your existing c7host, using any of the installation methods covered

I need script urgent for my following assignment Install a new Centos 7 VM into your existing c7host, using any of the installation methods covered in this course. Ensure the machine has the gnome-desktop. Set the hostname of this machine to be assign.machine. Provide this VM with 15GiB of storage. While the default partition setup will be mostly sufficient, make sure your new VM has a separate 1700 MiB ext4 volume mounted at /media. Note: You can free up space to be able to do this, by shrinking the / volume to 10 GiB. Make sure the kiconedit package is present on your machine. Make sure the orca package is not present on your machine. Create new users called andrea clark, amine aliyev, and mia wong. Their login names should be andrea.clark, amine.aliyev, and m.wong respectively. Create a group called sen_programmers with GID 2430. Add andrea clark and mia wong to it as a supplementary group. Set the account for mia wong so that they can use the sudo command to execute the ip command (and no others). Do not use the main sudoers file for this. Modify the machine so that it will boot to the command-line automatically . Write a python script called vmarchiver.py that will create a complete backup of a single VM the user specifies. The specific details of how it works are below: When this script is run, it will present the user with list of the names of all VMs on the current machine (Note: The --name option for the virsh list command will prove helpful for this), and ask the user to enter then name of the VM they would like to archive. If the answer the user provides does not match the name of one of the VMs present on the current machine, the script will display a message to that effect, and prompt the user to enter the name of the VM they would like to archive. It will keep doing this until the user enters a valid name. Once the user enters the name of a VM, the script will create a tar archive that contains that VM's xml and qcow2 files, compressed using gzip. Note, you must obtain the location of the qcow2 image file from the xml file. Do not just assume it is in /var/lib/libvirt/images, or that it is named after the VM. The archive that is created should be named after the VM and the current date (e.g. vm1-20220131), and should use an extension appropriate to the compression typ

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Project Management

Authors: Jack Gido, Jim Clements

4th Edition

9780324656152, 324656130, 978-0324656138

More Books

Students also viewed these General Management questions

Question

What is a hybrid cloud architecture?

Answered: 1 week ago