I completed this assignment in Notion, but some of the large code snippets were too big to fit properly in the PDF. You can view the full code by visiting the provided link. I apologize for any inconvenience.

Link - CSE484_Assignment_05

All these following commands are tested on Ubuntu 22.04 LTS (Server) on Virtual-box.

Connecting With The Local Machine

Since the command to install SAIO is lengthy and couldn't be copied and pasted into the server terminal, I linked the server terminal to my local machine's terminal. Below is the step-by-step process to achieve this.u

  1. First open the config file of the virtual box. If you do not know the name of your virtual machine then run sudo virsh list to get the list.
sudo virsh edit virtual-machine-name

#for me the VM name was swift
sudo virsh edit swift
  1. Paste the following code on that config file. Use ctrl+w and write console to find the section.
<serial type='pty'>
  <source path='/dev/pts/0'/>
  <target type='isa-serial' port='0'>
    <model name='isa-serial'/>
  </target>
  <alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/0'>
  <source path='/dev/pts/0'/>
  <target type='serial' port='0'/>
  <alias name='serial0'/>
</console>

If anything is holding port 0 of the serial, replace it with the given code.

  1. Turn on the VM and paste the following command on its terminal.
sudo systemctl enable --now [email protected]

Untitled

  1. Next, return to your local host terminal and execute the following command to establish a connection with the VM's terminal.
sudo virsh console virtual-machine-name

#for me
sudo virsh console swift
  1. Now you will be able to access the terminal of your VM from your local machine.

Untitled

Installing Swift

Paste the following code into your terminal line by line. Alternatively, you can create a shell script to automate the process, although I had difficulty getting this to work properly.