我要评分
获取效率
正确性
完整性
易理解

openEuler 20.03

Disabling the Firewall and SELinux

  1. Open the /etc/selinux/config file and change SELINUX=enforcing to SELINUX=disabled.
  2. Stop and disable the firewall:
    1
    2
    systemctl stop firewalld.service
    systemctl disable firewalld.service
    

Configuring Huge Pages and Enabling IOMMU

  1. Check whether huge pages have been developed.
    1
    cat /proc/meminfo |grep -i huge
    

    If the values of HugePages_Total and Hugepagesize are greater than 0, huge pages have been configured and do not need to be configured again. Ensure that the size of a huge page is greater than 5 GB. Otherwise, go to step 2.

  2. (Optional) Modify the startup settings and edit the /boot/efi/EFI/openEuler/grub.cfg file.
    1
    vi /boot/efi/EFI/openEuler/grub.cfg
    
    1. In startup item menuentry, add huge page items and perform the following configuration:
      default_hugepagesz=512M hugepagesz=512M hugepages=128 iommu.passthrough=1

    2. Modify the /etc/fstab file to mount huge pages upon system startup.
      1
      vim /etc/fstab
      

      Add the following content to the file:

      1
      nodev /mnt/huge hugetlbfs defaults 0 0
      
    3. Create an /mnt/huge directory.
      1
      mkdir -p /mnt/huge
      
    4. Restart the server for huge pages to take effect.
    5. Enable SMMU.

      Restart the server, go to the BIOS, and check that SMMU is enabled.

Configuring the Yum Source

  1. Mount an image.
    1
    2
    mkdir -p /mnt/repo
    mount -o loop /home/software/openEuler-20.03-LTS-everything-aarch64-dvd.iso /mnt/repo/
    
  2. Configure the Yum source.
    1
    2
    3
    4
    cd /etc/yum.repos.d
    mkdir backup
    mv *.repo backup
    vim /etc/yum.repos.d/local.repo
    
    Add the following content to the file:
    [local]
    name=local
    baseurl=file:///mnt/repo
    enable=1
    gpgcheck=0
    priority=1
    
    [arch_fedora_online]
    name=arch_fedora
    baseurl=https://mirrors.huaweicloud.com/fedora/releases/30/Everything/aarch64/os/
    enabled=1
    gpgcheck=0
    priority=2
  3. Make the Yum source configuration take effect.
    1
    yum clean all&&yum makecache
    

Installing Dependencies

  1. Install the dependencies.
    yum install -y numactl numactl-devel openssl-devel libcap-ng-devel qemu-guest-agent qemu* libvirt* traceroute iperf3 virt-install AAVMF python2-paramiko

    Some of the preceding software packages need to be downloaded from the Internet. Ensure that the server is connected to the Internet and the corresponding sources are configured.

  2. Modify the /etc/libvirt/qemu.conf file.
    Change the current commands:
    #user = "root"
    #group = "root"

    To:

    user = "root"
    group = "root"
  3. Restart the libvirt service.
    systemctl restart libvirtd