Operating Systems 2015F: Tutorial 5: Difference between revisions

From Soma-notes
No edit summary
No edit summary
Line 1: Line 1:
'''This tutorial is not yet finalized.'''
In today's tutorial you will be getting your own virtual machine set up in OpenStack.  Your tasks are as follows:
In today's tutorial you will be getting your own virtual machine set up in OpenStack.  Your tasks are as follows:


# Connect to the SCS Openstack web portal at https://openstack.scs.carleton.ca
# Connect to the SCS Openstack web portal at https://openstack.scs.carleton.ca
# Login using your MyCarletonOne username and the default password (your username and student number) or the password you have set.
# Login using your MyCarletonOne username and the default password (your username and student number) or the password you have set.
# Create an instance based on the snapshot "comp3000-base-16Oct2015"
# Create an instance based on the snapshot "comp3000-base-snap"
#* You don't need an ssh keypair
#* You don't need an ssh keypair
#* Set the name of the instance to be your username-1.  Thus if your username is janedoe, then call your instance janedoe-1.
#* Set the name of the instance to be your username-1.  Thus if your username is janedoe, then call your instance janedoe-1.
# Assign a floating IP address to your instance.
# Assign a floating IP address to your instance.
# Boot your instance and try logging in to the console using the standard student account.
# Check that your instance is running; if not, start it.  Then log in to the console using the standard student account.
# For regular work, ssh to the floating IP address assigned to your instance.  Make sure you specify "student" as the username.  The password is "tneduts!", same as the Virtualbox VMs.  (If you used one of the standard cloud ubuntu images and set up a keypair, the username is "ubuntu" and the account has no password.)
# Change the hostname of your machine to be whatever you want by editing /etc/hostname.  Also change the hostname in /etc/hosts.
# Change the hostname of your machine to be whatever you want by editing /etc/hostname.  Also change the hostname in /etc/hosts.
# Configure your kernel by running
# Configure your kernel by running

Revision as of 20:18, 16 October 2015

In today's tutorial you will be getting your own virtual machine set up in OpenStack. Your tasks are as follows:

  1. Connect to the SCS Openstack web portal at https://openstack.scs.carleton.ca
  2. Login using your MyCarletonOne username and the default password (your username and student number) or the password you have set.
  3. Create an instance based on the snapshot "comp3000-base-snap"
    • You don't need an ssh keypair
    • Set the name of the instance to be your username-1. Thus if your username is janedoe, then call your instance janedoe-1.
  4. Assign a floating IP address to your instance.
  5. Check that your instance is running; if not, start it. Then log in to the console using the standard student account.
  6. For regular work, ssh to the floating IP address assigned to your instance. Make sure you specify "student" as the username. The password is "tneduts!", same as the Virtualbox VMs. (If you used one of the standard cloud ubuntu images and set up a keypair, the username is "ubuntu" and the account has no password.)
  7. Change the hostname of your machine to be whatever you want by editing /etc/hostname. Also change the hostname in /etc/hosts.
  8. Configure your kernel by running
 make menuconfig
  1. Build and install a kernel by running:
 make bzImage
 make modules
 make install
 make modules_install
  1. While waiting for your kernel to build, try tracing various kernel events in /sys/kernel/debug/tracing as detailed in Lecture 11. Try to trace:
    • entry to the chdir system call
    • entry into the fork system call
    • all system calls
    • other functions in the kernel

Hints

  • You can configure a kernel an existing config file by copying it to .config and running "make oldconfig". A minimal config that works in the class VM is here. Save it as ".config" in the top level of the kernel source directory.