• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Preparing the Environment

Preparing the Environment

  • Obtain a Linux physical server or virtual machine used for creating the image (this is the host), and install Linux on the host.

    You must select Server with GUI and a virtualization environment during the OS installation. The following figures show the window for installing CentOS 7.3 64-bit.

    Select Server with GUIFTP ServerVirtualization ClientVirtualization Hypervisor, and Virtualization Tools.

    When creating an ARM 64 image, you are advised to install Ubuntu 16.04 Server-arm64 and select HWE kernel shown in the following figure.

    After the host OS is installed, run the following command to install the ubuntu desktop and virtualization software, and restart the OS to make the installation take effect:

    sudo apt-get update

    sudo apt-get dist-upgrade

    sudo apt-get install ubuntu-desktop

    sudo apt-get install qemu

    sudo apt-get install qemu-kvm

    sudo apt-get install libvirt0

    sudo apt-get install virt-manager

    sudo apt-get install qemu-efi

  • Configure the host network and remote connection.
    1. The host must connect to the Internet so that you can install software online on VMs through the host.
    2. To connect to the host from a Windows PC, configure the remote connection.
  • Enable the vsftpd, sshd, and VNC services and configure the services. For details, see chapter Configuring the SSH ServiceConfiguring the vsftpd Service and Configuring the VNC Service.

    This enables you to remotely transmit software packages, ISO image files, and scripts to the host, and remotely connect to the host.

  • For CentOS 7.x, run the following commands to disable the firewall so that you can log in to the host using VNC Viewer:

    systemctl disable firewalld.service

    systemctl stop firewalld.service

  • Upload required files to the host.

    After the configuration is complete, use the vsftp service to upload the files required by VMs to the host. After this, the host environment configuration is complete. If you use Xftp to upload the files, click the icon shown in the red box in the following figure after you log in to the host through Xshell using SSH.