Installs necessary packages and configures vm