Answered step by step
Verified Expert Solution
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 Open System Server
Assignment:
Below are the steps to the assignment, I have already completed the installationconfiguration process, and will just need scripts.
OS: Debian
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 neededmissing 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 assign
Provide this VM with GiB of storage.
Choose "Manual partitioning" and create the following on devvda
M ext primary partition mounted on boot
G primary partition physical volume for LVM
A volume group call vgassign
G logical volume called lvroot formatted as ext mounted on
G logical volume called lvhome foramtted as ext mounted on home
MB logical volume called lvassign formatted as ext mounted on venus
G 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 anneclarker, aliabbasov, and owong respectively.
Create a group called subordinates with GID 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 commandline automatically.
Write a bash scripton 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 VMs xml and qcow files, compressed using xzip. Note, you must obtain the location of the qcow image file from the xml file. Do not just assume it is in varliblibvirtimages or that it is named after the VM
The archive that is created should be named after the VM and the current date eg vm 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started