Create flavors for use with the Bare Metal service

Create flavors for use with the Bare Metal service

You’ll need to create a special bare metal flavor in the Compute service. The flavor is mapped to the bare metal node through the hardware specifications.

  1. Change these to match your hardware:

    $ RAM_MB=1024
    $ CPU=2
    $ DISK_GB=100
    $ ARCH={i686|x86_64}
    
  2. Create the bare metal flavor by executing the following command:

    $ nova flavor-create my-baremetal-flavor auto $RAM_MB $DISK_GB $CPU
    

    Note

    You can replace auto with your own flavor id.

  3. Set the architecture as extra_specs information of the flavor. This will be used to match against the properties of bare metal nodes:

    $ nova flavor-key my-baremetal-flavor set cpu_arch=$ARCH
    
  4. Associate the deploy ramdisk and kernel images with the ironic node:

    $ ironic node-update $NODE_UUID add \
        driver_info/deploy_kernel=$DEPLOY_VMLINUZ_UUID \
        driver_info/deploy_ramdisk=$DEPLOY_INITRD_UUID
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.