A Virtual Machine has been setup for this project. The image file (~10.5 GB) can be downloaded here. A smaller image file (~8.5GB) can be downloaded here
- Download the image file on the CS gilligan machines or your personal laptops (which have QEMU and KVM enabled).
- On one terminal, run the following command:
$ qemu-system-x86_64 -cpu host -drive file=<path-to-qcow2-image>,format=qcow2 -m 512 -net user,hostfwd=tcp::<port-id>-:22 -net nic -nographic -enable-kvm
where<port-id> = 5900 + <group-id>
. For example, if your group-id is 15, your port-id will be 5915. This command will start up the VM, which will listen on the port that you have entered. - On another terminal, connect to the VM using the following command:
$ ssh -p <port-id> cs378@localhost
This command will let you connect to the VM. - On connecting, enter the password as
abc123
. - Copy your public and private ssh keys from the CS lab machine or from your local machine (
$HOME/.ssh/id_rsa
and$HOME/.ssh/id_rsa.pub
) into the VM in the location$HOME/.ssh/id_rsa
and$HOME/.ssh/id_rsa.pub
respectively. (Use scp command with port-id as the -P option for copying the keys to the VM). Alternatively, you can generate a new key-pair on the VM (usingssh-keygen -t rsa
) and send me the public key along with your group name, and I will add the key to your group repository. - Now you can clone the repository (
git clone [email protected]:<group-name>-project1
) and run the project like you do on the lab machines or your personal machines. (sudo make run-vmm-nox
)
Send an e-mail to [email protected]
in case of any difficulties.