Unable to access the microk8s services if I not restart the vm network

springflutter

New Member
Sep 28, 2022
4
0
1
Hi, I have a VM with CentOs 7 where I installed microk8s service. The microk8s service implemented works fine in the VM and other external machines on the same network. However, after a couple of minutes the service stop working just in the external machines (in the VM where it is intalled the microk8s services works perfectly) and then I have to restart the network(via web GUI) in order to be able to access the service (just for a couple minutes). Moreover, I notice that the ssh connection also stop working at the same time that the microk8s service and this message appear
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
So, I apply the the command suggested ssh-keygen -f "/home/pc01/.ssh/known_hosts" -R "myipserver" or I added the TCPKeepAlive yes and ServerAliveInterval 120 among others to the ssh_config and sshd_config, but then my password is not recognized and I can not access to the VM by ssh unless that I restart the network. I also notice that if I do not apply the above command and I just restart the network the above warming message dissapear, and I'm able to access to the VM without problems as well as the microk8s service. So, how could I fix this network problem? I'm using a proxmox Virtual Environment 7.2-3. I really aprreciated your help I have been trying to fix this problem for weeks without sucess. Sorry for my English !
 
Last edited:
It seems that something on that server is modifying your SSH keys regularly. Check all installed software and any CRON jobs that you've configured.
 
It seems that something on that server is modifying your SSH keys regularly. Check all installed software and any CRON jobs that you've configured.
Hi, thanks for your reply. It is a new VM I just installed Centos 7 minimal and microk8s with snapd. I'm not configured any cron job. The same problem occurs if I change to Ubuntu OS. Any other idea? :( Should I change the proxmox version?
 
Do you use DHCP for the VM?
I see no reason why PVE would interfere with the network settings of the VM.
 
Can you try a clean CentOS7 install without microk8s and snapd to see if it behaves similarly?
 
Hi, I tried with a clean CentOS7 but it did not work either. So, I decided to change the proxmox version 7.1-7 and it works! What I notice was that before I was using a second vmbr linux bridge (vmbr1) that I configure for th VM, but now I just use the same that I'm using with proxmox node (vmbr0). I'm not sure If that was the problem but I that is the only difference that I have with the previous config and it could work if someone have this problem in the future. Thanks for your help! :)
 
Which version did you use before? The latest PVE 7.2?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!