diff options
author | Manuel Bentele | 2021-05-10 09:51:43 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-05-10 09:51:43 +0200 |
commit | 15b7fb9f9e6770696f568b0239d2ffec34000e56 (patch) | |
tree | f7c8f178bc1a3056b3a682c26d18ada2aa72616b /src/test | |
parent | Optimize OS detection for Libvirt/QEMU virtualization configurations (diff) | |
download | master-sync-shared-15b7fb9f9e6770696f568b0239d2ffec34000e56.tar.gz master-sync-shared-15b7fb9f9e6770696f568b0239d2ffec34000e56.tar.xz master-sync-shared-15b7fb9f9e6770696f568b0239d2ffec34000e56.zip |
Fix HDD detection in VirtualBox configurations newer or equal than v1.17
Diffstat (limited to 'src/test')
7 files changed, 515 insertions, 2 deletions
diff --git a/src/test/java/org/openslx/virtualization/VersionTest.java b/src/test/java/org/openslx/virtualization/VersionTest.java index 988437a..21464d9 100644 --- a/src/test/java/org/openslx/virtualization/VersionTest.java +++ b/src/test/java/org/openslx/virtualization/VersionTest.java @@ -92,8 +92,19 @@ public class VersionTest } @Test - @DisplayName( "Test that version is larger than" ) - public void testVersionLargerThan() + @DisplayName( "Test that version is smaller than with helper method" ) + public void testVersionSmallerThanMethod() + { + final Version versionOne = new Version( Short.valueOf( "2" ), Short.valueOf( "3" ) ); + final Version versionTwo = new Version( Short.valueOf( "3" ), Short.valueOf( "2" ) ); + + assertTrue( versionOne.isSmallerThan( versionTwo ) ); + assertFalse( versionTwo.isSmallerThan( versionOne ) ); + } + + @Test + @DisplayName( "Test that version is greater than" ) + public void testVersionGreaterThan() { final Version versionOne = new Version( Short.valueOf( "3" ), Short.valueOf( "3" ) ); final Version versionTwo = new Version( Short.valueOf( "3" ), Short.valueOf( "2" ) ); @@ -103,6 +114,17 @@ public class VersionTest } @Test + @DisplayName( "Test that version is greater than with helper method" ) + public void testVersionGreaterThanMethod() + { + final Version versionOne = new Version( Short.valueOf( "3" ), Short.valueOf( "3" ) ); + final Version versionTwo = new Version( Short.valueOf( "3" ), Short.valueOf( "2" ) ); + + assertTrue( versionOne.isGreaterThan( versionTwo ) ); + assertFalse( versionTwo.isGreaterThan( versionOne ) ); + } + + @Test @DisplayName( "Test that versions are equal (compareTo)" ) public void testVersionEqualCompareTo() { diff --git a/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationTestResources.java b/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationTestResources.java new file mode 100644 index 0000000..4dfd0b7 --- /dev/null +++ b/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationTestResources.java @@ -0,0 +1,18 @@ +package org.openslx.virtualization.configuration; + +import java.io.File; + +import org.openslx.virtualization.configuration.logic.ConfigurationLogicTestResources; + +public class VirtualizationConfigurationTestResources +{ + public static File getVmwareVmxFile( String vmwareVmxFileName ) + { + return ConfigurationLogicTestResources.getVmwareVmxFile( vmwareVmxFileName ); + } + + public static File getVirtualBoxXmlFile( String virtualBoxXmlFileName ) + { + return ConfigurationLogicTestResources.getVirtualBoxXmlFile( virtualBoxXmlFileName ); + } +} diff --git a/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVirtualBoxTest.java b/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVirtualBoxTest.java new file mode 100644 index 0000000..496c080 --- /dev/null +++ b/src/test/java/org/openslx/virtualization/configuration/VirtualizationConfigurationVirtualBoxTest.java @@ -0,0 +1,144 @@ +package org.openslx.virtualization.configuration; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.params.provider.Arguments.arguments; + +import java.io.File; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.stream.Stream; + +import org.apache.log4j.Level; +import org.apache.log4j.LogManager; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; +import org.openslx.virtualization.Version; +import org.openslx.vm.disk.DiskImage.ImageFormat; + +public class VirtualizationConfigurationVirtualBoxTest +{ + @BeforeAll + public static void setUp() + { + // disable logging with log4j + LogManager.getRootLogger().setLevel( Level.OFF ); + } + + @ParameterizedTest + @DisplayName( "Test version from VM configuration" ) + @MethodSource( "configAndVersionProvider" ) + public void testVirtualizationConfigurationVirtualBoxGetConfigurationVersion( String configFileName, + Version configVersion ) + throws IOException, VirtualizationConfigurationException + { + final File configFile = VirtualizationConfigurationTestResources.getVirtualBoxXmlFile( configFileName ); + final VirtualizationConfigurationVirtualBox vmConfig = new VirtualizationConfigurationVirtualBox( null, + configFile ); + + assertEquals( configVersion, vmConfig.getConfigurationVersion() ); + + assertDoesNotThrow( () -> vmConfig.validate() ); + } + + @ParameterizedTest + @DisplayName( "Test display name from VM configuration" ) + @MethodSource( "configAndVersionProvider" ) + public void testVirtualizationConfigurationVirtualBoxGetDisplayName( String configFileName, Version configVersion ) + throws IOException, VirtualizationConfigurationException + { + final File configFile = VirtualizationConfigurationTestResources.getVirtualBoxXmlFile( configFileName ); + final VirtualizationConfigurationVirtualBox vmConfig = new VirtualizationConfigurationVirtualBox( null, + configFile ); + + final String displayName = vmConfig.getDisplayName(); + + assertEquals( VirtualizationConfigurationVirtualBoxTest.getVmName( configVersion ), displayName ); + + assertDoesNotThrow( () -> vmConfig.validate() ); + } + + @ParameterizedTest + @DisplayName( "Test machine snapshot state from VM configuration" ) + @MethodSource( "configAndVersionProvider" ) + public void testVirtualizationConfigurationVirtualBoxIsMachineSnapshot( String configFileName, + Version configVersion ) + throws IOException, VirtualizationConfigurationException + { + final File configFile = VirtualizationConfigurationTestResources.getVirtualBoxXmlFile( configFileName ); + final VirtualizationConfigurationVirtualBox vmConfig = new VirtualizationConfigurationVirtualBox( null, + configFile ); + + final boolean isVmSnapshot = vmConfig.isMachineSnapshot(); + + assertFalse( isVmSnapshot ); + + assertDoesNotThrow( () -> vmConfig.validate() ); + } + + @ParameterizedTest + @DisplayName( "Test supported image formats from VM configuration" ) + @MethodSource( "configAndVersionProvider" ) + public void testVirtualizationConfigurationVirtualBoxGetSupportedImageFormats( String configFileName, + Version configVersion ) + throws IOException, VirtualizationConfigurationException + { + final File configFile = VirtualizationConfigurationTestResources.getVirtualBoxXmlFile( configFileName ); + final VirtualizationConfigurationVirtualBox vmConfig = new VirtualizationConfigurationVirtualBox( null, + configFile ); + + final List<ImageFormat> supportedImageFormats = vmConfig.getVirtualizer().getSupportedImageFormats(); + + assertNotNull( supportedImageFormats ); + assertEquals( 1, supportedImageFormats.size() ); + assertTrue( supportedImageFormats.containsAll( Arrays.asList( ImageFormat.VDI ) ) ); + + assertDoesNotThrow( () -> vmConfig.validate() ); + } + + @ParameterizedTest + @DisplayName( "Test output of HDDs from VM configuration" ) + @MethodSource( "configAndVersionProvider" ) + public void testVirtualizationConfigurationVirtualBoxGetHdds( String configFileName, Version configVersion ) + throws IOException, VirtualizationConfigurationException + { + final File configFile = VirtualizationConfigurationTestResources.getVirtualBoxXmlFile( configFileName ); + final VirtualizationConfigurationVirtualBox vmConfig = new VirtualizationConfigurationVirtualBox( null, + configFile ); + + final List<VirtualizationConfiguration.HardDisk> hdds = vmConfig.getHdds(); + + final String imageFileName = VirtualizationConfigurationVirtualBoxTest.getVmName( configVersion ) + ".vdi"; + + assertNotNull( hdds ); + assertEquals( 1, hdds.size() ); + assertEquals( imageFileName, hdds.get( 0 ).diskImage ); + + assertDoesNotThrow( () -> vmConfig.validate() ); + } + + static String getVmName( Version version ) + { + return "ubuntu_" + version.toString().replace( '.', '-' ); + } + + static Stream<Arguments> configAndVersionProvider() + { + return Stream.of( + arguments( "virtualbox_default-ubuntu_v1-15.vbox", + new Version( Short.valueOf( "1" ), Short.valueOf( "15" ) ) ), + arguments( "virtualbox_default-ubuntu_v1-16.vbox", + new Version( Short.valueOf( "1" ), Short.valueOf( "16" ) ) ), + arguments( "virtualbox_default-ubuntu_v1-17.vbox", + new Version( Short.valueOf( "1" ), Short.valueOf( "17" ) ) ), + arguments( "virtualbox_default-ubuntu_v1-18.vbox", + new Version( Short.valueOf( "1" ), Short.valueOf( "18" ) ) ) ); + } +} diff --git a/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-15.vbox b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-15.vbox new file mode 100644 index 0000000..5e04478 --- /dev/null +++ b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-15.vbox @@ -0,0 +1,155 @@ +<?xml version="1.0"?> +<!-- +** DO NOT EDIT THIS FILE. +** If you make changes to this file while any VirtualBox related application +** is running, your changes will be overwritten later, without taking effect. +** Use VBoxManage or the VirtualBox Manager GUI to make changes. +--> +<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.15-linux"> + <Machine uuid="{7d500a79-35d6-4697-8946-54c56f32e49b}" name="ubuntu_1-15" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2021-05-10T07:38:05Z"> + <MediaRegistry> + <HardDisks> + <HardDisk uuid="{bc9c4416-33a0-4fd1-a950-cb9e02a2a84f}" location="ubuntu_1-15.vdi" format="VDI" type="Normal"/> + </HardDisks> + <DVDImages/> + <FloppyImages/> + </MediaRegistry> + <ExtraData> + <ExtraDataItem name="GUI/FirstRun" value="yes"/> + </ExtraData> + <Hardware version="2"> + <CPU count="1" hotplug="false"> + <HardwareVirtEx enabled="true"/> + <HardwareVirtExNestedPaging enabled="true"/> + <HardwareVirtExVPID enabled="true"/> + <HardwareVirtExUX enabled="true"/> + <PAE enabled="false"/> + <LongMode enabled="true"/> + <HardwareVirtExLargePages enabled="false"/> + <HardwareVirtForce enabled="false"/> + </CPU> + <Memory RAMSize="1024" PageFusion="false"/> + <HID Pointing="USBTablet" Keyboard="PS2Keyboard"/> + <HPET enabled="false"/> + <Chipset type="PIIX3"/> + <Paravirt provider="Default"/> + <Boot> + <Order position="1" device="Floppy"/> + <Order position="2" device="DVD"/> + <Order position="3" device="HardDisk"/> + <Order position="4" device="None"/> + </Boot> + <Display VRAMSize="12" monitorCount="1" accelerate3D="false" accelerate2DVideo="false"/> + <VideoCapture enabled="false" screens="18446744073709551615" horzRes="1024" vertRes="768" rate="512" fps="25" maxTime="0" maxSize="0"/> + <RemoteDisplay enabled="false" authType="Null"/> + <BIOS> + <ACPI enabled="true"/> + <IOAPIC enabled="true"/> + <Logo fadeIn="true" fadeOut="true" displayTime="0"/> + <BootMenu mode="MessageAndMenu"/> + <TimeOffset value="0"/> + <PXEDebug enabled="false"/> + </BIOS> + <USB> + <Controllers> + <Controller name="OHCI" type="OHCI"/> + </Controllers> + <DeviceFilters/> + </USB> + <Network> + <Adapter slot="0" enabled="true" MACAddress="080027461BE8" cable="true" speed="0" type="82540EM"> + <DisabledModes/> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </Adapter> + <Adapter slot="1" enabled="false" MACAddress="080027F936E4" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="2" enabled="false" MACAddress="080027C9EA98" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="3" enabled="false" MACAddress="0800278F1EC6" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="4" enabled="false" MACAddress="0800277492A6" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="5" enabled="false" MACAddress="080027D0C026" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="6" enabled="false" MACAddress="0800275202D0" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + <Adapter slot="7" enabled="false" MACAddress="080027F02CB2" cable="true" speed="0" type="82540EM"> + <DisabledModes> + <NAT> + <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> + <Alias logging="false" proxy-only="false" use-same-ports="false"/> + </NAT> + </DisabledModes> + </Adapter> + </Network> + <UART/> + <LPT/> + <AudioAdapter controller="AC97" codec="AD1980" driver="Pulse" enabled="true"/> + <RTC localOrUTC="UTC"/> + <SharedFolders/> + <Clipboard mode="Disabled"/> + <DragAndDrop mode="Disabled"/> + <IO> + <IoCache enabled="true" size="5"/> + <BandwidthGroups/> + </IO> + <HostPci> + <Devices/> + </HostPci> + <EmulatedUSB> + <CardReader enabled="false"/> + </EmulatedUSB> + <Guest memoryBalloonSize="0"/> + <GuestProperties/> + </Hardware> + <StorageControllers> + <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"> + <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/> + </StorageController> + <StorageController name="SATA" type="AHCI" PortCount="1" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"> + <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0"> + <Image uuid="{bc9c4416-33a0-4fd1-a950-cb9e02a2a84f}"/> + </AttachedDevice> + </StorageController> + </StorageControllers> + </Machine> +</VirtualBox> diff --git a/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-16.vbox b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-16.vbox new file mode 100644 index 0000000..04213e8 --- /dev/null +++ b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-16.vbox @@ -0,0 +1,59 @@ +<?xml version="1.0"?> +<!-- +** DO NOT EDIT THIS FILE. +** If you make changes to this file while any VirtualBox related application +** is running, your changes will be overwritten later, without taking effect. +** Use VBoxManage or the VirtualBox Manager GUI to make changes. +--> +<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-linux"> + <Machine uuid="{0365b69f-e306-4c9f-9330-2fa30c104284}" name="ubuntu_1-16" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2021-05-06T11:31:10Z"> + <MediaRegistry> + <HardDisks> + <HardDisk uuid="{c4d2c45a-38b9-46aa-8c02-b843a9b2e584}" location="ubuntu_1-16.vdi" format="VDI" type="Normal"/> + </HardDisks> + </MediaRegistry> + <ExtraData> + <ExtraDataItem name="GUI/FirstRun" value="yes"/> + </ExtraData> + <Hardware> + <CPU> + <PAE enabled="false"/> + <LongMode enabled="true"/> + <X2APIC enabled="true"/> + <HardwareVirtExLargePages enabled="false"/> + </CPU> + <Memory RAMSize="1024"/> + <HID Pointing="USBTablet"/> + <Paravirt provider="KVM"/> + <Display controller="VMSVGA" VRAMSize="16"/> + <VideoCapture file="." fps="25"/> + <BIOS> + <IOAPIC enabled="true"/> + <SmbiosUuidLittleEndian enabled="true"/> + </BIOS> + <USB> + <Controllers> + <Controller name="OHCI" type="OHCI"/> + </Controllers> + </USB> + <Network> + <Adapter slot="0" enabled="true" MACAddress="080027197AB1" type="82540EM"> + <NAT/> + </Adapter> + </Network> + <AudioAdapter codec="AD1980" driver="Pulse" enabled="true" enabledIn="false"/> + <RTC localOrUTC="UTC"/> + <Clipboard/> + </Hardware> + <StorageControllers> + <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"> + <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/> + </StorageController> + <StorageController name="SATA" type="AHCI" PortCount="1" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"> + <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0"> + <Image uuid="{c4d2c45a-38b9-46aa-8c02-b843a9b2e584}"/> + </AttachedDevice> + </StorageController> + </StorageControllers> + </Machine> +</VirtualBox> diff --git a/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-17.vbox b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-17.vbox new file mode 100644 index 0000000..d9218ab --- /dev/null +++ b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-17.vbox @@ -0,0 +1,59 @@ +<?xml version="1.0"?> +<!-- +** DO NOT EDIT THIS FILE. +** If you make changes to this file while any VirtualBox related application +** is running, your changes will be overwritten later, without taking effect. +** Use VBoxManage or the VirtualBox Manager GUI to make changes. +--> +<VirtualBox xmlns="http://www.virtualbox.org/" version="1.17-linux"> + <Machine uuid="{faa9db88-8476-4f5b-a385-21a90767c5ad}" name="ubuntu_1-17" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2021-05-06T11:27:05Z"> + <MediaRegistry> + <HardDisks> + <HardDisk uuid="{3777e167-c8ec-4084-b0fc-2325824a7660}" location="ubuntu_1-17.vdi" format="VDI" type="Normal"/> + </HardDisks> + </MediaRegistry> + <ExtraData> + <ExtraDataItem name="GUI/FirstRun" value="yes"/> + </ExtraData> + <Hardware> + <CPU> + <PAE enabled="false"/> + <NestedHWVirt enabled="true"/> + <LongMode enabled="true"/> + <X2APIC enabled="true"/> + <HardwareVirtExLargePages enabled="false"/> + </CPU> + <Memory RAMSize="1024"/> + <HID Pointing="USBTablet"/> + <Display controller="VMSVGA" VRAMSize="16"/> + <VideoCapture file="." fps="25"/> + <BIOS> + <IOAPIC enabled="true"/> + <SmbiosUuidLittleEndian enabled="true"/> + </BIOS> + <USB> + <Controllers> + <Controller name="OHCI" type="OHCI"/> + </Controllers> + </USB> + <Network> + <Adapter slot="0" enabled="true" MACAddress="080027BBAEF6" type="82540EM"> + <NAT/> + </Adapter> + </Network> + <AudioAdapter codec="AD1980" driver="Pulse" enabled="true" enabledOut="true"/> + <RTC localOrUTC="UTC"/> + <Clipboard/> + <StorageControllers> + <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"> + <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/> + </StorageController> + <StorageController name="SATA" type="AHCI" PortCount="1" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"> + <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0"> + <Image uuid="{3777e167-c8ec-4084-b0fc-2325824a7660}"/> + </AttachedDevice> + </StorageController> + </StorageControllers> + </Hardware> + </Machine> +</VirtualBox> diff --git a/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-18.vbox b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-18.vbox new file mode 100644 index 0000000..6d70339 --- /dev/null +++ b/src/test/resources/virtualbox/xml/virtualbox_default-ubuntu_v1-18.vbox @@ -0,0 +1,56 @@ +<?xml version="1.0"?> +<!-- +** DO NOT EDIT THIS FILE. +** If you make changes to this file while any VirtualBox related application +** is running, your changes will be overwritten later, without taking effect. +** Use VBoxManage or the VirtualBox Manager GUI to make changes. +--> +<VirtualBox xmlns="http://www.virtualbox.org/" version="1.18-linux"> + <Machine uuid="{3ef92a60-062e-4ada-94e3-827f09bcf318}" name="ubuntu_1-18" OSType="Ubuntu_64" snapshotFolder="Snapshots" lastStateChange="2021-05-06T11:24:30Z"> + <MediaRegistry> + <HardDisks> + <HardDisk uuid="{fac02189-02c8-4673-a11c-78d4ac111850}" location="ubuntu_1-18.vdi" format="VDI" type="Normal"/> + </HardDisks> + </MediaRegistry> + <Hardware> + <CPU> + <PAE enabled="false"/> + <LongMode enabled="true"/> + <X2APIC enabled="true"/> + <HardwareVirtExLargePages enabled="false"/> + </CPU> + <Memory RAMSize="1024"/> + <HID Pointing="USBTablet"/> + <Display controller="VMSVGA" VRAMSize="16"/> + <VideoCapture file="." fps="25"/> + <BIOS> + <IOAPIC enabled="true"/> + <SmbiosUuidLittleEndian enabled="true"/> + </BIOS> + <USB> + <Controllers> + <Controller name="OHCI" type="OHCI"/> + </Controllers> + </USB> + <Network> + <Adapter slot="0" enabled="true" MACAddress="08002780D6EF" type="82540EM"> + <NAT/> + </Adapter> + </Network> + <AudioAdapter codec="AD1980" driver="Pulse" enabled="true" enabledOut="true"/> + <RTC localOrUTC="UTC"/> + <Clipboard/> + <GuestProperties> + <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1620300317680387000" flags=""/> + </GuestProperties> + <StorageControllers> + <StorageController name="SATA" type="AHCI" PortCount="1" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"> + <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0"> + <Image uuid="{fac02189-02c8-4673-a11c-78d4ac111850}"/> + </AttachedDevice> + </StorageController> + <StorageController name="IDE" type="VirtioSCSI" PortCount="1" useHostIOCache="false" Bootable="true"/> + </StorageControllers> + </Hardware> + </Machine> +</VirtualBox> |