Virtualization and Open source
Download
Report
Transcript Virtualization and Open source
Virtualization
and
Open source Software
Mr. Lau Ka Lun – Lai King Catholic Secondary
Date: 9th , 21st , 22nd March, 2011
School
Content
Introduction to virtualization
Experience sharing in computer subject and IT
management
Installation and configure of VM
Using open source in VM in computer subject
Server side application
2
Ways of using Open source/freeware
Windows based
Portable apps (http://portableapps.com/)
Linux Based
Multi-boot using Wubi (http://www.ubuntu.com/desktop/getubuntu/windows-installer)
Multi-boot using different partition
USB bootable Linux (U-thinker Project)
Running Linux in Windows
AndLinux (http://www.andlinux.org/)
Virtualization
3
Virtualization (From wikipedia)
Allows a single host computer to create and run
one or more virtual envirnoments.
Virtualisation software is most often used to
emulate a complete system in order to allow a
guest OS to be run.
(http://en.wikipedia.org/wiki/Category:Virtualization_software)
4
Benefits of using VM in computer subject
No ”extra” computer needed. Better hardware
utilization. Several VM can be set up in a new PC.
The Guest OS is independent of Host OS. Suitable
for access ”Dangerous site”
”Easier” to back up.
Faster installation.
Predictable Hardware behavior
5
Usage of Virtualization in Computer subjects
A platform to use of Linux based open source
software.
Students can install and config OS using the Virtual
machine.
Network Experiment can be done with several
Virtual machines.
Practice of Configuration of server become easier.
Stored VM in USB drive for homework.
6
VM used in workshop
Hosted OS: Windows XP
Guest OS (VM): Ubuntu 10.10 Desktop, Ubuntu
10.10 Server (LAMP)
Difference between Desktop and Server version
Beware of Licence issue of VM (guest OS)
7
Microsoft licensing http://www.microsoft.com/licensing/
Four Common Desktop Virtualization
products
Xen (http://www.xen.org/)
Host OS: Linux
Microsoft Virtual PC (http://www.microsoft.com/windows/virtual-pc/)
Host OS must be Windows
Support Limited distribution of Linux
Suitable for use of Trial VM downloaded from Microsoft
8
Four Common Desktop Virtualization
products
Sun - Virtual Box (http://www.virtualbox.org/)
Host OS: Windows, Linux, Mac
Generation of new VM.
Configuration of VM.
9
Four Common Desktop Virtualization
products
VM Ware (http://www.vmware.com/)
Virtual appliances (http://www.vmware.com/appliances/)
on the web.
Host OS: Linux, Windows, Linux, Mac.
VMware player (Freeware)
Limited
configuration options
VMware workstation.(30 days trial) It includes
10
Vmware player
Virtual Network Editor
VMware Workstation
License numbers (30 days)
Suggested Hardware
CPU: P4 or above
RAM: 1G or above
HardDisk space: 5GB or above
Preferred NTFS.
11
Generation of VM
VMware workstation
Use the software to generate a new VM
VMWare player
Go to http://www.easyvmx.com/new-easyvmx.shtml
Generate a configuration file
Practice 1
Preparation – download & install VMWare player
12
Switch between VM and Host
Direct Input to VM
Click the VM's window
Press CTRL-G
To return to Host computer
Move the Mouse outside the VM's window
Press Ctrl-Alt
13
VM hardware 1
Configuration Menu
Status Bar
14
VM hardware 2
Harddisk
8GB for the VM in workshop
CD: iso or physical drive
Connect to Physical CD. It willl disconnect from Host
Connect to Disk Image file (iso)
Floppy Disk
Connect to physical drive
Connect to Disk Image File (flp)
15
VM hardware 3
Network adapter
host
computer
VM1
VM2
Bridged
VM
obtain an IP in the subnet of
the host
NAT (VM config in Workshop)
The
host computer act as NAT
Host only (No external
connection)
16
host
computer
VM1
VM2
VM hardware 4
Sound Card
USB devices: When VM
connected to a USB devices. It
will disconnect from host.
For USB devices, DVD/CD,
floppy.
umount ( 卸載檔案系統) the
devices
Then disconnect / Remove.
17
Run VM in USB drive
Practice 2: Generation of VM
- Using a 3rd party tool
http://www.easyvmx.com/new-easyvmx.shtml
18
Hand-on practice
Hand-on practice 3:
Install a virtual appliance (Ubuntu 10.1 Server)
Hand-on practice 4:
Install a virtual appliance (Ubuntu 10.1 Deskstop)