Atom feed of this document
 

 Advanced VM creation

  • Booting a VM with multiple NICs

    $ nova boot --image <img> --flavor <flavor> \
    --nic net-id=<net1-id> --nic net-id=<net2-id> <vm-name>
  • Booting a VM with a specific IP address. To do this, we need to create a quantum port with a specific IP address first, and then boot a VM specifying a port-id rather than a net-id.

    $ quantum port-create --fixed-ip subnet_id=<subnet-id>,ip_address=192.168.57.101 <net-id>
    nova boot --image <img> --flavor <flavor> --nic port-id=<port-id> <vm-name>
    [Note]Note

    v4-fixed-ip parameter of --nic option in nova command is not supported with Quantum at the moment.

  • booting a VM with no --nic option specified. In this case the launched VM connects to all networks that are accessible to the tenant who submits the request.

    $ nova boot --image <img> --flavor <flavor> <vm-name>



loading table of contents...