def METHOD_NAME(self) -> None:
    """Check that the VM can access the internet."""
    try:
        self.run("ping -c 1 snapcraft.io".split(), hide_output=True)
    except errors.ProviderLaunchError:
        self.destroy()
        url = None
        if sys.platform == "win32":
            url = "https://multipass.run/docs/troubleshooting-networking-on-windows"
        elif sys.platform == "darwin":
            url = "https://multipass.run/docs/troubleshooting-networking-on-macos"
        if url:
            raise errors.ConnectivityError(
                "The VM cannot connect to snapcraft.io, please see {}".format(url)
            )
        else:
            raise