鲲鹏BoostKit
针对此限制,我们提供了快速的禁用SELinux的方法。鲲鹏BoostKit虚拟化使能套件中,提供的SELinux配置方法仅供参考,需用户自行评估并承担相应风险。
禁用SELinux可能会导致安全问题,如果客户最终的解决方案本身就没有规划启用SELinux,建议通过端到端的整体方案来弥补SELinux关闭带来的风险,且需自行承担安全风险。如果客户有SELinux的需求,建议根据实际的SELinux问题进行细粒度的规则配置,并保证整个系统的安全。
1 2 |
systemctl stop firewalld.service systemctl disable firewalld.service |
1
|
cat /proc/meminfo |grep -i huge |
1
|
vim /boot/efi/EFI/openEuler/grub.cfg
|
default_hugepagesz=512M hugepagesz=512M hugepages=128 iommu.passthrough=1
1
|
vim /etc/fstab
|
1
|
nodev /mnt/huge hugetlbfs defaults 0 0 |
1
|
mkdir -p /mnt/huge |
reboot
具体请参见《TaiShan 服务器 BIOS 参数参考(鲲鹏920处理器)》中“进入BIOS界面”的相关内容。
1 2 |
mkdir -p /mnt/repo mount -o loop /home/software/openEuler-20.03-LTS-everything-aarch64-dvd.iso /mnt/repo/ |
1 2 3 4 |
cd /etc/yum.repos.d mkdir backup mv *.repo backup vim /etc/yum.repos.d/local.repo |
[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/development/rawhide/Everything/aarch64/os enabled=1 gpgcheck=0 priority=2
1
|
yum clean all&&yum makecache |
yum install -y numactl numactl-devel openssl-devel libcap-ng-devel qemu-guest-agent qemu* libvirt* traceroute iperf3 virt-install edk2-aarch64 python2-paramiko
vim /etc/libvirt/qemu.conf
#user = "root" #group = "root"
修改为:
user = "root" group = "root"
systemctl restart libvirtd