Skip to content

IP change during migration #576

@cloudcafetech

Description

@cloudcafetech

I am using Kubevirt along with Multus & whereabouts.

My network attachment definition as follows

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: bridge-whereabouts
  namespace: virtualmachines
spec:
  config: '{
      "cniVersion": "0.3.1",
      "name": "bridge-whereabouts",
      "type": "bridge",
      "bridge": "br0",
      "promiscMode": true,       
      "ipam": {
        "type": "whereabouts",
        "range": "192.168.0.0/24",
        "range_start": "192.168.0.20",
        "range_end": "192.168.0.50",
        "gateway": "192.168.0.1",
        "routes": [
          { "dst": "0.0.0.0/0" }
        ]
      }
    }'

After successful migration all good except IP change from 192.168.0.20 to 192.168.0.21

Image

I want keep same IP (192.168.0.20) when VM launch first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions