Virtualization - halvorsen.blog€¦ · “Virtualization Enabled in Firmware” or the “VM...

17
Virtualization Hans-Petter Halvorsen, M.Sc.

Transcript of Virtualization - halvorsen.blog€¦ · “Virtualization Enabled in Firmware” or the “VM...

Virtualization

Hans-PetterHalvorsen,M.Sc.

Development Testing Production

DevelopmentEnvironment TestEnvironment

ProductionEnvironment

TypicallytheDevelopersPersonalComputerwithDatabase,WebServerandProgrammingSoftware

ACleanPC/Server(oranetworkwithPCsandServers)whereyouinstallandtestyourSoftware.Todaywetypicallyset-upaVirtualTestEnvironment

TheCustomersenvironmentwhereyouunstallthefinalsoftware(ServersandClients)

Programming environments suchasVisualStudio,etc.shouldnotbeinstalledinthisenvironment.Youneedtocreate.exefilesetc.inordertomakeyoursoftwarerun.

Developers Developers&Testers Customers

WhatisVirtualization?• Virtualization,incomputing,referstheactofcreatingavirtual(ratherthanactual)versionofsomething,includingbutnotlimitedtoavirtualcomputerhardwareplatform,operatingsystem(OS),storagedevice,orcomputernetworkresources.

• Hardwarevirtualizationorplatformvirtualizationreferstothecreationofavirtualmachinethatactslikearealcomputerwithanoperatingsystem.

• Inhardwarevirtualization,thehostmachine istheactualmachineonwhichthevirtualizationtakesplace,andtheguestmachine isthevirtualmachine.

[Wikipedia]

Virtualization

OperationSystem

VirtualizationSoftware

Hypervisor

VM VM VM

Hardware(Computer)

VM VM VM

Guests

Host

VM=VirtualMachines

AHypervisorcanrundirectlyonthecomputerwithoutaHostOS

Windows,Linux,...

Windows,Linux,...

VirtualizationSoftware

AlotofVirtualizationSoftwareexists.Herearesomeexamples:• VMwareWorkstationPlayer• VMwareWorkstation• VMwarevSphere• VMwareFusion(Mac)• ParallelsDesktop(Mac)• MicrosoftHyper-V• VirtualBox• etc.

VMwareWorkstationPlayerVMwareWorkstationPlayerisforpersonaluseonyourownPC.VMwareWorkstationPlayerisfreeofchargeforpersonalnoncommercialuse.

6

VMwareisacompanythathasbeenspecializingwithinvirtualizationsoftware.http://www.vmware.com

AboveweseeWindowsServer2012R2running within theVMwarePlayer.

VMwareWorkstationPlayer

VMwareWorkstation

8

MicrosoftHyper-V

Hyper-VisthevirtualizationsolutionfromMicrosoft.Wehave3differentalternatives:• WindowsServerwithHyper-V• Hyper-VServer• Windows8ClientHyper-V

WindowsServerwithHyper-V

• Hereyouneed“WindowsServerXXXX”asthehostoperatingsystem.

• WindowsServerStandardeditiongivesthepurchasertherightstorun2virtualinstancesofWindowsServer

• TheDatacenterEditionhasunlimitedvirtualizationrights.

Hyper-VServer• Hyper-VServerisaseparatestandaloneproductthatisafreedownload.Hyper-VServerisaHypervisor-based,meaningyoudon’tneedtoinstallitontopofanexistingWindowsServer.

• Hyper-VServeronlyinstallstheCoreServerfeaturesneededtorunvirtualization,youcannototherRoleslikeActiveDirectory,etc andyoudon’thaveagraphicalinterface.

• ThenormalwayistoisuseWindows8/10andtheHyper-VManagertomanagetheVMsremotely(createnewVM,editVMs,etc.).

Windows8/10ClientHyper-VInWindows8/10youcaninstallthe“ClientHyper-V”featuremeaningyoucanrunVMsinsideWindows8/10.

AllthesesettingsneedneedtobeYes.Ingeneral,ifeitherthe“VirtualizationEnabledinFirmware”orthe“VMMonitorModeExtensions”aresettoNo,youcanenablethosefeaturesinthefirmware.However,ifthe“SecondLevelAddressTranslationExtensions”orthe“DataExecutionProtection”settingsaresettoNo,thenyouwillnotbeabletouseWindowsClientHyper-V.

Hyper-VManagerUsetheHyper-VManagertocreateandmaintaintheVMs

MacandOSXIfyouhaveaMacandwanttorunWindowsorotherOSyouhavedifferentoptiens hereaswell.• BootCamp– BootCamp isbuiltintotheMacOSX.Itisactuallynotavirtualizationtechnique,butratheramethodtorunWindowsonaMaccomputer

• VMwareFusion• ParallelsDesktop• VirtualBox

VMwarevSphereEnterpriseVirtualizationSolutionfromVMware

VirtualBox

• VirtualBoxisorginally createdbySunMicrosystems,butisnowmaintainedbyOracle.

• VirtualBoxisfreelyavailableasOpenSourceSoftware.

• VirtualBoxisavailableforWindows,MacOSXandLinux/UNIX.

• Website:https://www.virtualbox.org

Hans-PetterHalvorsen,M.Sc.

UniversityCollegeofSoutheastNorwaywww.usn.no

E-mail:[email protected]:http://home.hit.no/~hansha/