Added function to connect to serial port of VM