#1 Assignment Lab Guide
This guide will help you with:
Login and change password
Import VM from NAS
Set up VM
Back up VM to NAS
Logout
Important
When copy any code, don't copy the following mentioned symbols at the beginning of each line.
"$" precedes Linux commands that are typed at a regular user's shell prompt, usually your host machine
"#" precedes Linux commands that are typed at a root shell prompt, usually in a VM
Machines in the lab cannot connect to Internet but you are able to do yum install basic software with local yum repositories.
All assignments should be done in the lab.
Please back up everything you need for later use to NAS. If you don't, it's possible that your data or VMs get destroyed.
Login and change password
Start computer and login with username and initial password given at first class. You can login to any machine in the lab.
Once login, please open a terminal and change your password at first

[username@clemson11 ~]$ passwd
Changing password for user username.
Current Password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[username@clemson11 ~]$
Import VM from NAS
A network attached storage (NAS) is used to store all iso images, scripts, as well as your backups.
[username@clemson11 ~]$ sftp username@192.168.10.5:VMs/Assign1_VM.ova .
username@192.168.10.5's password:
Connected to 192.168.10.5.
Fetching /VMs/Assign1_VM.ova to ./Assign1_VM.ova
/VMs/Assign1_VM.ova 100% 2352MB 72.0MB/s 00:32
sftp> exit
[username@clemson11 ~]$ vboxmanage import Assign1_VM.ova
For students in Charleston, use "sftp username@192.168.20.5".
Set up VM
Open Oracle VM VirtualBox

Click on Settings, make sure it attached to "Bridged Adapter", and click at the exchange button to generates a new random MAC address (next to MAC Address).

Start VM, login with username: root, password: root. Type "startx" to GUI.

Then change the password.
[root@localhost ~]# passwd
Changing password for user root.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
Change IP address to the one given on first day of class. This step doesn't finish until you turn off network and then turn on.



For Charleston students, Address: 192.168.20.xxx, Gateway: 192.168.20.1
Back up VM to NAS
[username@clemson10 ~]$ sftp username@192.168.10.5
username@192.168.10.5's password:
Connected to 192.168.10.5.
sftp> ls
VMs home
sftp> cd home/
sftp> put -r VirtualBox\ VMs/Assign1_VM/
Uploading VirtualBox VMs/Assign1_VM/ to /home/Assign1_VM
Entering VirtualBox VMs/Assign1_VM/
For students in Charleston, use "sftp username@192.168.20.5".
To delete a file:
sftp> cd home/
sftp> ls
Assign1_VM tmp
sftp> rm tmp
Removing /home/tmp
To delete all files in a folder:
sftp> rm Assign1_VM/*
Removing /home/Assign1_VM/Assign1_VM-disk001.vmdk
To delete a folder:
sftp> rmdir Assign1_VM/
To make a folder:
sftp> mkdir foldername
Get your back up folder:
sftp> get -r foldername/
or file:
sftp> get filename
You can download your back up from NAS on any machines in the lab.
Logout
Please logout of your account before leave the lab, which will protect your account. Do not power off the machine.


Last updated