For this lab, each of you were assigned an account on a SIIS cloud. You can then start a VM to work on the lab. 1. To access the cloud, login to hecto.cse.psu.edu using the username and password provided in class. ssh USERNAME@hecto.cse.psu.edu -X 2. Your cloud credential is saved in openrc under your home directory. To access the cloud, execute the following command: source openrc USING THE CLOUD 1. You can list your current running VMs by executing the following command. This will return you with your VM names. There is already a VM created for you with name of your username. nova list 2. You can see the console log of you running VMs by executing the following command. You will need to specify your VM name. nova console-log VM_NAME 3. You can login to the VM using the following default credentials and work on your project. The IP is the ip address of your VM, which can be viewed using the "nova list" command. WARNING: change your password after the first time login. ssh root@VM_IP username:root password:cse544 4. If your VM crashes, you can reboot it using the following command: nova reboot VM_NAME USE WITH CAUTION: 5. You can destroy and your VM using the following command. Note that all your private contents on the VM WILL BE LOST!!! BACK YOUR STUFF before you destroy the VM!!! nova destroy VM_NAME 6. You can create a new VM using the following command. This will give you a brand new VM. nova boot VM_NAME --image ubuntu-8.04-cse544-v2 --flavor cse544 Given that your kernel module may not work at the begining, try to use reboot instead of destroy and boot. DEBUG YOUR KERNEL MODULE 1. The easiest way to debug kernel module is to add printk into your module code. Then you can view the output using the following command: dmesg 2. In case your module crashes the kernel, then you cannot view the debug output using the dmesg. In this case, view the debug output through the console output. Remember you need to "source openrc" in order the access the cloud. nova console-log VM_NAME As an alternative, you can have a GUI access to the cloud. (SLOW, NOT RECOMMENDED) 1. Login to your hecto.cse.psu.edu with graphical acces. (-X option in ssh) 2. Start Firefox by executing firefox 3. Goto localhost in navigation bar 4. Enter your cloud credential. (They are the same as your login credential of hecto.cse.psu.edu) 5. You can view the console log at Compute->Instances->Log 6. You can have an interactive console at Compute->Instances->Console