-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network interface not UP after migration #1354
Comments
Hi, seeing that the device name changed after migration, the netplan did not bring up the interface. |
@mnecas Thanks for pointing me interface change.
Can you please share script which will inject udev rules and rename the interface to the original name and how to use. |
Sorry for the late response, you can find the script here https://github.com/kubev2v/forklift/blob/main/pkg/virt-v2v/customize/scripts/rhel/run/network_config_util.sh |
Ah after reading the code, we do it also for the DHCP but that script is missing the cloud.cfg so all we need to do is to update the script to look at the cloud init configs and create the udev rules from it. Scratch that ^. Not sure if this is possible because we can't map the devices without the static IPs. We could add the cloud init config with static IP but not sure about DHCP. As workaround you could try to inject a udev rules yourself before the migration starts this way it will preserve the interface name after migration. |
@mnecas Thanks. Can you help me one more thing though its not V2V migration but its live migration inside cluster. I am using Kubevirt along with Multus & whereabouts. My network attachment definition as follows
After successful migration all good except IP change from 192.168.0.20 to 192.168.0.21 I want keep same IP (192.168.0.20) when VM launch first time. |
I migrate Ubuntu VM from VMware to Kubevirt using forklift, migration went well but in kubevirt migrated VM network interface did not UP.
Source (Vmware) VM:
Destination (Kubevirt) VM:
Plan:
The text was updated successfully, but these errors were encountered: