3 # Copyright (C) 2013 Cisco Systems, Inc.
5 # This program and the accompanying materials are made available under the
6 # terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 # and is available at http://www.eclipse.org/legal/epl-v10.html
9 # Authors : Thomas Bachman
12 # Script for booting VMs onto networks
18 image=cirros-0.3.1-x86_64-uec
21 echo -n "Enter the hypervisor name to use for new instance [$vm]: "
23 if [ "$entry" != "" ]; then
28 echo -n "Enter the name of the network to use for the VM [$net]: "
30 if [ "$entry" != "" ]; then
35 echo -n "Enter the name of the image to use for the VM [$image]: "
37 if [ "$entry" != "" ]; then
41 nova boot --flavor m1.tiny --image $(nova image-list | grep "$image\s" | awk '{print $2}') --nic net-id=$(neutron net-list | grep $net | awk '{print $2}') admin-private --availability_zone=nova:$vm