Parallels Desktop下Linux Mint虚拟机可Ping但无法上网,无法安装Parallels Tools求助
Hey Chris, let’s work through this problem together—since you can ping IP addresses but can’t load web pages, the root cause is almost certainly DNS resolution or proxy interference, which is also blocking your Parallels Tools installation. Here’s a step-by-step breakdown to fix this:
Being able to ping addresses means your basic network connection is working, but failing to browse the web points to a DNS issue (your VM can’t translate domain names like google.com into IPs). Here’s how to fix it:
- Open Linux Mint’s Network Settings: Click the network icon in the system tray, then select "Network Settings".
- Select your active network connection (labeled something like "Shared Network" from Parallels), go to the IPv4 tab.
- Switch the DNS setting from "Automatic" to "Manual". Add these DNS servers:
8.8.8.8(Google’s public DNS)8.8.4.4(Google’s secondary DNS)
- Click "Apply" and restart your network connection (toggle it off and back on via the system tray).
- Verify it works: Open a terminal and run
nslookup google.com—if it returns an IP address, your DNS is fixed.
Sometimes your VM might inherit a proxy setting from your host or have one enabled by default, which blocks web traffic:
- Open Mint’s System Settings > Network Proxy.
- Set the mode to "None" (if your Mac isn’t using a proxy) or "Automatic" if you rely on a corporate proxy.
- For terminal checks: Run
echo $http_proxyandecho $https_proxy. If either returns a URL, unset them temporarily with:unset http_proxy unset https_proxy - To make this permanent, edit your
~/.bashrcfile and remove any lines that sethttp_proxyorhttps_proxy.
You don’t actually need an internet connection to install Parallels Tools—Parallels includes the installer directly in the VM:
- In the Parallels Desktop window, click the Actions menu at the top, then select "Install Parallels Tools".
- A CD-ROM image will mount in your Mint VM. Open the mounted drive (you’ll see it on your desktop or in the file manager).
- Right-click inside the folder and select "Open in Terminal".
- Run the installer with:
sudo ./install - Follow the on-screen prompts to complete the installation, then restart your VM when asked.
If the Shared Network mode is still giving you trouble, switch to Bridged Network temporarily:
- In Parallels Desktop, shut down your Mint VM.
- Go to VM Settings > Network.
- Change the network mode from "Shared Network" to "Bridged Network", then select your host’s active network interface (e.g., Wi-Fi or Ethernet).
- Start the VM again, check if you can browse the web, and try installing Parallels Tools if you haven’t already.
Once you get the network sorted, Parallels Tools should install smoothly, and that’ll also improve things like drag-and-drop between your Mac and VM, and better display resolution. Let me know if any of these steps hit a snag—I can help troubleshoot further!
内容的提问来源于stack exchange,提问作者Chris

