You can update certain parameters in your Nova Compute service configuration by using the viocli update nova-compute command.

Configuration options example using viocli update nova-compute.
conf:
  nova_compute:
    DEFAULT:
      debug: true
      default_schedule_zone: nova1
      host: compute-7e8d8b50-c8
      cpu_allocation_ratio: 16 
      ram_allocation_ratio: 1.5 
      disk_allocation_ratio: 0.0 
      max_concurrent_builds: 20 
      always_resize_on_same_host: False 
      sync_power_state_interval: 600  
      sync_power_state_action: dbsync      
      use_hypervisor_stats: true
      update_resources_interval: 0 
      # Options of the interval (in second) to schedule the cache image cleanup worker thread
      image_cache_manager_interval: 2400
      # Options of the expiration (in second) for unused image cache to be deleted
      remove_unused_original_minimum_age_seconds: 86400
 
    vmware:
      host_ip: .VCenter:vcenter1:spec.hostname
      host_password: .VCenter:vcenter1:spec.password
      host_username: .VCenter:vcenter1:spec.username
      insecure: .VCenter:vcenter1:spec.insecure
      cluster_name: domain-c8
      datastore_regex: sharedVmfs\-1|sharedVmfs\-0
      network_passthrough: false
      tenant_vdc: false
      pbm_enabled: true
      pbm_default_policy: <policy_name>
      set_asset_tag: <value>
      import_vm_enabled: true
      import_vm_relocate: true
      datastore_selection_policy: max_free_space
      import_net_id: None
      datastore_cluster: dsc
      shared_datastore_regex: sharedVmfs\-1|sharedVmfs\-0
 
      dvs_moid:
      # compute01: dvs-35
      # compute02: dvs-36
      default_vif_model: vmxnet3
      gpu_profile: grid_p100-4a
      profile_fb_size_kb: 4096
Table 1. viocli update Nova Compute Parameters
Parameter Default Value Description

debug

false

Enter true to set the logging level to debug rather than the default INFO level.

default_schedule_zone

none

Enter the default availability zone fot instances.

host

<current_hostname>

Enter the hostname, FQDN, or IP address of this host.

cpu_allocation_ratio

none

Enter the virtual CPU to physical CPU allocation ratio.

ram_allocation_ratio

none

Enter the virtual RAM to physical RAM allocation ratio.

disk_allocation_ratio

none

Enter the virtual disk to physical disk allocation ratio.

max_concurrent_builds

10

Enter the the maximum number of instance builds to run concurrently by nova-compute.

always_resize_on_same_host

Enter the force destination node to match source for resize.

sync_power_state_interval

600

Enter the interval to sync power states between the database and the hypervisor.

sync_power_state_action

The action to take when there is an inconsistency with the database instance state and the actual state of the instance.

use_hypervisor_stats

This option specifies whether to use vCenter stats or rely on nova resource tracking.

update_resources_interval

0

This option specifies how often the update_available_resources periodic task is run.

image_cache_manager_interval

2400

This option specifies the interval in seconds to schedule the cache image cleanup worker thread.

remove_unused_original_minimum_age_seconds

86400

This option specifies the expiration in seconds for unused image cache to be deleted..

host_ip

none

Enter the hostname or IP address for connection to VMware vCenter host.

host_password

none

Enter the password for connection to VMware vCenter host.

host_username

none

Enter the username for connection to VMware vCenter host

insecure

false

Verify the HTTPS connection.

cluster_name

none

Enter the name of the VMware Cluster ComputeResource.

datastore_regex

none

Enter the regular expression setting, which specifies the datastores to use with compute.

network_passthrough

Flag to enable or disable network passthrough features.

tenant_vdc

Flag to enable or disable tenant vdc.

pbm_enabled

false

This option enables or disables storage policy based placement of instances.

pbm_default_policy

none

This option specifies the default policy to be used.

use_linked_clone

true

Enter the linked clone.

set_asset_tag

This option is to provide a workaround to bug.

import_vm_enabled

Flag to enable or disable import vm.

import_vm_relocate

This option can reorganize imported virtual machines to follow the default naming convention and folder placement as per VMware driver.

datastore_selection_policy

max_connected_hosts

Enter the nova datastore selection policy.

import_net_id

Enter the NSXT switch UUID required for enabling the virtual machine to be plugged into the correct neutron port.

datastore_cluster

Enter the name or moid of a datastore cluster.

shared_datastore_regex

Enter the regular expression for shared datastores for CD-ROM.

default_vif_model

Enter the default vnic model.

gpu_profile

Enter the profile for GPU passthrough devices.

profile_fb_size_kb

Enter the GPU profile frame buffer size in kilobytes.