Can a VPN Affect Crostini Container Downloads on ChromeOS?
The Linux development environment on ChromeOS sits behind its own virtual network. Here is how a VPN can change downloads inside it, and how to find out what is really happening.
10 min readUpdated Nov 11, 2026By XPASS Editorial Team

The Linux development environment on a Chromebook, usually called Crostini, is handy for developers and students. You open a terminal, run sudo apt update, clone a repository with git, or pull a container image, and it all feels like a normal Debian machine. Then you switch on a VPN and something changes: a download stalls at a percentage, apt reports that it cannot reach a mirror, or a build that took a minute now takes ten.
This article explains why that can happen and how to find the cause without guessing. It does not promise that any particular VPN will or will not work with Crostini. The honest position is that a Chromebook adds a layer between the VPN and your Linux terminal, and you should test what happens on your own device. If you have not yet looked at the basics for this hardware, start with how to set up a VPN on a Chromebook, then come back here for the container-specific checks.
What Crostini actually is
Crostini is the name for the Linux feature on ChromeOS. Rather than replacing ChromeOS, it runs a small virtual machine, and inside that machine it runs a Linux container, by default a Debian one. Your terminal connects into that container. Three consequences matter for VPN troubleshooting.
First, the container has its own network interface and a private address, typically in a range reserved for internal networks (see RFC 1918). It does not talk to the internet directly. Its traffic leaves through the virtual machine and then through ChromeOS, which uses your real connection, such as Wi-Fi.
Second, ChromeOS is the one that holds the VPN. Whether a VPN set up in ChromeOS network settings, or through an Android app on a Chromebook that supports Android apps, also carries traffic that originates in the container is not something you should assume. It can differ between ChromeOS versions and between setups, and the behaviour is controlled by ChromeOS rather than by the VPN provider. If the answer matters to you, measure it.
Third, there can be several layers of name lookup. The container has a resolver configuration, the virtual machine forwards requests, and ChromeOS may have its own idea of which DNS servers to use. A VPN that changes DNS on the Chromebook may or may not change what the container sees.
A note on support: the free VPNclient app that goes with XPASS passes is provided for iPhone and iPad, Android, Windows, macOS and Linux. There is no ChromeOS app, and Chromebook support has not been verified. Linux support means a 64-bit Intel or AMD desktop with systemd, which is a different thing from the Debian container on a Chromebook. Do not assume the Linux build can be installed inside Crostini just because it is Linux. Your My Pass page lists what applies to your pass.

Why downloads in the container can behave differently
Several distinct problems produce the same symptom, "downloads are broken with the VPN on". Separating them saves time.
The container is not using the VPN at all. If the VPN does not cover container traffic, downloads inside it behave exactly as before, and the VPN seems to have no effect there. Your browser on ChromeOS may show a new IP address while curl in the terminal shows the old one. That is not a failure of the pass, only a mismatch between layers.
Name lookups fail or return different answers. If the container asks a DNS server that is unreachable once the VPN is up, apt and git fail with messages about resolving hosts. The same page loads in the browser because the browser is using a different path. Our article on Linux VPN DNS leaks explains how to read resolver settings, and much of it applies to the container as well.
Large transfers stall while small ones succeed. When packets are too big for part of the path, small requests work and large downloads hang. This is a classic MTU problem, described in Path MTU Discovery and in our article on the VPN MTU issue. Crostini adds another virtual hop, so the usable packet size can be smaller than you expect.
The remote server treats the VPN address differently. A package mirror, code host or image registry can apply rate limits or extra checks to addresses shared by many people. The symptom is slow or refused downloads even though the connection itself is healthy. This is outside your control, and the fix is to test another server location or to try again later, not to hunt for a setting.
IPv6 and IPv4 disagree. If the container prefers IPv6 and the VPN path only handles IPv4 properly, connections wait for a timeout before falling back. Everything works, but slowly.
A step-by-step test inside the container
Run these checks in the Linux terminal, and write down what you see. Do them first with the VPN off, then on, so you have a comparison. These commands read information and make ordinary requests; they do not change your system, except where noted.
- Look at the network interface and routes. Run
ip addrandip route. Note the container's private address and the default gateway. This tells you the container is on its own virtual network. - Check which DNS server the container uses. Run
cat /etc/resolv.conf. Note the address listed. If it is a private address pointing at the virtual machine or ChromeOS, name lookups are being forwarded. - Test a name lookup. Run
getent hosts deb.debian.org(or any site you use). If this fails with the VPN on and works with it off, the problem is name resolution, not the download itself. - Compare your public address. Use an IP-check page you already trust, requested with
curlin the terminal. Compare the result with the address your Chromebook browser shows. If they differ, the container is not following the same path as the browser. - Try a small download. Run
curl -I https://deb.debian.org/and see whether you get a response header quickly. - Try a larger download. Fetch a file of a few megabytes, for example by running
sudo apt updateor downloading a package withapt download. If small requests succeed but larger ones stall, suspect packet size. - Probe the packet size. Run
ping -c 3 -M do -s 1372 deb.debian.org. The-M dooption forbids fragmentation. If the reply says the message is too long, lower the number until it succeeds, and note the largest working value. A much smaller value than 1472 with the VPN on points at an MTU limit. - Try IPv4 only. Run
curl -4 -I https://deb.debian.org/and compare it with the same command using-6. A large timing gap suggests an IPv6 fallback delay.
Keep your notes short: what worked with the VPN off, what changed with it on, and at which step. That pattern usually names the layer to fix.
Plain example
Suppose a student runs sudo apt update in the Debian container and it hangs at 0% for a long time with the VPN on, while the same command is quick with the VPN off. The browser works fine on the VPN.
Step 3 shows that getent hosts deb.debian.org returns nothing with the VPN on. Step 2 shows that /etc/resolv.conf points at a private address that ChromeOS forwards. The pattern says the lookup path is being disturbed, not the download. The student then turns the VPN off, runs the update to finish the immediate task, and later tests with the VPN on after a ChromeOS update and a restart of the Linux environment. If lookups still fail, they ask the person who administers the Chromebook, or contact support with the notes from steps 1 to 3 in hand.
Now suppose instead that name lookups work, small requests work, and only the larger file stalls. Step 7 shows that only a packet of 1,200 bytes gets through. That points to a size limit on the path. The article on large downloads that stall behind a VPN walks through that case, and the remedies there, such as an MTU change, are best made at one layer only and tested after each change.
Ways to approach the fix
Work from the cheapest, least risky action to the most invasive.
- Restart the layers. Disconnect the VPN, shut down the Linux environment from the ChromeOS shelf by right-clicking the terminal icon and choosing the shutdown option, wait a few seconds, reconnect the VPN, then reopen the terminal. A fresh start lets the container pick up a new resolver and routes.
- Update ChromeOS. Network and container handling changes between versions, so open Settings, then About ChromeOS, and install a pending update first.
- Try another server location in the VPN app. If only some mirrors or hosts are slow, a different location may behave better. There is no guarantee, and the right location depends on where the remote server is.
- Change one thing at a time. If you lower the MTU, change DNS settings or switch tools, do one of them, test, and write down the result. Several simultaneous changes make it impossible to know which one helped.
- Avoid stacking tunnels. Running a VPN on ChromeOS and another inside the container often multiplies overhead and breaks routing. Choose the layer that suits your goal and test it alone.
- Use the VPN where it matters. If you need the VPN only for a browser session, you may not need it for package updates. Splitting tasks can be simpler than forcing everything through one path. Support for split tunnelling varies by device, so check what your setup offers.
Tools that make it more complicated: Docker and Podman
Many developers run Docker or Podman inside Crostini. That adds yet another virtual network, so a container inside the container has its own address and its own resolver settings. When docker pull fails with a timeout, the same questions apply, now at one more level.
Test from the Linux terminal first. If curl works there but docker pull fails, the issue is likely in the container runtime's network or DNS configuration rather than in the VPN. If curl also fails, fix that first. Registries also often serve large layers from content delivery servers, which makes the packet-size and server-treatment problems above more visible. Be patient with retries, and read the error message. "Timeout", "no such host" and "unexpected EOF" each point to a different layer.

Limits and things to watch for
- No guarantee of coverage. A VPN on the Chromebook may not carry the container's traffic, and the reverse can also happen. Verify, do not assume.
- Managed devices. School and workplace Chromebooks may restrict VPN changes, the Linux environment, or both. If options are missing or greyed out, ask the administrator. Do not try to remove or avoid management.
- No support claims. There is no verified XPASS or VPNclient app for ChromeOS or Crostini. Any Android-app route on a Chromebook depends on your model, and may behave differently from a phone.
- A VPN is not a fix for slow servers. If a mirror is overloaded, a VPN will not make it faster, and it may add distance and overhead.
- Be careful with credentials. Do not paste your VPN username or password into a terminal history, a script or a repository. Keep them on your My Pass page. If you need them, open My Pass.
- Terms of service still apply. Do not use a VPN to get around the usage rules of a code host, a package service or your school. If a service blocks an address, respect that.
Quick reference table
| Symptom in the container | Likely layer | First check |
|---|---|---|
| Cannot resolve host names | DNS path | cat /etc/resolv.conf, then getent hosts |
| Small requests work, large downloads hang | Packet size (MTU) | ping -M do -s probe |
| Public address matches the old one | Container not using the VPN | Compare with the browser's address |
| Very slow start, then normal speed | IPv6 fallback | curl -4 versus curl -6 |
| Only one mirror or registry fails | Remote server treatment | Try another time or location |
| Works on the host, fails in Docker or Podman | Runtime network or DNS | Test with curl from the terminal first |
Summary
A VPN and the Linux container on ChromeOS are separate layers, and the VPN does not automatically govern what the container does. When downloads stall, test in order: network interface and routes, DNS, a small request, a large request, then packet size and IPv4 versus IPv6. Change one thing at a time, keep notes, and ask an administrator if the Chromebook is managed. No XPASS or VPNclient app is verified for ChromeOS, so treat any Chromebook setup as something to confirm on your own device. If you want a pass to test with on the platforms that are supported, you can find setup guidance for each of them in the Help Center.
Frequently asked questions
Does a VPN on my Chromebook automatically cover the Linux container?
Not necessarily. The container sits behind a virtual network that ChromeOS manages, and how a VPN interacts with it depends on the ChromeOS version, the way the VPN was set up and any administrator settings. The only reliable answer comes from testing inside the container.
Why does apt update work with the VPN off but hang with it on?
Common causes are DNS answers that do not reach the container, a packet-size problem that stalls larger transfers, or a mirror that treats the VPN address differently. Checking name lookups first, then a small and a large download, usually separates these.
Does XPASS provide a ChromeOS or Crostini app?
No. The free VPNclient app is provided for iPhone and iPad, Android, Windows, macOS and Linux (64-bit Intel or AMD desktop with systemd). Chromebook support has not been verified, so check your My Pass page and treat anything on a Chromebook as something to test.
Should I install a VPN client inside the container as well?
Do not stack a second VPN on top of an existing one without a clear reason, because nested tunnels often cause the slowdowns you are trying to fix. If you are unsure which layer to use, test one layer at a time.
Can a school or work Chromebook use a VPN with the container?
That depends on the administrator. Managed devices often restrict VPN changes and sometimes the Linux environment itself. Ask the administrator instead of working around the policy.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Device Guides
How to Test and Fix DNS Leaks on Linux
Linux has several layers that decide where DNS questions go. Learn to test which one is answering while your VPN is up, and how to fix it on systemd-resolved, NetworkManager and plain resolv.conf.
9 min read

Troubleshooting
Why Do Large Downloads Stall After Several Minutes on a VPN?
A large download that starts normally and then hangs after a few minutes usually points to a specific cause, not bad luck. Here is how to narrow it down and what to try.
10 min read

Troubleshooting
VPN MTU Problems: Symptoms and Fixes
A VPN adds a wrapper to every packet, and when the path cannot carry the bigger size, some pages stall while others work. Here is how to recognise and test it.
9 min read