Add hostname and resolvers when editing vm config.