VirtualBox

Ignore:
Timestamp:
Jul 20, 2019 3:56:15 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132316
Message:

ValKit: Use IDHCPServer::findLeaseByMAC to resolve VM IP addresses when using host-only networking. This enables us to do unattended ubuntu installs w/o GAs. Reenabled newer ubuntu tests where GAs doesn't quite install yet, adding 19.04. bugref:9151

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsUnattendedInst1.py

    r79475 r79908  
    6161    ## @name VM option flags (OR together).
    6262    ## @{
    63     kfUbuntuAvx2Crash       = 0x0001; ## < Disables AVX2 as ubuntu 16.04 think it means AVX512 is available and compiz crashes.
     63    kfUbuntuAvx2Crash       = 0x0001; ##< Disables AVX2 as ubuntu 16.04 think it means AVX512 is available and compiz crashes.
     64    kfNoGAs                 = 0x0002; ##< No guest additions installation possible.
    6465    kfIdeIrqDelay           = 0x1000;
    6566    kfUbuntuNewAmdBug       = 0x2000;
     
    113114        #
    114115        if self.fOptInstallAdditions:
    115             try:    oIUnattended.installGuestAdditions = True;
    116             except: return reporter.errorXcpt();
    117             try:    oIUnattended.additionsIsoPath      = oTestDrv.getGuestAdditionsIso();
    118             except: return reporter.errorXcpt();
    119             oTestDrv.processPendingEvents();
     116            if (self.fInstVmFlags & self.kfNoGAs) == 0:
     117                try:    oIUnattended.installGuestAdditions = True;
     118                except: return reporter.errorXcpt();
     119                try:    oIUnattended.additionsIsoPath      = oTestDrv.getGuestAdditionsIso();
     120                except: return reporter.errorXcpt();
     121                oTestDrv.processPendingEvents();
     122            else:
     123                reporter.log("Warning! Ignoring request to install Guest Additions as kfNoGAs is set!");
    120124
    121125        return True;
     
    405409            ## @todo ubuntu 17.10, 18.04 & 18.10 do not work.  They misses all the the build tools (make, gcc, perl, ++)
    406410            ##       and has signed kmods:
    407             ## @todo Mark these as no-install-additions for the time being?
    408             #UnattendedVm(oSet, 'tst-ubuntu-17.10-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-17.10-desktop-amd64.iso'), # >4.0Gib
    409             #UnattendedVm(oSet, 'tst-ubuntu-18.04-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-18.04-desktop-amd64.iso'), # >5.7GiB
    410             #UnattendedVm(oSet, 'tst-ubuntu-18.10-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-18.10-desktop-amd64.iso'),
     411            UnattendedVm(oSet, 'tst-ubuntu-17.10-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-17.10-desktop-amd64.iso', # >4.0Gib
     412                         UnattendedVm.kfNoGAs),
     413            UnattendedVm(oSet, 'tst-ubuntu-18.04-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-18.04-desktop-amd64.iso', # >5.7GiB
     414                         UnattendedVm.kfNoGAs),
     415            # 18.10 hangs reading install DVD during "starting partitioner..."
     416            #UnattendedVm(oSet, 'tst-ubuntu-18.10-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-18.10-desktop-amd64.iso',
     417            #             UnattendedVm.kfNoGAs),
     418            UnattendedVm(oSet, 'tst-ubuntu-19.04-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-19.04-desktop-amd64.iso', # >5.6GiB
     419                         UnattendedVm.kfNoGAs),
    411420        ]);
    412421        self.oTestVmSet = oSet;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette