Procedure

  1. Open a Terminal window and perform the following tasks:
    Task
    Steps
    Verify that the network interface is able to get an IP address and connect to the network
    • For CentOS and RHEL, type nmcli to check the network interface status.
    • For Ubunut, type ip addr to check if the network interface is able to get an IP address.
    Note
    Note
    If the network interface is disconnected, type ifup "<network interface name>" to connect the network interface.
    Verify that the network interface is enabled on boot
    For CentOS, edit the network interface configuration file /etc/sysconf ig/network-scripts/ifcfg-<network interface name>, and modify the following line:
    ONBOOT=yes
    Verfiy that the sshd is installed and running with configured settings
    Type the following commands:
    1. For Ubuntu 20.04.6, type sudo apt install -y openssh-server to install OpenSSH.
    2. Enable the SSH: systemctl enable sshd
    3. Start the SSH: systemctl start sshd
    4. Verify the SSH status: systemctl status sshd
    5. Open the SSH config file: sudo vi /etc/ssh/shhd_config
    6. Set PermitRootLogin to yes.
    7. Verify Port is configured to 22.
    8. Save changes and restart SSH with the command: systemctl restart sshd
    Verify that the ssh status is active (running)
    Disable SELinux on CentOS and RHEL
    Edit the SELinux configuration file /etc/selinux/config, and modify the following line:
    SELINUX=disabled
    Verify that all required packages are installed
    Use Virtual Analyzer Image Preparation Tool to automatically install missing packages or manually install them.
    For details, see Required Software.
    For RHEL 7.9 and RHEL 8.3, register system
    Registration is required to enable automatic installation of missing packages. Refer to documentation provided by Red Hat to complete registration.
    For Unbuntu 20.04.6, set the root account password
    Use the following commands to set the root password:
    1. Type sudo passwd root.
    2. Type 1111 to set the root password to 1111.
    3. Type the password again if prompted.
  2. Restart the virtual machine.