惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
Scott Helme
Scott Helme
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
C
Cybersecurity and Infrastructure Security Agency CISA
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
J
Java Code Geeks
U
Unit 42
The GitHub Blog
The GitHub Blog
H
Help Net Security
T
Tenable Blog
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
L
Lohrmann on Cybersecurity
T
Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
L
LINUX DO - 最新话题
K
Kaspersky official blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threat Research - Cisco Blogs
C
Check Point Blog
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
Y
Y Combinator Blog
N
News | PayPal Newsroom
M
MIT News - Artificial intelligence
Latest news
Latest news
H
Hacker News: Front Page
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
I
Intezer
爱范儿
爱范儿
F
Fortinet All Blogs
P
Palo Alto Networks Blog
C
CERT Recently Published Vulnerability Notes

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
🐍 VirtualBox vs VMware Python development — which one actually fits your workflow?
Python-T Poi · 2026-05-15 · via DEV Community

VirtualBox is ill-suited for professional Python development when VMware Workstation is available. The performance delta, integration depth, and operational reliability aren't marginal—they compound across daily workflows in measurable ways.

📑 Table of Contents

  • ⚙️ Performance — Why Speed Isn't Just CPU
  • 💾 Disk I/O: Raw vs. Dynamic vs. Preallocated
  • 🧠 Memory Overhead: Why VMware Uses More — But Wisely
  • 🤝 Integration — How Seamless Is Your Workflow?
  • 📁 Shared Folders: Synced or Served?
  • 🌐 Network Modes: Host-Only, NAT, Bridged — and Python Implications
  • 📦 Ecosystem — What Tools Talk to Your VM?
  • 🛠 Vagrant: VMware is a Paid Plugin, VirtualBox is Free
  • 🐳 Docker Inside VM: Nested Virtualization Reality
  • 💰 Cost and Licensing — Is Free Actually Cheaper?
  • 🔐 Security and Updates: Who Patches Faster?
  • 🟩 Final Thoughts
  • ❓ Frequently Asked Questions
  • Can I run both VirtualBox and VMware on the same machine?
  • Does VMware Workstation support Linux hosts?
  • Is there a performance difference when using WSL2 instead of a VM for Python?
  • 📚 References & Further Reading

⚙️ Performance — Why Speed Isn't Just CPU

Python development involves frequent small-file I/O: resolving site-packages, building C extensions (numpy, cryptography, psycopg2), linting, and test execution. Each operation generates hundreds or thousands of stat(), openat(), and read() syscalls, which must traverse the host-guest boundary.

VMware Workstation uses VMware Host-Guest File System (HGFS) with kernel-level file attribute caching and bulk metadata handling. Its vmxnet3 paravirtualized network adapter and VMM (Virtual Machine Monitor) optimize syscall translation and reduce round-trip overhead. VirtualBox relies on VirtualBox Shared Folders (VBoxSF) over a legacy channel (Main Integration Service), offering no effective syscall caching.

As a result, pip install -r requirements.txt in a VirtualBox VM with shared folders typically takes 2–3× longer than in VMware, due to unbatched stat() calls.

Here's a trace of the I/O pattern during a typical install:

$ strace -e trace=openat,stat,pread64 pip install requests 2>&1 | head -10
openat(AT_FDCWD, "/usr/lib/python3.11/site-packages", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
stat("/usr/lib/python3.11/site-packages/requests", 0x7fffbc2a12c0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/tmp/pip-install-abc123/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
stat("/tmp/pip-install-abc123/requests", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
pread64(3, "requests\nurllib3\nchardet\n", 8192, 0) = 23

Enter fullscreen mode Exit fullscreen mode

Each stat() and openat() crosses the hypervisor layer. VMware caches metadata in kernel space, reducing roundtrips. VirtualBox does not. For a dependency tree with 300+ packages, this results in O(n²) syscall amplification —each unused path check repeats over the same uncached remote paths.

“If your dev VM feels ‘slow’, it’s likely due to 50,000+ stat() calls pip makes—each crossing a high-latency bridge.”

💾 Disk I/O: Raw vs. Dynamic vs. Preallocated

VMware defaults to preallocated thin provisioning with hot-spot tracking : frequently accessed blocks are cached in host RAM. This reduces latency for package installs and database operations.

VirtualBox uses VDI (Virtual Disk Image) with basic dynamic allocation. It grows on write, but suffers from fragmentation under write-heavy workloads like database migrations or pip wheel builds.

Use fio to benchmark sustained sequential reads:

$ fio --name=seqread --bs=64k --size=1G --runtime=30 --iodepth=4 --direct=1 --rw=read --time_based
seqread: (g=0): rw=read, bs=(R) 64KiB-64KiB, (W) 64KiB-64KiB, (T) 64KiB-64KiB, ioengine=sync, iodepth=4
fio-3.28
Starting 1 process
seqread: Laying out IO file (1 file / 1024MiB)
Jobs: 1 (f=1): [R] [100.0% done] [98MiB/0kiB/0kiB /s] [1568/0/0 iops] [eta 00m:00s]

Enter fullscreen mode Exit fullscreen mode

Typical results for a Windows 11 host, Ubuntu 22.04 guest:

  • VMware Workstation : ~110–130 MiB/s
  • VirtualBox : ~60–80 MiB/s

The gap widens under 4K random read/write loads—common with SQLite, PostgreSQL temporary files, and **pycache** churn.

🧠 Memory Overhead: Why VMware Uses More — But Wisely

VMware consumes ~500MB of host RAM per idle VM, compared to ~300MB for VirtualBox. However, it employs transparent page sharing (TPS) and memory ballooning , which deduplicate identical memory pages across VMs.

For Python development, this means:

  • Multiple Ubuntu 22.04 VMs share base OS pages (glibc, kernel modules, Python interpreter binaries).
  • Boot time for a second VM drops significantly because shared pages are already resident.

VirtualBox lacks TPS. Each VM pays the full RAM cost for duplicated pages, limiting efficient multi-VM workflows.


🤝 Integration — How Seamless Is Your Workflow?

Development velocity depends on transparent cross-environment interaction: file sync, clipboard flow, network routing, and GUI app interoperability.

VMware's Unity Mode allows Linux GUI applications (PyCharm, VS Code) to appear directly on the Windows desktop, with proper windowing and scaling. VirtualBox offers Seamless Mode , but it’s unstable under GNOME 40+ and KDE Plasma 5.25+, often breaking after kernel updates or display manager changes.

📁 Shared Folders: Synced or Served?

VMware presents shared folders via HGFS with client-side caching :

  • File reads are cached in guest RAM.
  • Writes are batched and flushed asynchronously.
  • inotify events are delivered reliably and promptly—critical for Django’s runserver -autoreload, pytest-watch, or mkdocs serve.

VirtualBox Shared Folders operate over SMB without default client caching. This causes:

  • High-latency file access.
  • Missed or delayed inotify events.
  • Editor freezes in VS Code or Sublime Text when indexing large Python projects.

Test inotify responsiveness with this script:

import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler

class Handler(FileSystemEventHandler):
    def on_modified(self, event):
        print(f"Modified: {event.src_path}")

observer = Observer()
observer.schedule(Handler(), path=".", recursive=True)
observer.start()
try:
    while True:
        time.sleep(1)
except KeyboardInterrupt:
    observer.stop()
observer.join()

Enter fullscreen mode Exit fullscreen mode

Run it in both VMs while saving a file from the host editor. VMware captures every write immediately. VirtualBox often skips events or delays notification by 2–3 seconds.

🌐 Network Modes: Host-Only, NAT, Bridged — and Python Implications

For local Python web services (Flask, Django, FastAPI), reliable host-to-guest connectivity and guest-to-internet access are essential.

Both support:

  • NAT (default): guest can reach internet, host cannot reach guest.
  • Bridged : guest gets IP on LAN.
  • Host-only : isolated host-VM network.

But VMware adds persistent NAT port forwarding rules with GUI support. Rules survive reboots and can be named (e.g., flask-dev:5000). It also provides a DNS proxy (vmware-vmx) that resolves custom domains like project.vm or api.vm without hostfile edits.

VirtualBox requires manual configuration via VBoxManage:

$ VBoxManage modifyvm "python-dev-vm" --natpf1 "guestssh,tcp,,2222,,22"

Enter fullscreen mode Exit fullscreen mode

Output:

"
VBoxManage: error: The machine 'python-dev-vm' is already locked for a session (or being locked or unlocked)
"

These rules are lost unless exported as part of a scripted definition and don’t restore cleanly after VM reimport.

VMware applies NAT rules instantly through the UI.


📦 Ecosystem — What Tools Talk to Your VM?

Your hypervisor choice impacts toolchain compatibility with Vagrant, Docker, CI/CD, and provisioning systems.

🛠 Vagrant: VMware is a Paid Plugin, VirtualBox is Free

Vagrant supports both, but the VMware provider requires a one-time $80 plugin (vagrant-vmware-desktop). VirtualBox is free and auto-detected.

Still, VMware offers:

  • Faster vagrant up due to optimized snapshot and disk handling.
  • Stable nfs and rsync synced folder modes.
  • Fewer file permission conflicts on Windows hosts.

Example configuration:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/22.04"
  config.vm.synced_folder "./code", "/home/vagrant/code", type: "nfs"
  config.vm.provider "vmware_desktop" do |vmware|
    vmware.vmx["memsize"] = "4096"
    vmware.vmx["numvcpus"] = "2"
  end
end

Enter fullscreen mode Exit fullscreen mode

VirtualBox is limited to vboxsf or rsync—both struggle with real-time file event propagation and large sync trees.

🐳 Docker Inside VM: Nested Virtualization Reality

Running Docker-in-VM (e.g., docker-compose with Python services) requires nested virtualization.

  • VMware Workstation 17+ enables VT-x/AMD-V passthrough by default on supported CPUs.
  • VirtualBox supports it, but fails if the host is itself virtualized (e.g., WSL2, cloud VMs, or nested environments).

Verify nested virtualization:

$ cat /sys/module/kvm_intel/parameters/nested
Y

Enter fullscreen mode Exit fullscreen mode

If output is Y, you can run docker with -platform=linux/amd64 even on ARM hardware (via QEMU emulation). VMware also supports USB 3.1 pass-through , useful for IoT Python projects (e.g., serial devices, hardware tokens, Raspberry Pi emulators).


💰 Cost and Licensing — Is Free Actually Cheaper?

VirtualBox is open-source and free. VMware Workstation Pro costs $199 (one-time) for personal use.

But "free" incurs opportunity cost.

Estimate:

  • 10 minutes/day lost to slow pip install → ~40 hours/year.
  • 5 minutes/day troubleshooting autoreload or sync issues → ~20 hours/year.
  • Additional delays from UI crashes or integration failures.

At $25/hour, that’s $1,500/year in lost productivity —eight times the VMware license cost.

VMware provides academic discounts and free licenses via the VMware Open Source Licensing Program for active open-source contributors.

VirtualBox remains viable only if:

  • Budget is strictly zero.
  • Host is Linux (where vboxdrv integration is more stable).
  • GUI app integration or seamless mode isn’t needed.

For Windows or macOS hosts, VMware delivers a significantly better return on investment.

🔐 Security and Updates: Who Patches Faster?

VMware issues security patches within days of CVE disclosure (e.g., CVE-2023-20889). Updates are tested and delivered via built-in auto-updater.

VirtualBox patch cycles are slower. The vboxdrv kernel module frequently breaks after Linux kernel updates, requiring manual rebuilds.

Example failure:

$ sudo /sbin/vboxconfig
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

Enter fullscreen mode Exit fullscreen mode

Output from dmesg:

"
vboxdrv: Unknown symbol __stack_chk_guard (err -2)
vboxdrv: disagrees about version of symbol module_layout
"

This halts development until resolved—often requiring manual DKMS rebuilds or downgrading the kernel.


🟩 Final Thoughts

The virtualbox vs vmware python development decision shouldn’t hinge on initial price. It should reflect the cumulative cost of I/O latency, integration gaps, and toolchain friction.

VMware Workstation delivers a predictable , responsive , and deeply integrated environment for Python developers, especially on Windows and macOS. The efficiency gains—faster installs, reliable file watching, stable networking—compound daily.

VirtualBox is adequate for lightweight use or Linux hosts. But for sustained, high-velocity Python development, VMware is the right default.

Choose based on time saved, not dollars spent.

❓ Frequently Asked Questions

Can I run both VirtualBox and VMware on the same machine?

Yes, but not simultaneously. Both require exclusive access to hardware virtualization (VT-x/AMD-V). Running one while the other’s kernel modules are loaded can cause system instability or boot failures. Unload one before starting the other. (Also read: 🐍 python pip vs pipenv vs poetry — which one should you actually use?)

Does VMware Workstation support Linux hosts?

Yes. VMware Workstation Pro runs on Ubuntu, RHEL, and other major distributions. It integrates well with GNOME and KDE, and supports Wayland (on newer versions). However, many Linux users prefer VirtualBox due to licensing and kernel module transparency.

Is there a performance difference when using WSL2 instead of a VM for Python?

Yes — WSL2 outperforms both VMs for most CLI-based Python tasks because it runs a real Linux kernel without full hardware emulation. However, it lacks native GUI app support and has distinct networking behavior. Use WSL2 for terminal-centric workflows; use VMware for full desktop Linux environments.

📚 References & Further Reading

  • VMware Workstation documentation — official guide to features, networking, and performance tuning: docs.vmware.com