VM cannot connect to virtual switch

Hi, I deployed Openstack with hyperv but I faced a problem. When I'd like to create a new VM, it works very well.However, the VM cannot connect to the virtual switch, I have to connect it manually which is unlogical, is their any solution?

Comments

I don't know how to work with it.
here is the log:
Agent out of sync with plugin!.
Error in agent event loop: 'NoneType' object is not iterable.
TypeError: 'NoneType' object is not iterable.
Also I cannot ping to my new VM with its private IP : 192.168.1.5 , also I cannot ping from the VM to gateway