Score:0

Can't connect to VM after windows reboot

cn flag
wml

I have tried all the solution I can find. Still can't connect.

I use VMware to build my VM. And I use putty to connect my VM. After a few days use, I can't use putty to connect to my VM. I have try a lot of test, but still can't find anything wrong. So I just make a second VM. However, just one day used, I can't connect to it anymore. The second VM I even didn't change any network setting.

information about my server:

Ubuntu Server version : 20.04LTS network mode: bridge

netplan

network:
version: 2
  renderer: networkd
  ethernets:
    ens33:
      addresses: [10.xx.xx.xx/24]
      gateway4: 10.xx.xx.xxx
      nameservers:
        addresses: [10.xx.xx.x, 10.xx.xx.xx] //these are my company's dns
      dhcp4: no

What I have tried

1. Connection test (ping and putty)

  • host can't ping VM.
  • VM can't ping host.
  • both VM,host can ping gateway.
  • my colleague can ping my computer (host) and my VM. And they can use putty to use my VM.
  • The most strange thing is I can use my colleague's VM by putty, and my colleague also can use my VM by putty.

By the way both VM and host's network are working fine.

2. ssh test

service ssh status

console : active(running)

grep Port /etc/ssh/sshd_config

console: Port 22

sudo lsof -i -n -P | LISTEN

console: both ipv4 and ipv6 are LISTEN

3. Close firewall

ufw status: inactive

hosts.allow, hosts.deny: all comment

iptables -nvL: INPUT,FORWARD,OUTPUT all blank

4. auth.log

It seems nothing wrong in log. I can only find things like these:

ubuntuserver sshd[1990]: Server listening on 0.0.0.0 port 22.
ubuntuserver ssgd[1990]: Server listening on :: port 22.

5. arp test

I have check arp in my host Windows cmd None of them have a same MAC address

6. Change to NAT、host-only net mode

Try to change bridge mode back to NAT or host-only mode, and modify netplan to original version.

Not working, still can't connect.

7. Allow putty and vmware in host

nothing change.


I already be in a desperate situation. I'm grateful for any direction for me to try. Thanks in advance.

Hope you guys don't mind about my poor English. I have really tried my best.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.