How to edit IP address of a VM

Hello,

For an unknown reason, some VM have the wrong IP registered in opennebula. I would like to change it, by editing the VM NIC.
These VM have already a good IP on the OS with a DNS etc, and I don’t want to reboot / undeploy them.

For illustration :
$ onevm show myvm
VM NICS
ID NETWORK BRIDGE IP MAC PCI_ID
0 MYVMNET vmmyvmbr 192.168.1.10 02:00:0a:d2:00:06

And the real IP is 192.168.1.12. I just want to edit this VM NIC.
But for what i saw in DB, it’s not so simple…

Thanks,

Version : opennebula 5.10.1

Yes, there are cross object checks here and there. I think the best way is to detach the NIC and attach another one with the right IP.

1 Like