Support serial console for vms

Change-Id: I0a4f17be434755cb436207a06c82c059b9f6d4e6