Problem
When migrating a virtual machine (VM) from one cluster node to another, the following error may occur:
stderr: error: unsupported configuration: Target domain net card count 1 does not match source 2This error indicates that the platform detects one network interface for the VM, but the VM's configuration on the cluster node actually contains two interfaces. This discrepancy prevents successful migration.
The issue occurs when a previously attached network interface was not properly detached from the VM. This can happen due to:
- a failure during the interface detachment process;
- an incomplete interface deletion operation.
As a result, the interface remains in the VM's configuration file but is absent from the VMmanager platform. This mismatch causes a configuration error during migration.
Solution
To resolve the issue, identify the network interface missing from the target VM in the platform and remove it:
- Connect to the cluster node via SSH. For more information about connecting via SSH, see Workstation setup.
- Identify the VM's internal name:
virsh list --all | grep <vm_name>Example outputvirsh list --all | grep testtest 460 5450_testtest runningComment - Retrieve the list of the VM's interfaces:
virsh domiflist <internal_vm_name>CommentExample outputvirsh domiflist 6_VM_import_from_Hyper-V Interface Type Source Model MAC ------------------------------------------------------------ vnet2 bridge vmbr124 virtio 52:54:00:f0:fd:7b vnet3 bridge vmbr116 virtio 52:54:00:f0:fd:07 - Compare the list of MAC addresses from the command output with the virtual interfaces listed in the VMmanager platform:
- Navigate to Virtual Machines → выберите ВМ → Parameters.
- Open the Network Settings section → Virtual Interfaces block.
- Identify which interface is present in the
virsh domiflistoutput but missing from the platform list.
- Remove the extra interface. Depending on the VM's state, run the appropriate command:
- for a running VM:
virsh detach-interface <internal_vm_name> <interface_type> --mac <mac_address> --live --persistentCommentExample for a running VMvirsh detach-interface 5450_testtest bridge --mac 52:54:00:f0:fd:07 --live --persistent - for a shut down VM:
virsh detach-interface <internal_vm_name> <interface_type> --mac <mac_address> --configCommentExample for a shut down VMvirsh detach-interface 5450_testtest bridge --mac 52:54:00:f0:fd:07 --config
- for a running VM:
Useful tips
Related topics:
En
Es