How to change the Hosted Engine VM network MTU?

Solution Verified - Updated

Environment

  • Red Hat Virtualization 4.2 and higher

Issue

  • How do I change MTU of Hosted Engine VM?
  • Why does HostedEngine MTU change when being migrated to another host?

Resolution

Starting with RHV 4.2, these changes can be made from the Admin Portal, however will require a reboot of the Hosted Engine VM and any other VM's using the management network should be powered down first [1].

1. Shutdown or unplug the vNIcs of all VM's that use the management network except for HostedEngine.

2. Change the MTU via Admin Portal - Network -> Networks -> Select the management network -> Edit -> MTU

3. Enable Global Maintenance:

# hosted-engine --set-maintenance --mode=global

4. Then shutdown the HE VM:

# hosted-engine --vm-shutdown

5. Check the status to confirm it is down:

# hosted-engine --vm-status

6. Start the VM again:

  # hosted-engine --vm-start

7. Check the status again to ensure it is back up and try to migrate the HE VM, the MTU value should persist through migrations.

8. If everything looks OK, disable Global Maintenance:

# hosted-engine --set-maintenance --mode=none

[1] Only the HostedEngine VM can be using the management network while making these changes (all other VM's using the management network should be down), otherwise the config does not come into effect immediately, and causes the VM to boot yet again with wrong MTU even after the change. See KCS 4540631 for more details.


This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.