05 virtualbox workshop - unimi.it · pdf fileoracle vm virtualbox workshop 1 ... oracle vm...
TRANSCRIPT
Copyright©2014Oracleand/oritsaffiliates.Allrightsreserved.|
VirtualBox 5.0NewFeatures
OracleVMVirtualBoxWorkshop
1
SimonCOTERPrincipalProductManagerOracleVM&[email protected]://blogs.oracle.com/scoter
November21st,2016
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved.
What’sNewinVirtualBox 5?
2
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved.
OracleVMVirtualBox 5MainEnhancements
3
• VirtualMachineManagement
ØParavirtualization supportforWindowsandLinuxguests
ØMoreinstructionsetextensionsavailabletotheguest
• DevicesupportØ xHCI ControllertosupportUSB3devices
• UsabilityØ ImprovedDraganddropsupport
Ø Diskimageencryption
Ø VMsstartedwithseparateGUI– foreground – /VM– background – processes
• Underthehood
Ø GUI:NewUserInterfaceforcustomizingstatus-bar,menu-barandguest-contentscaling
Ø GUI:HiDPI support&VMguestcontentscalingsupport(including3Dacceleration)
Ø GUI:Hot-pluggingsupportforSATAdisks
Ø Troubleshooting/DEBUG:captureUSBtraffictoforasingleoralldevices
Ø SupportfortheNDIS6networkingframeworkonWindows
Ø New,modularaudioarchitectureforprovidingabetterabstractionofthehostaudiobackend
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved.
OracleVMVirtualBox 5.1MainEnhancements
4
VirtualMachineManagement• NewAPICandI/OAPICimplementations
• Significantlyimprovedperformance(multiCPUsandNetwork)• x2APICsupporttoincreasetheperformancewithLinuxandSolarisguests• addedsupportforHyper-VPara-VirtualizeddebuggingofWindowsguests
GUI• overallmigrationtoQt5• passiveAPIeventlistenerimprovingtheVMGUIperformanceandresponsetime
Audio• addedHDA(HighDefinitionAudio)supportfornewerLinuxguests• addedon-demandtimerswhichshouldimprovetheoverallperformance• addedsupportformastervolumecontrolsintheAC'97emulation
Underthehood• Bugreporthelpertool• Storage:implementedNVMHCI-compatiblestoragecontroller• EFI:manyimprovements,forexampleallowtobootfromUSB• Linuxinstallers:nolongerrelyonDKMSformodulerebuilding• Windowshosts:COMproxyperformanceimprovements• OVF:improvedhandlingofsignedmanifests
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 5
OracleVMVirtualBox 5:ParavirtualizationVirtualBox allowsexposingapara-virtualizationinterfacetofacilitateaccurateandefficientexecutionofsoftware.
• None Explicitlyturnsoffexposinganyparavirtualization interface.
• Legacy Defaultoptionfor VMswhichwerecreatedwitholderVirtualBox releases
• Default WillpickupanappropriateinterfacedependingontheguestOStypewhilestartingtheVM.ThisisthedefaultoptionchosenwhilecreatingnewVMs(Windows->Hyper-V/Linux->KVM/OSX->Minimal)
•Minimal Announcesthepresenceofavirtualizedenvironment.
• KVM PresentaLinuxKVMhypervisorinterface whichisrecognizedbyLinuxkernelsstartingwithversion2.6.25.
• Hyper-V PresentsaMicrosoftHyper-VhypervisorinterfacewhichisrecognizedbyWindows7andnewerMicrosoftOS.
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 6
OracleVMVirtualBox 5:InstructionSetExtendedMoreinstructionsetextensionsavailabletotheguestwhenrunningwithhardware-assistedvirtualizationandnestedpaging.Amongothersthisincludes:
• SSE4.1/4.2 ImproveVideoAcceleration,Graphicbuildingblocksandstreamingloadonvirtual-machines
• AVX/AVX-2 SuitableforintensiveandparallelcalculationsandallowstheexpansionofmostvectorintegersSSEto256bits
• AES-NI Improvethespeedofapplications(ex.databases&applicationservers)performingencryptionanddecryptionusingtheAdvancedEncryptionStandard(AES).
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 7
OracleVMVirtualBox5.0:xHCI Controller– USB3WithVirtualBox youcanfirstconfigurewhetherUSBisavailableintheguestatall,andthenchoosethelevelofUSBsupport:OHCIforUSB1.1,EHCI(whichwillalsoenableOHCI)forUSB2.0,orxHCI forallUSBspeeds.
0
20
40
60
80
100
120
140
HostEHCI(USB2.0)GuestOHCI(USB1.0)
HostEHCI(USB2.0)GuestEHCI(USB2.0)
HostEHCI(USB2.0)GuestxHCI(USB3.0)
HostxHCI(USB3.0)GuestxHCI(USB3.0)
HostxHCI(USB3.0)
ThroughputMB/sexample- USBDiskdevice
Note: ThexHCI andEHCIcontrollersareshippedasaVirtualBox extensionpackage,whichmustbeinstalledseparately.
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 8
OracleVMVirtualBox5.0:ImprovedDrag&DropsupportStartingwithversion5.0,VirtualBox improveddrag’n dropsupportfromthehosttotheguestandviceversa.Drag’ndroptransparentlyallowscopyingoropeningfiles,directoriesformatsfromoneendtotheother,e.g.fromthehosttotheguestorfromtheguesttothehost.
IMPORTANT: ConsiderthatdefaultVALUEofthisfeatureis“disabled”.
Note: Drag&Drop featureisavailablewithlatestGuestAdditionsinstalled
DebugD&D:https://www.virtualbox.org/wiki/DnDDebug
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 9
OracleVMVirtualBox5.0:DiskImageEncryptionStartingwithVirtualBox 5.0,itispossibletoencryptthedatastoredinharddiskimagestransparently fortheguest.VirtualBox usestheAESalgorithm inXTSmodeandsupports128or256bitdataencryptionkeys(DEK).
Note: The“DiskImageEncryption”isshippedasaVirtualBox extensionpackage,whichmustbeinstalledseparately. VBoxManageencryptmedium"uuid|filename"--newpassword"file|-"--cipher"cipherid"--newpasswordid"id"
Encrypt
Startwithpassword
Decrypt
Startwithoutpassword
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 10
OracleVMVirtualBox5.0:DiskImageEncryptionTheDEKisstoredencryptedinthemediumpropertiesandisdecryptedduringVMstartup byenteringapasswordwhichwaschosenwhentheimagewasencrypted.
Note: The“DiskImageEncryption”isshippedasaVirtualBox extensionpackage,whichmustbeinstalledseparately. VBoxManagecontrolvm"uuid|vmname"addencpassword"id""password"[--removeonsuspend"yes|no"]
Encrypt
Startwithpassword
Decrypt
Startwithoutpassword
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 11
OracleVMVirtualBox5.0:DiskImageEncryptionInsomecircumstancesitmightberequiredtodecryptpreviouslyencryptedimages.
Note: The“DiskImageEncryption”isshippedasaVirtualBox extensionpackage,whichmustbeinstalledseparately. VBoxManageencryptmedium"uuid|filename"--oldpassword"file|-"
Encrypt
Startwithpassword
Decrypt
Startwithoutpassword
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 12
OracleVMVirtualBox5.0:DiskImageEncryptionSincetheDEKisstoredaspartoftheVMconfigurationfile,itisimportantthatitiskeptsafe.LosingtheDEKmeansthatthedatastoredinthediskimagesislostirrecoverably.HavingcompleteanduptodatebackupsofalldatarelatedtotheVMistheresponsibilityoftheuser.
Note: The“DiskImageEncryption”isshippedasaVirtualBoxextensionpackage,whichmustbeinstalledseparately.
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 13
OracleVMVirtualBox5.0:VMsinseparatemode.VMprocesscouldbestartedheadlesswhilethefrontendrunsasaseparateone
VBoxManagestartvm”vmname"--type”gui”
NormalStart
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 14
OracleVMVirtualBox5.0:VMsinseparatemode.WithHeadlessmodeVMstartinbackgroundandfrontendprocessisnotstarted
VBoxManagestartvm”vmname"--type”headless”
HeadlessStart
Note: Thisisanexperimentalfeatureasitlackscertainfunctionalityatthemoment(e.g.3Daccelerationwillnotwork).
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 15
OracleVMVirtualBox5.0:VMsinseparatemode.WithDetachablemodeVMstartinbackgroundandfrontendprocessisstarted*
VBoxManagestartvm”vmname"--type”headless”
DetachableStart
*andcloseablewithoutstoptheguest
Note: Thisisanexperimentalfeatureasitlackscertainfunctionalityatthemoment(e.g.3Daccelerationwillnotwork).
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 16
OracleVMVirtualBox5.0:VMsMenuCustomizationNewUserInterfaceforcustomizingstatus-bar,menu-barandguest-contentscalingUndertheHood
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 17
OracleVMVirtualBox5.0:HiDPI support•WindowsAdditions/WDDM:improvedvideomemoryutilizationandallowmore/biggerguestscreenswithlargeresolutions(includingHiDPI)
• Applicationiconsandoptionalun-scaledHiDPI outputonMacOSX(including3Dacceleration)
UndertheHood
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 18
OracleVMVirtualBox5.0:GUI- Hot-PlugSATAdisksBytheGUI,addvirtualSATAdiskstoaguestwithoutreboot/stopUndertheHood
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 19
OracleVMVirtualBox5.0:USBdevicesDebugBytheCLI,debugUSBtrafficforasingleoralldevicesandanalyzeitwithWiresharkUndertheHood• AttachanUSBdevicewithdebugenabledVBxManage controlvm "VM name" usbattach "uuid|address" --capturefile "filename”
• ListUSBdevicesactiveonhostsystem
• EnabledebugontherootUSBattachedtoeHCI/oHCI/xHCIcontrollerVBoxManage setextradata "VM name" VBoxInternal/Devices/usb-”?”hci/LUN#0/Config/CaptureFilename "filename"
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved. 20
OracleVMVirtualBox5.0:USBdevicesDebugDetachUSBdeviceandanalyzedumpobtained(Wireshark intheexample)UndertheHood• DetachanUSBdevicewithdebugenabledVBxManage controlvm "VM name" usbdetach "uuid|address”
• Analyzeddumpfileobtained(Wiresharkintheexamplebelow)
Copyright©2015 Oracleand/oritsaffiliates.Allrightsreserved.
Q&A
21