Skip to content

Instantly share code, notes, and snippets.

@kkumar-fk
Created November 29, 2021 13:44
Show Gist options
  • Save kkumar-fk/5a663437322891daf5bf6a8c4adacb5a to your computer and use it in GitHub Desktop.
Save kkumar-fk/5a663437322891daf5bf6a8c4adacb5a to your computer and use it in GitHub Desktop.
Script to run on destination hypervisor to reattach a VF to the migrated VM
#!/bin/bash
bridge fdb del 52:54:00:00:12:53 dev ens36v0
bridge fdb del 52:54:00:00:12:53 dev vmtap01 master
virsh attach-device --config --live vm01 vf.xml
virsh domif-setlink vm01 vmtap01 down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment