While looking at OpenStack as the control plane for vSphere it appears there isn’t too much detail and I found it tricky to create my first OpenStack image.  Here are the steps I followed.

Create vSphere Donor Windows Virtual Machine

  • Use vSphere web client wizard to create new hardware v10 virtual machine in vSphere with Thin vHDD
  • Attach Windows DVD ISO
  • Install Windows to virtual machine
  • Disconnect DVD ISO
  • Install VMware Tools
  • Complete VMware Tools Reboot
  • Power Down VM
  • Export VM as OVF

Create OpenStack Image

  • Open OpenStack Console
  • Change to your Project in left pane
  • Select Manage Compute -> Images & Snapshots
  • Click Create Image
  • Complete form using this as an example,  for Image File,  open the OVF file and select the VMDK you exported earlierOpenStack Image Create
  • Click Create Image
  • Wait while file uploads, it takes a while, you’ll be returned to console when it completes

Note this updates the file to folder glance_openstack on the datastore glance is configured to use. Once created you can cross ref the file UID with the OpenStack Console.

Test OpenStack Image Works As Instance

  • Open OpenStack Console
  • Change to your Project in left pane
  • Select Manage Compute ->Instances
  • Click Launch Instance in right pane
  • Complete Details FormOpenStack Instance Launch
  • Ensure correct Security Group selected on Access & Security Tab
  • Ensure correct Network is selected on Networking tab
  • Click Launch

VSAN Abnomaly

If your Image is to go to a VSAN datastore and your using OpenStack Havana the above method will fail,  this is because VSAN introduces a new disk type streamOptimized which the UI is not aware of (this is fixed in Icehouse and newer UI).

In order to import these images you would need to use the OpenStack command line interface and manually specify the file as streamOptimized.

streamOptimized