Virtualization, Compilation, Intro To Project 2: Sarah Diesburg 9/15/2010 COP4610 / CGS5765
Virtualization, Compilation, Intro To Project 2: Sarah Diesburg 9/15/2010 COP4610 / CGS5765
Virtualization, Compilation, Intro To Project 2: Sarah Diesburg 9/15/2010 COP4610 / CGS5765
Intro to Project 2
Sarah Diesburg
9/15/2010
COP4610 / CGS5765
1
Kernel Coding
2
A Choice to Make
3
Virtualization
4
Virtual Motivating Factor
5
Virtualization Software
6
Virtualization Terminology
7
Virtual Machine Files
8
Virtual Machine Advantages
9
Virtual Machine Advantages
Sandbox
Does not affect anything on host OS
Networked
Can access over the network
10
Class Virtualization Software
11
Project Virtual Machine
12
Open the Virtual Machine
Vmware interface:
File->Open->COP4610.vmx
Double-click on COP4610.vmx
13
Opened Virtual Machine
14
Virtual Memory Setting
15
Adjust Virtual Memory
16
Adjust Virtual Memory
Slide to blue
triangle
17
Start the Machine
18
Using the Virtual Machine
19
Creating a Snapshot
20
Create a Snapshot
21
Create a Snapshot
22
Roll Back to a Snapshot
23
Roll Back to a Snapshot
24
Copy & Paste / File Transfer
Preferred method
Use ssh / pretend it is a remote machine
25
Project 2 Virtual Machine
Username: root
Password: root
Username: user
Password: user
26
Lab Machines
27
Lab Machines
28
Booting
29
Booting
Start with this kernel
never modify this
kernel!
30
Booting
31
Debian Networking
$>/sbin/ifconfig a
33
Debian Networking
34
Debian Packaging System
35
Debian Packaging System
36
Debian Logging into X
37
Debian Logging into X
38
Disclaimer
39
Kernel Compilation
40
Example of Kernel Compilation.
41
Choosing a Kernel
42
Kernel Repository
43
Compiling the Kernel
44
make menuconfig
45
make menuconfig
46
lspci
47
General Linux Source Organization
48
make oldconfig
50
Config Example (Inside Source Dir)
51
Compiling the Kernel
$> make
52
Installing the Kernel
53
Boot Driver Problem
54
Boot Driver Solutions
55
initramfs
56
Configure the Boot Loader (Grub)
57
Configure the Boot Loader (Grub)
http://www.cyberciti.biz/tips/compiling-linux-
kernel-26.html
http://www.tuxradar.com/content/how-
compile-linux-kernel
60
Project 2
61
System Calls
62
strace
63
Until Next Time
Finish project 1
Homework 4 assigned tomorrow
Study hard for test next week (next Friday)
Get your environment set up
VMware or lab machine
Do part 1 of project 2 (system calls)
64
Next Recitation
More on Project 2
Create a test module!
How /proc works
Kernel debugging techniques
Elevator
65