new vm config and ports forwarding function