SAS University Edition: Help Center

Why am I getting host name or internet connectivity errors?

If you are running SAS University Edition on VirtualBox and you are using a VPN (virtual private network) connection to connect your PC to the internet, you might get errors about failed connections or a failed host name resolution when you run code. These errors might indicate that VirtualBox is unable to process DNS lookup requests. DNS lookup requests are issued by SAS procedures such as PROC HTTP, which require internet access. You can use the VBoxManage command to pass the DNS request to the host operating system.

Some VPNs do not allow code that is running inside VirtualBox, such as code you run in SAS University Edition, to connect to the DNS server that is used by the host operating system. As a result, code that is running inside VirtualBox can connect to the internet, but all DNS lookup requests fail.

You can use the VBoxManage command to pass DNS requests to the host operating system by following these steps:

  1. Shut down the SAS University Edition vApp. You do not need to shut down VirtualBox. For more information, see How do I shut down the SAS University Edition vApp?

  2. Navigate to the folder where VirtualBox is installed on your PC, and enter the following command:
    VBoxManage modifyvm "virtual-machine-name" --natdnshostresolver1 on
    Note The virtual-machine-name that you specify must exactly match the name of the virtual machine that you used in the Import Virtual Appliance window in VirtualBox (for example, SAS University Edition). To view the names of your imported virtual machines, you can run the following command:
    VBoxManage list vms
    Note The VBoxManage command affects only the currently imported SAS University Edition vApp OVA file. If you download a new version of the OVA file and reimport it, you must rerun the VBoxManage command.

Additional topics