The execution of the glance commands require you to be on a system that have the python-glance package installed
Navigate to the folder where your VMs are located and execute the following commands:
- $ cp your_vm_image.vhd image.vhd
- $ tar -czf image.vhd.gz image.vhd
- Import the VHD into Glance:
- Windows Base VM
- $ glance add name=“My VHD image” is_public=True disk_format=vhd container_format=ovf vm_mode=hvm image_state=available architecture=x86_64 < image.vhd.gz
- Linux VM
- $ glance add name=“My VHD image” is_public=True disk_format=vhd container_format=ovf vm_mode=xen image_state=available architecture=x86_64 < image.vhd.gz
- Windows Base VM
- $ glance image-list