Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OPS 2 4 5 ( Open System Server ) Assignment: Below are the steps to the assignment, I have already completed the installation / configuration

OPS 245(Open System Server)
Assignment:
Below are the steps to the assignment, I have already completed the installation/configuration process, and will just need 2 scripts.
- OS: Debian12
- Please Include descriptions in the script
- Please try to make the script as "simple" as possible, meaning the commands used, as this is an entry course.
- Please do not use chatgpt.
If you are unsure regardining a certian directory that is fine, please label where it is needed/missing, thanks
Assignment Description:
Install a new Debian VM into your existing debhost, using any of the installation methods covered in this course.
Ensure the machine has the XFCE Desktop Environment.
Set the hostname of this machine to be assign1
Provide this VM with 15GiB of storage.
Choose "Manual partitioning" and create the following on /dev/vda
600M ext4 primary partition mounted on /boot
12G primary partition physical volume for LVM
A volume group call vg_assign
9G logical volume called lv_root formatted as ext4 mounted on /
1G logical volume called lv_home foramtted as ext4 mounted on /home
1200 MB logical volume called lv_assign formatted as ext4 mounted on /venus
1G primary partition as a swap area
Make sure the gedit package is present on your machine.
Make sure the xsane package is not present on your machine.
Create new users called anne clarker, ali abbasov, and olivia wong. Their login names should be anne-clarker, ali-abbasov, and o-wong respectively.
Create a group called subordinates with GID 2193. Add anne clarker and olivia wong to it as a supplementary group.
Set the account for ali abbasov so that they can use the sudo command to execute the vi 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 bash script(on debhost) called vmarchiver.bash 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 xzip. 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 type.
Your script should put backups in ~/backups and test for the use of sudo

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_2

Step: 3

blur-text-image_3

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions