A Linux Virtual Machine for CS-2011 Projects

Similar documents
Setting up your Virtual Machine on VMware

Project 0: Linux & Virtual Machine Dabbling

Installing and Using SUSE Linux on VMware

The Ip address / Name value should be: srvvcenter-cis

The Ip address / Name value should be: srvvcenter-cis

1) Use either Chrome of Firefox to access the VMware vsphere web Client.

This is Lab Worksheet 7 - not an Assignment

CTEC1863/2018F Bonus Lab Page 1 of 5

This is Lab Worksheet/Installation 7

VMware Horizon FLEX Client User Guide

1) Use either Chrome of Firefox to access the VMware vsphere web Client.

CIS 231 Windows 7 Install Lab #2

Using the Zoo Workstations

RocIT Defender User s Guide ViSoS TM Virtual System on a Stick

CIS 231 Windows 10 Install Lab # 3

Setting up Python 3.4 and numpy and matplotlib on your own Windows PC or laptop

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

HiveManager Virtual Appliance QuickStart

Section 2 Getting Started

CIS 231 Windows 2012 R2 Server Install Lab #1

Installing Hortonworks Data Platform 2.1 Technical Preview VirtualBox on Windows

COPYRIGHTED MATERIAL. Using Adobe Bridge. Lesson 1

BIG STEP 400: INSTALL "VMWARE TOOLS" INTO "WINDOWS 10.." RUNNING INSIDE A "VIRTUAL MACHINE" INSIDE "VMWARE WORKSTATION PLAYER"

System Requirements for Mac OS X Clients. Download View Client Package. **Take note: This guide is not a detailed step by step guide.

VOCAL. Video Optical Comparison and Logging. User Guide

Media Guide: PowerPoint 2010

Laboratory Assignment #4 Debugging in Eclipse CDT 1

Installing Hortonworks Sandbox VMware Player on Windows 1

What is VMware View. IMPORTANT: Connecting from Off-Campus. Connecting to View Desktops. Downloading the Client

VMware Horizon FLEX Client User Guide. 26 SEP 2017 Horizon FLEX 1.12

Examplify v12 Exam Instructions

Sun VirtualBox Installation Tutorial

SETTING UP THE STUDENT COMPUTERS

WA2592 Applied Data Science and Big Data Analytics. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Computer Basics. Page 1 of 10. We optimize South Carolina's investment in library and information services.

FireFox. CIS 231 Windows 2012 R2 Server Install Lab #1

WA2393 Data Science for Solution Architects. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Windows Me Navigating

FireFox. CIS 231 Windows 10 Install Lab # 3. 1) Use either Chrome of Firefox to access the VMware vsphere web Client.

Installing Hortonworks Data Platform 2.1 Technical Preview VirtualBox on Mac

Computer Basics Written by Brian O'Rooney. Copyright 2000 Nanaimo Literacy Association All rights reserved

Laboratory Assignment #3 Eclipse CDT

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Starting the KVM Console

WA2503 Hadoop Programming on the. Hortonworks Data Platform. Lab Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Your Own Virtual Playground. CS 1585 :: Doug McGeehan

Virtual Data Center (vdc) Manual

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

VMware Horizon Client Installation Guide (Windows)

Handout Objectives: a. b. c. d. 3. a. b. c. d. e a. b. 6. a. b. c. d. Overview:

Click Here to Begin OS X. Welcome to the OS X Basics Learning Module.

Installing Hortonworks Sandbox VMware Player on Windows

Installing the Operating System or Hypervisor

Practice Labs User Guide

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

Installing and configuring an Android device emulator. EntwicklerCamp 2012

Computer Basics. Hardware. This class is designed to cover the following basics:

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

Setting up Python 3.5, numpy, and matplotlib on your Macintosh or Linux computer

QUICK START GUIDE Seawolf Bootable and Seawolf VA (Virtual Appliance)

Introduction to Windows

For this class we are going to create a file in Microsoft Word. Open Word on the desktop.

Computer Basics. Need more help? What s in this guide? Types of computers and basic parts. Why learn to use a computer?

College of Pharmacy Windows 10

Installing and Upgrading Cisco Network Registrar Virtual Appliance

SAM Assessment, Training and Projects for Microsoft Office

Users with Visual Disabilities Participate in Web Conferences with Adobe Connect

More information, including a printable version of these instructions, is available at our website.

Basic Computer Operations

How to Use Launch on a Desktop

napp-it on OpenIndiana

JCCC Virtual Labs. Click the link for more information on installing on that device type. Windows PC/laptop Apple imac or MacBook ipad Android Linux

IT Essentials v6.0 Windows 10 Software Labs

Libraries. Multi-Touch. Aero Peek. Sema Foundation 10 Classes 2 nd Exam Review ICT Department 5/22/ Lesson - 15

CST VMWare Documentation

OPERATING SYSTEMS Chapter 13 Virtual Machines. CS3502 Spring 2017

System Requirements July 2017

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

Windows 10 Essentials

Getting Started with VMware Fusion VMware Fusion for Mac OS X Version 1.0

SIS offline. Getting Started

Work Smart: Windows 7 New Features

Voyant Connect User Guide

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

Setting Up U P D AT E D 1 / 3 / 1 6

Hardware. Hardware is the physical components that you knock on, that you can touch. (Monitor, processor chip, CD-ROM drive set.)

VMware Horizon Client for Chrome OS User Guide. 04 JAN 2018 VMware Horizon Client for Chrome OS 4.7

Functional Skills. Entry 3 to Level 2. IT Basics Information

CyberDiscovery User Guide Version 0.1

The Fundamentals. Document Basics

Examplify Student Guide

USB to VGA/DVI Adapter User s Manual

The First-Time Login Must Be On-Campus using Ethernet Cable

GO! Finder V1.4. User Manual

Lab Install Windows 8

8 ISSUE 02 SPECIAL EDITION. Installing opensuse Ready to get started? This article shows you how to install opensuse from the disc

KEYBOARD SHORTCUTS AND HOT KEYS

Title: Demonstrate the linux installation and administration settings.

EDTE 330A/B. Educational Technology in the Classroom: Applications and Integrations

Transcription:

CS-2011, Machine Organization and Assembly Language, D-term 2013 A Linux Virtual Machine for CS-2011 Projects Hugh C. Lauer Adjunct Professor Worcester Polytechnic Institute As an alternative to working on the CCC Linux systems, a virtual machine is provided for your convenience. It is not necessary to use this, but some students may prefer to use their own laptop or desktop computers for CS-2011 projects. This document describes how to set up a Linux virtual machine on your personal Windows computer using the free VMware Player. 1,2 Virtual Machines A virtual machine is an application program capable of simulating a computer system with enough fidelity and performance to mimic actual computer hardware. The virtual machine concept originated in the 1960s, and it has now matured to the point where virtual machines are routinely used in a wide variety of commercial, academic, and organizational settings. Two important terms in virtual machine technology are host and guest. The host is the hardware and operating system on which the virtual machine application runs e.g., your own computer, a laboratory computer, or a departmental or corporate server. The host operating system is irrelevant, so long as it supports the virtual machine application. Sometimes the host system has no formal operating system of its own and, instead, runs the virtualization application directly on bare hardware. In this case, the virtualization application is called a hypervisor. The guest is the simulated computer, which runs its own operating system and set of applications e.g., a Linux guest running on top of a Windows or Mac-OS host. The virtual machine application uses the host processor(s) to simulate the guest processor(s), and it uses files on the host system to simulate the disks and RAM of the guest system. It also connects some host resources directly to the guest system e.g., the host s CD or DVD drive or a USB flash drive when it is plugged into the host system. This virtual machine is based on VMware Player, a freeware virtualization application. Other virtualization applications are also available and can be used with this virtual machine image, but students who choose to do so are on their own. 1 Students with Linux or Macintosh systems do not need to use this, because the projects can be carried out natively on those platforms. 2 This virtual machine is similar to but smaller than the one used for the operating systems course. 1

Download and install your virtual machine Before you can use your virtual machine, you need to acquire and install VMware Player. 3 You can download and install VMware Player from here: https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0 Next, download the zip file containing the virtual machine image from the following URL: http://www.cs.wpi.edu/~cs2011/d13/resources/minisuse-12.1.zip This file is about 2.1 gigabytes. It will download fairly quickly on the WPI campus, but it could take a long time to off-campus locations with slow network service. 4 Unzip this file to a folder on your hard drive. Please note that the unzipped files may eventually grow to 8-10 gigabytes on your host machine. The unzipped folder should look like Figure 1 below: Figure 1 The most important file is the VMware virtual machine configuration file (with the vmx extension, just above the middle of the figure). This is a text file describing all of the attributes of the virtual machine and its component files. You can open it in a text editor such as Notepad and examine its contents, but that is not necessary for this course. For most purposes in this course, you can use the virtual machine right out of the box. Double click on the vmx file in Figure 1, or navigate to it and open it in VMware Player. If it turns out that you need to make adjustments, see instructions at the end of this document. 3 Also available are VMware Workstation (for Windows or Linux) or VMware Fusion for the Macintosh. 4 If download speed is a problem for you, it is suggested that you download the zip file to a flash drive using a public computer on campus and then physically carry it to your computer off campus. 2

After VMware Player opens and before it boots the virtual machine, it will present you with dialog box resembling the following: Figure 2 Be sure to select I copied it. The reason is that VMware generates a network MAC address 5 from the path name of the VMware virtual machine configuration file. VMware uses this path name to figure out whether it is dealing with the same virtual machine or a copy. Very, very bad things happen when two or more computers get onto the same network with the same MAC address. When you select I copied it, VMware changes the MAC address to something different (and hopefully unique, at least within the scope of your network). After the virtual machine is loaded and started, you will be presented with a boot screen resembling the one in Figure 3 below. If you do nothing, a timer will count down and the default version of the operating system i.e., Desktop -- opensuse 12.1 will boot. If you click in the window, you may choose other options before booting, but that should not be necessary in this course. Note: You transfer the input focus of the mouse and keyboard to the virtual machine by clicking in its window or typing CTRL-G. You can return the input focus to the host desktop by typing CTRL-ALT. If the input focus is in the wrong place, the virtual machine won t hear you type and won t notice you moving the mouse. Once the focus is in the virtual machine, you may use the up and down arrows to select the booting option and Enter to invoke that booting option. You can also cancel the boot timer by simply pressing the arrow keys. This will give you time, for example, to change settings in the VMware Player menu bar. During booting, the screen may briefly change to a text console, and then it will eventually change to a GUI login interface resembling Figure 5 on Page 5. If you want to watch the Linux boot messages, type ESC when the input focus is in the virtual machine prior to the GUI login. 5 MAC addresses are the hardware addresses that Ethernet devices use to communicate with each other. MAC stands for Media Access Code. 3

Figure 3 If any of these screens is too large to fit into the VMware Player window (or if it is too large to fit on your monitor when you are in full screen mode), you will see scrollbars. You may resize the virtual display to fit your own monitor or window later, after you have logged in (see below under Optional Virtual Machine Settings). You can also run your virtual machine in full-screen mode, during which it occupies the entire display. To enter or leave full-screen mode, simply type CTL-ALT-ENTER. In full-screen mode, a retractable a menu bar resembling Figure 4 appears at the top of the screen. This lets you access useful VMware commands at run time. The thumb tack at the left of the menu bar locks it in place or allows it to retract upward from view. Figure 4 In this menu bar, the Virtual Machine pull-down menu contains various commands that allow you to change the settings of the virtual machines, modify the Shared Folders, connect host devices such as CD-DVD drives and USB devices to the virtual machine, etc. One of the commands allows you to send CTL-ALT-DEL to the guest Also at the right of the menu bar are buttons to minimize, maximize, and close the guest. 4

Logging in Figure 5 Log in to the dialog box of Figure 5. Your user ID is student, and your password is CS-2011. After you have logged in, you will be presented with a graphic desktop called KDE, the Linux Desktop Environment, shown in Figure 6 below. Under normal circumstances, it will resize itself to fit the window of your VMware application or the full screen. If it does not resize itself, see the instructions for under Optional Virtual Machine Settings below. KDE is the SUSE Linux equivalent of the Windows or Macintosh desktop, and it is used much the same way. In particular, note the little green Gecko icon in the lower left corner. This is functionally equivalent to the Start button in Windows. Click it to get a twodimensional menu of program items and other commands, as shown in Figure 7. 5

Figure 6 Note: After you have logged in, you will find that the input focus follows the mouse and cursor. That is, you can move the mouse out of the virtual machine and click in a normal desktop window and work there. You can then move the mouse back into the virtual machine, click, and work there. Normally, you will also be able to cut, copy, and paste between the virtual (i.e., guest) machine and other applications on the host machine. This is made possible by a software package called open-vm-tools, which is installed in the guest operating system. Open a Command Shell Click on the Start button (i.e., the Gecko button) to bring up the Figure 7 menu. Select the Terminal command to bring up a Linux command shell. Test your shell by typing a shell command. Figure 8 shows a small terminal window in which the commands which and ip address have been issued. 6

Figure 7 Figure 8 You are now ready to work. You may invoke Firefox by clicking he Firefox icon next to the Gecko (start) button at the bottom of the desktop, or you may type the command firefox & to a command shell. (The & instructs the shell to run the command in the background.) For editing text and C files, use your favorite Linux editor. In this virtual machine, kwrite is particularly recommended. It has a natural graphical user interface, and it can be configured to intelligently indent C code. 7

Optional Virtual Machine Settings Changing the Display Size It is a nuisance to try to work with a virtual display of the guest system that does not fit into a window or on the screen of the host system. Under normal circumstances, the display should automatically resize itself. If not, you may want to change the default display size of the guest by invoking the Configure Desktop command from the Start menu of the guest operating system (Figure 7). This brings up a window resembling Figure 9 below. Scroll down until an icon group named Hardware is visible, and then select Display and Monitor to tell KDE the size of the display. After you have selected and applied the new display size, click the option that says to make it the default. Finally, select Application Appearance in the top section, which opens a window with a lot of options. Select Fonts from the left panel. This lets you set the font sizes for most of the window characteristics. Note especially the Force Fonts DPI pull-down menu near the bottom, which controls the number of pixels per inch. Setting this will help the font sizes to look like those sizes on the virtual display. Feel free to experiment with other settings in this tool. Figure 9 Personalizing your virtual machine To change your password, click on the Account Details icon in the top left corner of Figure 9 above. This will bring up a dialog box allowing you to change your password and enter other information about yourself. Alternatively, you can use the passwd shell command. If you want to create another user name for yourself, invoke YaST, the system administration tool, to configure the user and group settings. Click the Start button in the lower left 8

corner, select the third submenu, labeled Computer, and select the YaST command, as shown at the top of Figure 10 below. Figure 10 YaST will first ask you for the root password. This is CS-2011, the same as the password for the user student. It will then bring up the YaST window, shown in Figure 11 below. Figure 11 9

Select Security and Users from the left panel and User and Group Management from the right panel. Follow this GUI to create a new identity for yourself and/or to change passwords. We suggest that you use your WPI e-mail identity. Log out, and then log in with this new identity, and finally use YaST again to delete the student identity. 6 Other Properties of your Virtual Machine In normal circumstances, it is not expected that you will need to change the attributes or properties of your virtual machine. However, if you do, these can be accessed from the Virtual machine settings submenu of the Virtual Machines menu of Figure 3 or Figure 4. Attributes include: The number of processors. There is no need for you to run more than one processor in this course. If you are running on a multi-core machine, you should allocate no more than half the number of processors to the guest machine. The size of (simulated) RAM. By experience, the amount of simulated Random Access Memory in the virtual machine should not exceed half of the amount of physical RAM in the host computer. The size of the RAM memory can be changed when the virtual machine is running, but changes do not take effect until it is restarted. The CD/DVD drive or USB device. These devices in the guest system use the physical devices of the host system. When you insert a CD or DVD into the physical drive of the host, or when you plug a flash drive into a USB port of the host, you can control the behavior as to whether the device should be used by the host system or the guest system. It cannot be used by both at the same time. Conclusion That s it! Enjoy your virtual machine. You are now ready for your first project. When you are ready to take a break, you may power off your virtual machine by invoking the leave tab from the Start menu and selecting the appropriate option. You may also Suspend the virtual machine by simply exiting VMware Player. You can then resume it later. Be sure to back up your work on a regular and frequent basis. Documentation Documentation for VMware Player can be found here: http://www.vmware.com/support/pubs/ Documentation about OpenSUSE Linux can also be found on-line at http://doc.opensuse.org/ This includes a getting started guide, a user s manual, an administrator s manual, and other information. Do not try to print these. Together, they are well over 1000 pages. 6 So far as we can tell, YaST stands for Yet Another System Tool. 10