~cbehrens/nova/create-num-instances

Viewing all changes in revision 1184.

  • Committer: Tarmac
  • Author(s): Johannes Erdfelt
  • Date: 2011-06-15 14:01:34 UTC
  • mfrom: (1162.3.11 vm-mode)
  • Revision ID: tarmac-20110615140134-kbbqhs4eanoertr5
The Xen driver supports running instances in PV or HVM modes, but the method it uses to determine which to use is complicated and doesn't work in all cases. The result is that images that need to use HVM mode (such as FreeBSD 64-bit) end up setting a property named 'os' set to 'windows'.

This branch adds checks for a new property called 'vm_mode'. This can be set to 'pv' or 'hvm' and select the appropriate mode. If the property doesn't exist, the existing logic is still used to determine which mode to use.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: