CVM unreachable after node restart. The disappearing vlan.

01/10/2024 0 Par Dylan HUGER

This has happened to me several times. After completely restarting a node, I cannot regain control of the CVM. The problem occurs when you set the vlan with the « cvm_change_vlan VLAN » script. The solution is as follows, modify the cvm configuration from the hypervisor.

Retrieve the following information:

Alias -> cat /etc/nutanix/config/cvm_config.json (Get the first uuid)

Mac address -> ifconfig eth0 (from CVM, coresponding to the ether filed)

Source-Name -> Depend of your bridge coresponding to your CVM stream

Type -> bridge

Vlan -> id of the vlan

Before to run the next command, you must to put your node in maintenance mode if you are in production.

update-cvm-config –memory-mib nochange –cpu-topology nochange –cpuset nochange –network-interfaces {update}{alias} {mac}{source-name}{type}{vlan}

After you will be able to restart you node.