Project 0: Linux & VM Dabbling CS-502, Fall 20071 Project 0: Linux & Virtual Machine Dabbling CS-502, Operating Systems.

Slides:



Advertisements
Similar presentations
Installing DOS and Windows98 under MS Virtual PC.
Advertisements

Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Project 0, Linux Dabbling CS-3013 A-term Project 0: Linux & Virtual Machine Dabbling CS-3013, Operating Systems.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Project 0: Linux & VM Dabbling CS-3013, C-term Project 0: Linux & Virtual Machine Dabbling CS-3013, Operating Systems.
Project #2, Linux Kernel Modifications CS-502 Fall Programming Project #2 Linux Kernel Hacking CS-502 Operating Systems Fall 2006.
Project 0 -- Linux Dabbling CS-502 (EMC) Fall Project 0 Linux & Virtual Machine Dabbling CS-502, Operating Systems Fall 2009 (EMC)
DiscussionCS-502 Fall Class Discussion Peterson’s Solution for n > 2.
Overview Basic functions Features Installation: Windows host and Linux host.
Project #1, Linux Kernel Modifications CS-502 Fall Programming Project #1 Linux Kernel Hacking CS-502, Operating Systems Fall 2007.
Project 0 -- Linux Dabbling CS-3013 A-term Project 0 Linux & Virtual Machine Dabbling CS-3013, Operating Systems.
MapR – HADOOP DEVELOPMENT IN A VIRTUAL MACHINE Thomas Tiahrt, MA, PhD CSC482 Introduction to Text Analytics.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Using Virtualization in the Classroom. Using Virtualization in the Classroom Session Objectives Define virtualization Compare major virtualization programs.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Introduction to UNIX/Linux Exercises Dan Stanzione.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter 7 Microsoft Windows XP. Windows XP Versions XP Home XP Home XP Professional XP Professional XP Professional 64-Bit XP Professional 64-Bit XP Media.
Modifying Network Packet Buffering in Network Layer CS518 Final Presentation and Instruction Guide Li Zhang.
CSN08101 Digital Forensics Lecture 1B: Essential Linux and Caine Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
CENT 305 Information Systems Security Linux Introduction.
1 Web Server Administration Chapter 3 Installing the Server.
Using Virtualization in the Classroom. Using Virtualization in the Classroom Session Objectives Define virtualization Compare major virtualization programs.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Linux Operations and Administration Chapter Two Installing OpenSUSE.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
2: Operating Systems Networking for Home & Small Business.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
VMware Recovery Software RECOVER DATA FROM CORRUPT VMDK FILE.
Rebuilding Linux Kernel Dedicated to penguin lovers everywhere 26 September 20161Rebuilding kernel by Visakh M R.
Using Virtualization in the Classroom
Operating System Kernel Compilation
bitcurator-access-webtools Quick Start Guide
Programming Tools Most of the programming assignments will require using the C language. We will use a current version of the GCC C compiler. What’s GCC?
Getting started with CentOS Linux
Installation and Configuration
Lab 1 introduction, debrief
Create A Virtual Machine
Project 0: Linux and Virtual Machine Dabbling
Operating System Kernel Compilation
Using Virtual Machines to Teach CS-502 Operating Systems
Project 0: Linux & Virtual Machine Dabbling
Linux as a Virtual Machines
SUSE Linux Enterprise Desktop Administration
Linux Operations and Administration
bitcurator-access-webtools Quick Start Guide
Yung-Hsiang Lu Purdue University
Operating System Kernel Compilation
Presentation transcript:

Project 0: Linux & VM Dabbling CS-502, Fall Project 0: Linux & Virtual Machine Dabbling CS-502, Operating Systems

Project 0: Linux & VM Dabbling CS-502, Fall In this project, we will … Install our virtual machines and learn how to use them –This is the place you will work during this course! Build and install the Linux kernel –With your name on it! Follow Linux naming & numbering conventions Turn in the project using web-based Turnin

Project 0: Linux & VM Dabbling CS-502, Fall In this project, we won’t … … try to change anything in the kernel yet This is for next project … try to support more than one machine architecture However, 32-bit and 64-bit architectures are different at the kernel level! Your virtual machine is not portable from one to the other

Project 0: Linux & VM Dabbling CS-502, Fall Installing your Virtual Machine – Options Install from DVD using VMware Player or any other VMware product Needs 8 gigabytes of disk, 1-2 gigabytes of RAM, fast Pentium CPU (dual core would be very nice!) Use VMware Server on csopt4.wpi.edu Needs VMware client on your PC GUI interface to virtual machine Use Parallels on Macintosh (or other) See instructor

Project 0: Linux & VM Dabbling CS-502, Fall Installing from DVD See instructions on-line.doc,.html.doc.html Download and install VMware Player Or other VMware product Unzip your virtual machine to new directory …

Project 0: Linux & VM Dabbling CS-502, Fall Installing from DVD (continued) Choose type of networking Bridged vs. NAT (Network Address Translation) Start your virtual machine Fix up MAC address for network Boot OpenSUSE 10.2 Login is as student, password = CS-502 Open YaST, the SUSE administration tool Fix and test networking Create new user identity for yourself Log out, log in as new identity, delete student

Project 0: Linux & VM Dabbling CS-502, Fall Using VMware Server on csopt4 See instructions.doc,.html.dochtml Get CS Department user ID and password Download and install VMware client Log onto csopt4, make new directory on /xtra_space drive Unzip the following file to your new directory –/xtra_space/CS-502/CS-502_Fall-07_x86_64.zip …

Project 0: Linux & VM Dabbling CS-502, Fall Using VMware Server on csopt4 (continued) Start VMware client, log into csopt4 Browse to and open your virtual machine Rename it to something unique (your user ID) Set permissions Start your virtual machine Follow instructions for distributed version –Networking, user identity, etc.

Project 0: Linux & VM Dabbling CS-502, Fall Setting OpenSUSE Linux 10.2 on Parallels See instructor Will install OpenSUSE Linux 10.2 directly to disk partition –Be sure to get on-line updates Best to create a separate partition for /home directory Need to move /usr/src to /home/src –Create link /usr/src  /home/src

Project 0: Linux & VM Dabbling CS-502, Fall Questions?

Project 0: Linux & VM Dabbling CS-502, Fall To get started with kernel Find kernel sources in /usr/src, i.e., a link to /home/src linux linux Clone kernel source tree by linked copy: – –In a terminal window, do cp –al /usr/src/linux kernelSrc –Creates a linked copy of original tree in new directory called kernelSrc

Project 0: Linux & VM Dabbling CS-502, Fall Digression on Unix/Linux Hard Links Directory entries point directly to files Two entries may point to same file! Same or different directories Same or different name Permissions attached to file, not directory Called hard links (as opposed to symbolic links) Modifications to file seen via all hard links mv and rm commands change directories, not files! File goes away when all directory entries (i.e., hard links) to that file are deleted.

Project 0: Linux & VM Dabbling CS-502, Fall Cloned Source Tree All directories are copied All directory entries in copy are hard-linked back to files in original source tree I.e., only one copy of each file exists To modify a file:– Unlink it (via mv or rm ) Replace it with modified copy in your directory Original is preserved intact in original directory

Project 0: Linux & VM Dabbling CS-502, Fall To Modify a File mv file.c file.c~ Edit file.c~ in your favorite editor Save as file.c (Eventually) delete file.c~ EMACS and patch do this automatically Most other editors require you to do it manually

Project 0: Linux & VM Dabbling CS-502, Fall To Build Linux Kernel Make configuration step –As ordinary user Build kernel files and modules –As ordinary user Install modules, boot file, etc. –Need root privileges

Project 0: Linux & VM Dabbling CS-502, Fall To Build Linux Kernel (continued) Always build to a separate destination tree mkdir ~/kernelDst make O=~/kernelDst … Reason –Making the configuration generates a lot of include files and other sources –If you don’t specify a destination, it fills up your source tree –Your patch files grow to > 1 megabyte!

Project 0: Linux & VM Dabbling CS-502, Fall Make configuration In a command shell –cd kernelSrc Do one of:– –make O=~/kernelDst config Very long and tedious –make O=~/kernelDst menuconfig Still somewhat long and tedious; also hokey –make O=~/kernelDst xconfig Nice; a GUI with very small print –make O=~/kernelDst gconfig Really nice; a better GUI; highly recommended

Project 0: Linux & VM Dabbling CS-502, Fall Make configuration (continued) Edit “General Setup” to name your “Local version” No other edits necessary for this project. Save and quit If need to rebuild, use make O=~/kernelDst oldconfig to reuse same configuration

Project 0: Linux & VM Dabbling CS-502, Fall To Build Kernel In a terminal window (i.e., a shell), do: – –cd kernelSrc –make O=~/kernelDst Takes 20 minutes on dual-core 2.4 GHz Pentium, 2 GByte 40 minutes on csopt4 (last year) Almost two hours on 3 gigahertz Pentium, 1 GByte Rebuilds after small edits are much faster Changing.h files can cause longer rebuilds

Project 0: Linux & VM Dabbling CS-502, Fall One little glitch … File include2/asm/asm-offsets.h not generated by make config Build crashes within about 2-3 minutes Link file from ~/kernelDst/include/asm-i386/ or ~/kernelDst/include/asm-x86_64 to ~kernelDst/include2/asm Run make O=~/kernelDst again Without trying to remake the config Build “should” complete without further errors

Project 0: Linux & VM Dabbling CS-502, Fall For Project Submission Redirect build output to a file Submit that file (this project only) Note that there are lots of warnings in the Linux kernel Not your problem!

Project 0: Linux & VM Dabbling CS-502, Fall To Build Kernel on a Dual Processor Generally faster to do –cd kernelSrc –make –j2 O=~/kernelDst Sometimes, this is even faster –make –j4 O=~/kernelDst SUSE advice –2  number of processors

Project 0: Linux & VM Dabbling CS-502, Fall To Install Kernel Requires root privileges –sudo make modules_install install –Note order of arguments! Puts kernel, initrd file, symbols in /boot –Changes links for vmlinuz, initrd Adds entries to /boot/grub/menu.lst –So your kernel shows up on boot screen –So you can select which kernel to boot

Project 0: Linux & VM Dabbling CS-502, Fall Running Your Kernel Restart your virtual machine Click in boot window Use arrow keys to select desired kernel or system To determine which kernel is running:– –uname -a

Project 0: Linux & VM Dabbling CS-502, Fall Submitting your Project From within your virtual machine, visit – Log in Submit output of your build as Project 0 This is to test the ability to submit projects from the virtual machine!

Project 0: Linux & VM Dabbling CS-502, Fall Questions?