kubevirt: Can not bring up networking When stop a VM and start it again
What happened:
stop a VM by virtctl stop xxx and start it again, an error happened Failed to start LSB: Bring up/down networking. and interface eth0 is down
What you expected to happen: eth0 is up
How to reproduce it (as minimally and precisely as possible):
- create a dv
- create a vm using a pvc generated by the dv as boot device
- start it, eth0 is up
- stop it and start it again, eth0 is down
Additional context: dv.yaml
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: "block-pvc"
spec:
source:
http:
url: "https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2"
pvc:
storageClassName: xxx
volumeMode: Block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "10Gi"
vm.yaml
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
labels:
a: b
name: block-pvc
spec:
running: false
template:
metadata:
labels:
a: b
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: filepvcdisk
- disk:
bus: virtio
name: cloudinitdisk
resources:
requests:
memory: 1G
terminationGracePeriodSeconds: 0
volumes:
- name: filepvcdisk
persistentVolumeClaim:
claimName: block-pvc
- cloudInitNoCloud:
userData: |-
#cloud-config
chpasswd:
expire: false
password: fedora
user: fedora
name: cloudinitdisk
Environment:
- KubeVirt version (use
virtctl version):
Client Version: version.Info{GitVersion:"v1.1.1", GitCommit:"689c0e66cc6893f311dd648ff32e247203b6c96a", GitTreeState:"clean", BuildDate:"2023-12-25T10:58:20Z", GoVersion:"go1.19.9", Compiler:"gc", Platform:"darwin/arm64"}
Server Version: version.Info{GitVersion:"v1.1.1", GitCommit:"689c0e66cc6893f311dd648ff32e247203b6c96a", GitTreeState:"clean", BuildDate:"2023-12-25T11:56:11Z", GoVersion:"go1.19.9", Compiler:"gc", Platform:"linux/amd64"}
- Kubernetes version (use
kubectl version): N/A - VM or VMI specifications: N/A
- Cloud provider or hardware configuration: N/A
- OS (e.g. from /etc/os-release): N/A
- Kernel (e.g.
uname -a): N/A - Install tools: N/A
- Others: N/A
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 19 (10 by maintainers)
As mentioned in https://github.com/kubevirt/kubevirt/issues/11585#issuecomment-2094793474 , you can use KMP.
At the moment, there is no other option.