VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/utils/TestExecServ/vboxtxs-readme.txt@ 96398

Last change on this file since 96398 was 96398, checked in by vboxsync, 2 years ago

ValidationKit: Make it clear that a secure password should be used. Hopefully this will end the reports that we're exposing (or recommending) insecure default passwords.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1$Id: vboxtxs-readme.txt 96398 2022-08-22 14:22:34Z vboxsync $
2
3
4VirtualBox Test eXecution Service
5=================================
6
7This readme briefly describes how to install the Test eXecution Service (TXS)
8on the various systems.
9
10There are currently two transport options for the TXS:
11
12 - The default is to use it in TCP server mode, i.e. the test script needs
13 to know the guest's IP and therefore requires guest additions to be
14 installed as well. (Please use the latest stable additions compatible with
15 the VBox host versions you intend to test.)
16
17 - The alternative is for NATted setups where TXS will act like a TCP client
18 and try connect to the test script on the host. Since this require that
19 TXS knows which IP to connect to, it's only really possible in a NATted
20 setup where we know the host IP is 10.0.2.2.
21
22Since r85596 TXS operates in both modes by default so the nat version of
23the init scripts is not required anymore. Instead the other type can be installed
24for both cases.
25
26Linux Installation
27------------------
28
291. mkdir -p /opt/validationkit
302. scp/download VBoxValidationKit*.zip there.
313. unzip VBoxValidationKit*.zip
324. chmod -R u+w,a+x /opt/validationkit/ && chown -R root.root /opt/
335. cd /etc/init.d/
34
356 a) For init.rc distros:
36 Link up the right init script (see connection type above):
37 nat) ln -s ../../opt/validationkit/linux/vboxtxs-nat ./vboxtxs
38 other) ln -s ../../opt/validationkit/linux/vboxtxs ./vboxtxs
396 b) Add vboxtxs to runlevels 2, 3, 5 and any other that makes sense
40 on the distro. There is usually some command for doing this, e.g.
41 ```update-rc.d vboxtxs defaults && update-rc.d vboxtxs enable``` (Debian-based)
42 or
43 ```chkconfig --add vboxtxs``` (OL/RHEL)
44
45 ... or ...
46
477 a) For systemd distros: Link/copy up the vboxtxs.system to [/usr]/lib/systemd/, e.g.
48 cp /opt/validationkit/linux/vboxtxs.service /etc/systemd/system
49 b) Enable the vboxtxs service via:
50 systemctl enable vboxtxs
51
52 For all distros again:
53
548a. Check the CD-ROM location (--cdrom <path>) in vboxtxs and fix it so it's correct, make sure
55 to update in svn as well.
568b. Optional: If no suitable CD-ROM location is available on the guest yet, do a:
57 mkdir -p /media/cdrom; vi /etc/fstab
58 and enter this in /etc/fstab:
59 /dev/sr0<tab>/media/cdrom<tab>udf,iso9660<tab>user,noauto,exec,utf8<tab>0<tab>0
608c. Optional: If SELinux denies execution of TXS, make sure to allow this, based on
61 how the distribution handles SELinux exceptions. Often there even is a GUI for that
62 (e.g. Oracle Linux 8+).
639. Make sure that the package sources are still valid and up to date (apt / yum / ++)
6410. reboot / done.
6511. Do test.
66
67
68OS/2 Installation
69--------------------
70
711. Start an "OS/2 Window" ("OS/2 System" -> "Command Prompts")
722. md C:\Apps
733. cd C:\Apps
744. Mount the validationkit iso.
755. copy D:\os2\x86\* C:\Apps
765. copy D:\os2\x86\libc*.dll C:\OS2\DLL\
776. Open C:\startup.cmd in an editor (tedit.exe for instance or e.exe).
787. Add the line "start /C C:\Apps\TestExecService.exe --foreground" at the top of the file.
798. reboot / done
809. Do test.
81
82
83Solaris Installation
84--------------------
85
861. Start the guest and open a root console.
872. mkdir -p /opt/VBoxTest
883. cd /opt/VBoxTest
894. scp/download VBoxValidationKit*.zip there.
905. unzip VBoxValidationKit*.zip
916. chmod -R u+w,a+x /opt/VBoxTest/
927. Import the right service setup depending on the Solaris version:
93 <= 10u9) /usr/sbin/svccfg import /opt/VBoxTest/validationkit/solaris/vboxtxs-sol10.xml
94 >= 11.0) /usr/sbin/svccfg import /opt/VBoxTest/validationkit/solaris/vboxtxs.xml
958. /usr/sbin/svcadm enable svc:/system/virtualbox/vboxtxs
969. reboot / done.
97
98To remove the service before repeating steps 7 & 8:
991. /usr/sbin/svcadm disable -s svc:/system/virtualbox/vboxtxs:default
1002. /usr/sbin/svccfg delete svc:/system/virtualbox/vboxtxs:default
101
102Note. To configure dhcp for more a new interface the files
103/etc/hostname.<if#X> and /etc/dhcp.<ifnm#> have to exist. If you want the VM
104to work with any network card you throw at it, create /etc/*.pcn[01] and
105/etc/*.e1000g[012] as Solaris will remember it has seen the other variants
106before and use a different instance number (or something to that effect).
107
108
109Windows Installation
110--------------------
111
1121. Log on as Administrator.
1132. Make sure you have set a secure password, which you'll need in step 9.
1143. Start CMD.EXE or equivalent.
1154. md C:\Apps
1165. cd C:\Apps
1176. Mount the validationkit iso.
1187. copy D:\win\* C:\Apps
1198. copy D:\win\<x86 or amd64>\* C:\Apps
1209. Put the password from step 2 into the right service setup (see connection
121 type above) and import it into the registry:
122 nat) start C:\Apps\vboxtxs-nat.reg
123 other) start C:\Apps\vboxtxs.reg
12410. Make sure that the CD-ROM location is assigned to D: (via "Disk Management").
12511. reboot / done
12612. Do test.
127
128NT 3.1 and 3.x tricks:
129- Make sure the file system is NTFS. Observed issues converting 2GB partitions,
130 more success with smaller.
131- For NT3.1 PCNET drivers can be found on the net. No DHCP, so NAT only with
132 IP 10.0.2.15, 10.0.2.2 as gateway, and 10.0.2.3 as DNS with --natdnsproxy1 on.
133- On NT3.1 you need to add SystemDrive=C: to the environment.
134- Need to perform registry edits manually.
135- Use startup folder instead of non-exising Windows/Run key.
136
137
138Testing the setup
139-----------------
140
1411. Make sure the validationkit.iso is inserted.
1422. Boot / reboot the guest.
1433. Depending on the TXS transport options:
144 nat) python testdriver/tst-txsclient.py --reversed-setup
145 other) python testdriver/tst-txsclient.py --hostname <guest-ip>
Note: See TracBrowser for help on using the repository browser.

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