How to instantiate a VM using a pre existing virtual harddisk (.qcow2 format) with the help of nova

asked 2015-07-16 05:08:16 -0500

Vinu gravatar image

If I've few virtual hard disks in .qcow2 format which is placed in NFS, how do I instantiate them using nova. Let us say, the compute node is mounted with the NFS path and the .qcow2 image is accessible. My requirement is to bring up hundreds of VMs on a repetitive basis as and when required. By doing the above, I want to avoid creating a VM from scratch all the time. This will help me bring up hundreds of VM on a scale environment faster way. Virtual machine harddisk's will be available from NFS.

edit retag flag offensive close merge delete


if .qcow2 image path is accessible from openstack env, then first upload the image to glance-server then you can create the VM.

Your other requirements are not clear. Try to elaborate what you are trying to achieve

Ranjit gravatar imageRanjit ( 2015-07-17 00:26:24 -0500 )edit

Thanks Ranjit for your response. Let me put my requirements very clear so that I can get the right assistance. - Scale testing is what I'm trying to achieve using openstack. But the test setups would need to be brought up every day or every alternate days in a clean state.

Vinu gravatar imageVinu ( 2015-07-17 01:12:36 -0500 )edit

1) Initially brought up an openstack controller nodes + compute nodes + network nodes. 2) Created networks + subnets + ports. 3) Created VMs on compute nodes using nova boot and port-ids.

Vinu gravatar imageVinu ( 2015-07-17 01:17:12 -0500 )edit

4) For the next testing cycle, I would need to reinstall or re-bring up the compute nodes (only) and get the VMs also back in the same state as how it was earlier. And all these VMs should be in sync with the Openstack controller.

Vinu gravatar imageVinu ( 2015-07-17 01:21:11 -0500 )edit