blob: c41c5dae8f0460f5facfbaeaadfafa917dcbab29 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
set -e
source ~/devstack/openrc admin admin
nova-manage cell_v2 discover_hosts
nova-manage cell_v2 map_cell_and_hosts
netid=$(openstack network list --name private -f value | cut -f1 -d' ')
openstack server create --flavor 1 --image=cirros-0.3.4-x86_64-uec --nic net-id=$netid vm1
|