centos7系统使用新的接口命名方式,在安装openstack前需要修改接口名称
修改接口名称:
(To restore the old naming convention, you need to edit the /etc/default/grub file and add net.ifnames=0 biosdevname=0 at the end of the GRUB_CMDLINE_LINUX variable:)
/etc/default/grub
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.keymap=us crashkernel=auto rd.lvm.lv=centos/root vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0"
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-123.9.3.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-123.9.3.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-eda26f60d4c948d09cd50d9086a87fcc
Found initrd image: /boot/initramfs-0-rescue-eda26f60d4c948d09cd50d9086a87fcc.img
done
Update the network interface configuration file (here the initial interface name was enp2s0 and the new one is eth0):
3、关闭系统NetworkManager(In case your system is running with NetworkManager, you need to disable it.)
#systemctl stop NetworkManager
#systemctl disable NetworkManager
#systemctl enable network
Packstack takes the work out of manually setting up OpenStack. For a single node OpenStack deployment, run the following command.
#packstack --allinone