Tuesday, January 27, 2015

All possible hardware options for nova

Openstack documentation notes hardware options for images: http://docs.openstack.org/user-guide/content/cli_manage_images.html

But there are only few examples of such options without explicit list. After some googling in bing and duckduckgo I gave up and decided to create my own.

Simple one-liner to find all strings starting with 'hw_' in Nova repo:
 

$ egrep [\'\"]hw_[a-zA-Z_0-9]+[\'\"] -rho |sed s/[\"\']//g|sort -u

Here are results for Juno:
  • hw_cdrom_bus
  • hw_cpu_cores
  • hw_cpu_max_cores
  • hw_cpu_max_sockets
  • hw_cpu_max_threads
  • hw_cpu_sockets
  • hw_cpu_threads
  • hw_disk_bus
  • hw_disk_discard
  • hw_machine_type
  • hw_numa_nodes
  • hw_qemu_guest_agent
  • hw_rng_model
  • hw_scsi_model
  • hw_serial_port_count
  • hw_veb
  • hw_video_model
  • hw_video_ram
  • hw_vif_model
  • hw_watchdog_action
Not very impressive list, is it?