Starting from:

$25

COEN177 - Lab 7 Solved

  
Guide to Modifying the Minix Scheduler Prerequisite: must have vmware on ECC linux systems and access to these systems (NoMachine). 
Virtual Machine Setup 1. Open up a terminal window on the ECC linux lab computer. 2. At the prompt, type in: setup vmware to prepare the vmware software. a. This only needs to be done the first time you login to your machine each time. 3. Next, type in: minix-get-image to get a copy of the minix system image. a. This will completely erase any pre-existing old images (use this to restore the system if you break it). 4. Next, type in: vmware & to start the vmware software with the minix system image. 5. Once vmware starts, select the minix image and “power” on the virtual machine. 6. After the minix system boots and the command line becomes available, enter root as the username when prompted. 7. Next, type the command passwd and then enter your selected passcode when prompted. FTP Setup 1. In the minix system, type in: tcpd ftp /usr/bin/in.tfpd & to launch the FTP daemon which will allow the local system to connect to the virtual machine system. 2. Next, type in: ifconfig to get the IP address of the VM. 3. Open up a terminal window on your local machine (if it wasn’t already open) and using the VM’s IP address, enter the command: ftp <VM’s IP address> to launch ftp on the local machine. 4. When prompted, enter your username ( root) and password for the VM. Modifying Scheduler Source Code 1. On the local machine terminal window in ftp, go to the directory where the VM’s kernel source code is by entering the command: cd /usr/src/kernel. 2. Once in that directory, locate the file titled proc.c. 3. Make sure that on your local machine you are in the directory that you want the files transferred to by entering: lcd to check the current location. a. Enter lcd <dir ectory path> to change location on the local machine. 4. Enter: get proc.c to transfer the file from the VM to the local machine. 5. On the local machine, open proc.c with the text editor of your choice and locate the private function pick_pr oc. 

More products