Mémo pour changer l’ip d’une VM clonée avec KVM.
Après avoir cloné la VM avec virt-manager ou en ligne de commande, la VM clonée possède la même ip que la VM d’origine.
Démarrer la VM clonée puis exécuter les commandes suivantes :
1 2 3 |
command rm -f /etc/machine-id command dbus-uuidgen --ensure=/etc/machine-id command systemctl reboot |
Et voilà !