VirtualBox

Ignore:
Timestamp:
Jul 1, 2019 4:49:51 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131708
Message:

ValKit/UnattendedInst1,++: Adjustments for ubuntu. bugref:9151

File:
1 edited

Legend:

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

    r79424 r79452  
    185185            return [self.sInstallIso,];
    186186        return [];
     187
     188    def _createVmDoIt(self, oTestDrv, eNic0AttachType, sDvdImage):
     189        #
     190        # Use HostOnly networking for ubuntu and debian VMs to prevent them from
     191        # downloading updates and doing database updates during installation.
     192        # We want predicable results.
     193        #
     194        if     eNic0AttachType is None \
     195          and self.isLinux() \
     196           and (   'ubuntu' in self.sKind.lower()
     197                or 'debian' in self.sKind.lower() ):
     198            eNic0AttachType = vboxcon.NetworkAttachmentType_HostOnly;
     199
     200        return vboxtestvms.BaseTestVm._createVmDoIt(self, oTestDrv, eNic0AttachType, sDvdImage);
     201
    187202
    188203    def _createVmPost(self, oTestDrv, oVM, eNic0AttachType, sDvdImage):
     
    374389        oSet.aoTestVms.extend([
    375390            # Windows7 RTM:
    376             UnattendedVm(oSet, 'tst-w7-32', 'Windows7',     '6.0/uaisos/en_windows_7_enterprise_x86_dvd_x15-70745.iso'),
    377             UnattendedVm(oSet, 'tst-w7-64', 'Windows7_64',  '6.0/uaisos/en_windows_7_enterprise_x64_dvd_x15-70749.iso'),
     391            UnattendedVm(oSet, 'tst-w7-32', 'Windows7',     '6.0/uaisos/en_windows_7_enterprise_x86_dvd_x15-70745.iso'), # 5.7GiB
     392            UnattendedVm(oSet, 'tst-w7-64', 'Windows7_64',  '6.0/uaisos/en_windows_7_enterprise_x64_dvd_x15-70749.iso'), # 10GiB
     393            UnattendedVm(oSet, 'tst-ubuntu-16.04-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-16.04-desktop-amd64.iso'),
     394            #UnattendedVm(oSet, 'tst-ubuntu-18.04-64', 'Ubuntu_64', '6.0/uaisos/ubuntu-18.04-desktop-amd64.iso'), # >=5.7GiB
    378395        ]);
    379396        self.oTestVmSet = oSet;
     
    391408        # Sub-test drivers.
    392409        #
    393         self.addSubTestDriver(SubTstDrvAddSharedFolders1(self, fUseAltFsPerfPathForWindows = True)); # !HACK ALERT! UDF cloning.
     410        self.addSubTestDriver(SubTstDrvAddSharedFolders1(self));
    394411        self.addSubTestDriver(SubTstDrvAddGuestCtrl(self));
    395412
     
    511528        if not self.importVBoxApi(): # So we can use the constant below.
    512529            return False;
    513         return self.oTestVmSet.actionConfig(self, eNic0AttachType = vboxcon.NetworkAttachmentType_NAT);
     530        return self.oTestVmSet.actionConfig(self);
    514531
    515532    def actionExecute(self):
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