Network for KVM guest with RHCOS version

There are some special requirements if you want to provision a RHCOS virtual machine on KVM hypervisor.

Here are the details:

  1. On the compute node, administrotor need to make sure that DHCP service is enabled and running. It can be checked through command systemctl status neutron-dhcp-agent.service. If not, it can be enabled through command systemctl enable --now neutron-dhcp-agent.service.

  2. Use administrator's username and password to get the authority to run IBM® Cloud Infrastructure Center CLI according to Setting environment variables.

  3. The network created through Adding a network should be a DHCP network. If not, administrator need to enable the DHCP for the subnet in the network. Here are the commands:

    openstack subnet list --network <network-name>

    openstack subnet set --dhcp <subnet-name-or-ID>

    note: the network-name is the network name you want to use to provision the RHCOS virtual machine, the subnet-name-or-ID is from the output of the previous command, is the subnet name or ID in the network.

  4. If you want to remove a network with DHCP enabled in the subnet, the administrator must disable the DHCP for the subnet before Removing a network. Here are the commands:

    openstack subnet list --network <network-name>

    openstack subnet set --no-dhcp <subnet-name-or-ID>

    note: the network-name is the network name you want to remove from the IBM® Cloud Infrastructure Center, the subnet-name-or-ID is from the output of the previous command, is the subnet name or ID in the network.