ubuntu network dont work after restart

122 views
Skip to first unread message

Walisson Casonatto

unread,
Jun 11, 2021, 10:02:50 PM6/11/21
to kubevirt-dev
Hello guys, im using kubevirt to setup a Ubuntu vm machine, ill attach here my kube files.but the problem is, after reboot the vm network stop to work, i cant ping it anymore, cant access ssh (before reboot it works), any ideas on what is wrong?


its my pvc

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "uisp"
namespace: "uisp"
labels:
app: containerized-data-importer
annotations:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi


its my vm yaml:


Dan Kenigsberg

unread,
Jun 12, 2021, 2:10:20 AM6/12/21
to Walisson Casonatto, kubevirt-dev, Ram Lavi, Horacek, Petr
I had something similar in my Fedora VM. For some reason KubeMacPool has not assigned a mac address to my interface (you don't have one either https://gist.github.com/Shodocan/865b7d66ea7f4ea9700303889fe47d47#file-uisp-yaml-L34 ) so it doesn't persist across restarts, but the guest got the original mac address hard-coded.

I fixed it on my VM by dropping HWADDRD from my ifcfg file in the guest.


--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/d6ece9e7-a053-4f48-a374-541f6b7d74efn%40googlegroups.com.

Walisson Casonatto

unread,
Jun 12, 2021, 10:43:52 AM6/12/21
to kubevirt-dev
Thank you, it worked for me, just added the mac address to the interface config
Reply all
Reply to author
Forward
0 new messages