RH2288 V3通过华为kvm安装系统
账号密码:
root
Huawei12#$
连接镜像:
稍等一会···
步骤:
【Ctrl + r】
【F2:选项】——> 清除
创建raid1:
【初始化一下】
有两个 UG,,要变成直连 JBOD
【Ctrl + n:翻页】
【ctrl + n】
【Ctrl + s 保存下】
重启
设置:
注:安装openstack8重启时,这个问题注意关闭电源重启
网络配置脚本
#!/bin/sh
yum -y install libaio.x86_64 libpciaccess.x86_64 lsscsi.x86_64 lvm2.x86_64
sleep 1
yum -y install ipmitool
modprobe ipmi_si
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i 's/dhcp/none/g' /etc/sysconfig/network-scripts/ifcfg-bond0
ipadd=$(ipmitool -I open lan print | grep 'IP Address' | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
ip=${ipadd##*.}
echo "IPADDR=10.2.36.${ip}" >> /etc/sysconfig/network-scripts/ifcfg-bond0
echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/ifcfg-bond0
echo "GATEWAY=10.2.36.254" >> /etc/sysconfig/network-scripts/ifcfg-bond0
echo "DNS1=114.114.114.114" >> /etc/sysconfig/network-scripts/ifcfg-bond0
cat > /etc/sysconfig/network-scripts/ifcfg-bond1 << EOF
TYPE=Bond
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=bond1
DEVICE=bond1
ONBOOT=yes
BONDING_MASTER=yes
BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 miimon=100"
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp2s0f1 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp2s0f1
DEVICE=enp2s0f1
ONBOOT=yes
MASTER=bond1
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp131s0f1 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp131s0f1
DEVICE=enp131s0f1
ONBOOT=yes
MASTER=bond1
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-bond2 << EOF
TYPE=Bond
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=bond2
DEVICE=bond2
ONBOOT=yes
BONDING_MASTER=yes
BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 miimon=100"
IPADDR=10.2.11.${ip}
PREFIX=24
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp129s0f0 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp129s0f0
DEVICE=enp129s0f0
ONBOOT=yes
MASTER=bond2
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp129s0f2 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp129s0f2
DEVICE=enp129s0f2
ONBOOT=yes
MASTER=bond2
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-bond3 << EOF
TYPE=Bond
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=bond3
DEVICE=bond3
ONBOOT=yes
BONDING_MASTER=yes
BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 miimon=100"
IPADDR=10.2.12.${ip}
PREFIX=24
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp129s0f1 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp129s0f1
DEVICE=enp129s0f1
ONBOOT=yes
MASTER=bond3
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp129s0f3 << EOF
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
NAME=enp129s0f3
DEVICE=enp129s0f3
ONBOOT=yes
MASTER=bond3
SLAVE=yes
EOF
ip addr flush bond0
systemctl restart NetworkManager
ifdown bond0
ifup bond0
nmcli con up bond1
nmcli con up bond2
nmcli con up bond3
nmcli con up enp2s0f1
nmcli con up enp131s0f1
nmcli con up enp129s0f0
nmcli con up enp129s0f1
nmcli con up enp129s0f2
nmcli con up enp129s0f3