Vehicular ad hoc network (VANET) communications face severe fading problems due to the signal reflections and diffractions within tunnels. Unlike the open road, the space of a tunnel is very limited, so VANET communication performance in a tunnel is seriously affected. In the process of signal transmission, the reflected signal is symmetrical with the incident signal after it is reflected by the road and the wall. In this paper, we establish a mathematical model of path loss for V2V (Vehicle-to-Vehicle) communication based on the principle of signal reflection symmetry in tunnels and considering several factors, such as the tunnel surface and the color of the tunnel wall. In addition, we use cooperative communication to form a virtual multiple-input multiple-output (V-MIMO) system, to improve the communication quality in tunnels. In the proposed system, the OBU (On-Board-unit) and RSU (Road-Side-Unit) share each other’s antennas, so that wireless cooperative communication can be employed, without increasing the number of antennas in a one-way tunnel. Therefore, this multipath fading internal electromagnetic wave propagation model can be used to improve performance. A deep reinforcement learning algorithm was used to solve the pairing problem to obtain a more accurate OBU and RSU pair, to form a V-MIMO system. Here, the RSU is regarded as an agent and interacts with the OBU in the tunnel. The optimal strategy was learned in a real-time changing simulation environment, and the experiment verified the convergence of the algorithm. The simulation results showed that, compared with the Q-learning based scheme, the optimal matching algorithm based on V-MIMO and a DQN (Deep Q-network) could effectively reduce the probability of transmission outages and improve the communication efficiency in tunnels.