Editing a Xen VM inside Cloudmin and setting a new IP, new Gateway, new CIDR/Netmask, is very broken.
The edit method I use is to shut down the VM, going into their System Configuration: Network Interfaces and set them to their appropriate IPs, netmask and gateway.
- The per-VM Xen *.cfg files still have the old Netmask.
- The server index files under /etc/webmin/servers/.serv files contain "xen_" values that specify the xen settings used for the system. They never get updated during the network interface editing above.
- The resolv.conf gateway/DNS is not updated and has to be fixed manually or the VM will try to reach the old DNS server at the old gateway/DNS location.
- Worst of all, /etc/sysconfig/network-scripts/ifcfg-eth0 inside the VM contains the old BROADCAST address, meaning that broadcast packets are misrouted.
Also, attempting to edit the latter (ifcfg-eth0) via the Virtualmin Network Interface Editor puts lots of junk in the config:
It inserts things like the empty MTU, empty MACADDR, etc. Those were not in the config before using the virtualmin network interfaces module. That module is therefore useless at the moment.