- Install Centos 7, bring it up to date
yum update
- Define two network interfaces ethctrl and ethdata (see wiki how to change names)
- Stop and disable NetworkManager, restart network
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl restart network
- Setup SSH key-based access for user omi and user root!
- On omistack-beta:
- add new host to /etc/hosts
- add new host to CONFIG_COMPUTE_HOSTS in /root/packstack/answer-file.txt make sure to have all other hosts in EXCLUDE_SERVERS
- run packstack
packstack --answer-file=answer-file.txt
Troubleshooting
Live Migration not working
Error message: "ERROR nova.virt.libvirt.driver [...] Live Migration failure: internal error: unable to execute QEMU command 'migrate': this feature or command is not currently supported"
Solution:
Install qemu* from oVirt repositories:
yum install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm
yum update -y qemu-img qemu-kvm qemu-kvm-common
The yum update will replace the packages qemu-img qemu-kvm qemu-kvm-common with the newer versions qemu-kvm-common-ev qemu-img-ev qemu-kvm-ev
Second, nova must be configured correctly to use qemu-kvm for migration directly:
crudini --set /etc/nova/nova.conf libvirt live_migration_flag VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST
crudini --set /etc/nova/nova.conf libvirt block_migration_flag VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_NON_SHARED_INC
After changing the nova configuration file, the nova-compute service must be restarted, e.g. openstack-service openstack-nova-compute restart