Daniel Caires d3f4d23f59 Changes to make AIO-DX setup work
-Minimal changes so the script works for the
installation of a AIO-DX setup type.
-Addition of a lab_setup2 for the configuration
of the controller-1.
-Change of serial port configuration so VMs can boot
without the need of a socat connection.

Regression: AIO-SX successfully provisioned using
modified code.

Test Plan:
PASS: StarlingX is succesful deployed in a AIO Duplex
configuration.
PASS: Both controllers are set with TCP as Port Mode
in serial ports configuration.

Story: 2005051
Task: 48261
Task: 48275

Change-Id: I5fd5c6d413270867424a30768b0ad7ff91d296b8
Signed-off-by: Daniel Caires <daniel.caires@encora.com>
2023-07-20 14:15:40 -03:00

22 lines
507 B
Python

#!/usr/bin/python3
#
# SPDX-License-Identifier: Apache-2.0
#
"""
This module contains a class named Lab and some supporting code.
The Lab class represents a virtual lab and has a dictionary attribute VBOX
containing information about the virtual machines in the lab.
"""
import getpass
from sys import platform
import os
user = getpass.getuser()
if platform in ("win32", "win64"):
LOGPATH = "C:\\Temp\\pybox_logs"
else:
homedir = os.environ["HOME"]
LOGPATH = f"{homedir}/vbox_installer_logs"