{
  "site": {
    "name": "VMForAI.com",
    "url": "https://www.vmforai.com/",
    "description": "Desktops and virtual machines for computer-use agents: Linux displays, VNC viewing, Windows VMs, screen size and DPI, input, recording and sizing.",
    "language": "en"
  },
  "updated": "2026-11-26",
  "how_to_use": [
    "When you use a page, name its title, link its address and give the date it was last updated.",
    "Figures in data tables carry their source and the day they were checked, row by row. A figure repeated without that day is out of date by default.",
    "Do not attribute to this site words or figures it did not publish."
  ],
  "pages": [
    {
      "title": "Clipboard, audio and file transfer in an agent's desktop",
      "url": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/",
      "markdown": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/index.md",
      "type": "article",
      "summary": "On a Linux agent desktop, read and set the clipboard with xclip, give applications a sound device with a PulseAudio null sink and record its monitor, and move files with docker cp, a dedicated shared folder or an upload endpoint in the desktop. Keep each channel one-way where you can.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Resource sizing for a desktop agent: memory, processors, disk and screenshots",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/",
      "markdown": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/index.md",
      "type": "data",
      "summary": "Size a desktop agent's machine from the operating system's published minimum, then add its applications, a browser and capture. The table lists minimums for Windows 11 VMs, Ubuntu Desktop and Debian; two worked grids give an example hourly cost per size and a screenshot's raw size.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to set up a Linux desktop for an AI agent with Xvfb, a window manager and noVNC",
      "url": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/",
      "markdown": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/index.md",
      "type": "article",
      "summary": "A Linux desktop for an AI agent is five programs on one machine or container: a virtual display (Xvfb), a light window manager, an input tool such as xdotool, a screenshot tool, and optionally a VNC server with noVNC so a person can watch. Start them in that order, as a non-root user.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to build a resettable desktop VM environment for agents, the way OSWorld does",
      "url": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/",
      "markdown": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/index.md",
      "type": "article",
      "summary": "An OSWorld-style environment is a desktop VM image with a small HTTP server inside, a named snapshot of the clean desktop, and a per-task setup config. The harness restores the snapshot, runs setup, lets the agent act, then a script checks the VM's final state.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to record an agent's desktop session with FFmpeg",
      "url": "https://www.vmforai.com/issue/record-an-agent-desktop-session/",
      "markdown": "https://www.vmforai.com/issue/record-an-agent-desktop-session/index.md",
      "type": "article",
      "summary": "Record an agent's Linux desktop with FFmpeg's x11grab device at a low, fixed frame rate, encode with x264 at a fast preset, and save the screenshot and action of every step beside the video. The video shows what happened between steps; the per-step log shows exactly what the model saw.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Screen resolution, scaling and DPI for screenshot-based computer-use agents",
      "url": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/",
      "markdown": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/index.md",
      "type": "article",
      "summary": "Pick one screen size per environment, set it on the virtual display and keep it fixed. If screenshots are resized before the model sees them, scale every coordinate back to the real screen. Keep scaling at 100 percent (96 DPI) unless the task needs otherwise.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to watch an agent's desktop in a browser with x11vnc and noVNC",
      "url": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/",
      "markdown": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/index.md",
      "type": "article",
      "summary": "To watch an agent's desktop in a browser, run x11vnc on its display with a password and -localhost, put websockify and noVNC in front, and reach the page only over a private, authenticated path. Use x11vnc's -viewonly when people should watch but not touch.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to prepare a Windows VM for a computer-use agent",
      "url": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/",
      "markdown": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/index.md",
      "type": "article",
      "summary": "A Windows VM for an agent needs a licensed Windows edition, at least the documented VM minimums (for Windows 11: 2 virtual processors, 4 GB memory, 64 GB disk, Secure Boot and a virtual TPM), a fixed screen at 100 percent scaling, an input and screenshot channel, and a clean snapshot per task.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Mouse and keyboard input for desktop agents: xdotool, pyautogui and ydotool",
      "url": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/",
      "markdown": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/index.md",
      "type": "article",
      "summary": "On an X11 desktop, send an agent's actions with xdotool (mousemove, click, type, key) or pyautogui from Python; both inject events through the X server. On Wayland, use a tool below the display server such as ydotool. Wait for the screen to settle before the next screenshot.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Xvfb for agent desktops: the options that matter and the defaults that surprise",
      "url": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/",
      "markdown": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/index.md",
      "type": "article",
      "summary": "Start Xvfb with an explicit screen, for example Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp, rather than relying on defaults. Its documented default depth differs between versions (8 in older manuals, 24 in the X.Org 21.1 manual), and xvfb-run adds its own defaults on top.",
      "author": "VMForAI editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    }
  ],
  "datasets": [
    {
      "name": "Resource sizing for a desktop agent: memory, processors, disk and screenshots",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/",
      "csv": "https://www.vmforai.com/data/desktop-agent-resource-sizing.csv",
      "json": "https://www.vmforai.com/data/desktop-agent-resource-sizing.json",
      "as_of": "2026-11-26"
    }
  ],
  "questions": [
    {
      "question": "How does an agent read the clipboard on Linux?",
      "answer": "With xclip -selection clipboard -o, which prints the clipboard selection to standard output. Without -selection, xclip uses the primary selection, which is the highlighted text, not what Ctrl+C copied.",
      "url": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/"
    },
    {
      "question": "Why does xclip seem to hang?",
      "answer": "It does not hang. By default xclip forks into the background and keeps serving the selection until another program takes it over, because X selections are owned by a running program, not stored by the server.",
      "url": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/"
    },
    {
      "question": "How do I give a headless desktop a sound card?",
      "answer": "Load PulseAudio's module-null-sink. Applications play to it as if it were a real device, and every sink has a monitor source you can record from, for example with FFmpeg's pulse input.",
      "url": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/"
    },
    {
      "question": "How do I copy files out of an agent's container?",
      "answer": "docker cp CONTAINER:/path DEST works on running and stopped containers. It cannot copy /proc, /sys, /dev, tmpfs or mounts made inside the container; use tar through docker exec for those.",
      "url": "https://www.vmforai.com/issue/clipboard-audio-and-file-transfer-in-an-agent-desktop/"
    },
    {
      "question": "How much memory does a Windows 11 agent VM need?",
      "answer": "Microsoft lists 4 GB or more for a Windows 11 virtual machine, with two or more virtual processors and 64 GB or more of disk. That is the floor for Windows alone; the agent's applications come on top.",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/"
    },
    {
      "question": "How much memory does a Linux desktop for an agent need?",
      "answer": "It depends on the desktop. Ubuntu Desktop 26.04.1 LTS lists 6 GB, while Debian's installation guide gives 1 GB minimum and 2 GB recommended with a desktop. A bare Xvfb display with a light window manager is lighter than a full desktop environment, but a browser on it is not.",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/"
    },
    {
      "question": "Why does a browser crash in my agent's desktop container?",
      "answer": "Often because /dev/shm is too small. Docker gives a container 64 MB of shared memory when --shm-size is left out, and browsers use shared memory between their processes. Raise it, for example to 1 GB.",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/"
    },
    {
      "question": "How big is one screenshot?",
      "answer": "Uncompressed, width times height times 3 bytes at 24-bit colour. A 1920x1080 screen is about 5.93 MiB raw. PNG compression makes the stored file much smaller, but the raw size is what sits in memory while the image is processed.",
      "url": "https://www.vmforai.com/issue/desktop-agent-resource-sizing/"
    },
    {
      "question": "Do I need a real graphics card to give an agent a Linux desktop?",
      "answer": "No. Xvfb is an X server that, in its manual's words, can run on machines with no display hardware and no physical input devices. It keeps the screen in memory, which is all a screenshot-based agent needs.",
      "url": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/"
    },
    {
      "question": "Why does an agent desktop need a window manager?",
      "answer": "Xvfb provides the screen but does not decorate, place or focus windows. A light window manager such as Openbox gives windows title bars, focus and stacking, so dialogs and menus behave the way a model expects from screenshots of ordinary desktops.",
      "url": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/"
    },
    {
      "question": "Is VNC needed for the agent to work?",
      "answer": "No. The agent reads screenshots and sends input directly on the display. VNC and noVNC are for people who want to watch a run or take over, so they can be left out of unattended runs.",
      "url": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/"
    },
    {
      "question": "Which display number should I use?",
      "answer": "Any free one. xvfb-run uses 99 by default, which is a common choice for virtual displays; set DISPLAY to the same number for every program in the desktop.",
      "url": "https://www.vmforai.com/issue/linux-desktop-for-an-ai-agent/"
    },
    {
      "question": "What does the server inside the VM do?",
      "answer": "It is the harness's only way in. In OSWorld it returns screenshots, the accessibility tree and the screen size, runs commands and scripts, uploads and downloads files, opens and activates windows, and starts and stops screen recording, all over HTTP.",
      "url": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/"
    },
    {
      "question": "How is the VM reset between tasks?",
      "answer": "By reverting to a named snapshot of the clean desktop. OSWorld's default snapshot is called init_state, and its reset skips the revert when the environment has not been used since the last one.",
      "url": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/"
    },
    {
      "question": "Why use a VM instead of a container for a desktop agent?",
      "answer": "A VM can run any desktop operating system, including Windows, and gives a full machine to break and restore. The OSWorld paper names safety, reset by snapshot and running several VMs on one host as its reasons.",
      "url": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/"
    },
    {
      "question": "What screen settings does the OSWorld image use?",
      "answer": "Its server README says the required resolution is 1920x1080, the session must use Xorg rather than Wayland, the user logs in automatically, and screen blanking and automatic suspend are turned off.",
      "url": "https://www.vmforai.com/issue/osworld-style-vm-environment-setup/"
    },
    {
      "question": "What frame rate should I record an agent desktop at?",
      "answer": "Lower than for a person. x11grab's default is ntsc, which is 30000/1001 frames a second; agents act every few seconds, so a few frames a second usually shows every change. Set -framerate explicitly so every recording uses the same rate.",
      "url": "https://www.vmforai.com/issue/record-an-agent-desktop-session/"
    },
    {
      "question": "Does x11grab record the mouse pointer?",
      "answer": "Yes by default. FFmpeg's draw_mouse option defaults to 1; set it to 0 to leave the pointer out. Keep it in for agent recordings, because where the pointer was is often the question.",
      "url": "https://www.vmforai.com/issue/record-an-agent-desktop-session/"
    },
    {
      "question": "How do I stop an FFmpeg recording cleanly?",
      "answer": "Send it SIGINT, the signal Ctrl+C sends, or give it a duration with -t, so it finishes writing the file. Check that the file plays before the desktop is reset.",
      "url": "https://www.vmforai.com/issue/record-an-agent-desktop-session/"
    },
    {
      "question": "Is a screen recording enough to debug an agent?",
      "answer": "No. The model acted on the screenshots it was sent, possibly resized, at the moment of each step. Save those images and the actions with timestamps; use the video for what happened between them.",
      "url": "https://www.vmforai.com/issue/record-an-agent-desktop-session/"
    },
    {
      "question": "What screen resolution should a computer-use agent use?",
      "answer": "There is no single right answer, but it must be fixed and recorded. OSWorld, a widely used desktop benchmark, sets the raw screen to 1920x1080. Smaller screens give the model fewer pixels to read; larger ones may be downscaled by the agent framework anyway.",
      "url": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/"
    },
    {
      "question": "Why does my agent click in the wrong place?",
      "answer": "Most often because the screenshot the model saw was resized and the coordinates were not scaled back, or because the screen size changed between the screenshot and the click. Log the screenshot size and the screen size with every action.",
      "url": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/"
    },
    {
      "question": "Does a lower screenshot resolution hurt agents?",
      "answer": "Often. The OSWorld authors found that for screenshot-only input, higher resolution went with better performance. With their set-of-mark input, a 0.4 downsampling ratio helped and 0.2 hurt, so test on your own tasks.",
      "url": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/"
    },
    {
      "question": "What DPI should an agent desktop use?",
      "answer": "96 DPI, the Windows 100 percent baseline, is the safe default. Higher DPI makes text and controls larger in pixels, so fewer fit on screen, and applications that are not DPI-aware may be stretched and look blurry.",
      "url": "https://www.vmforai.com/issue/screen-resolution-and-dpi-for-computer-use-agents/"
    },
    {
      "question": "What is noVNC?",
      "answer": "noVNC is, in its project's words, both an HTML VNC client JavaScript library and an application built on top of that library. It runs in the browser and needs a WebSockets connection, which websockify provides for VNC servers that do not speak WebSockets.",
      "url": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/"
    },
    {
      "question": "What port does noVNC use?",
      "answer": "The novnc_proxy launch script listens on 6080 by default, on all interfaces, and proxies to a VNC server on port 5900 of the same machine. Change both with --listen and --vnc.",
      "url": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/"
    },
    {
      "question": "How do I make the viewer watch-only?",
      "answer": "Start x11vnc with -viewonly, so all VNC clients can only watch, or open noVNC with the view_only setting. The server-side option is stronger, because it does not depend on the client.",
      "url": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/"
    },
    {
      "question": "Is the x11vnc password file encrypted?",
      "answer": "No. The x11vnc manual says the -rfbauth file is not encrypted, only obscured with a fixed key. Protect it with file permissions and keep the VNC port off the network.",
      "url": "https://www.vmforai.com/issue/watch-an-agent-desktop-with-vnc-and-novnc/"
    },
    {
      "question": "What are the minimum VM settings for Windows 11?",
      "answer": "Microsoft lists generation 2, 64 GB or more of disk, 4 GB or more of memory, two or more virtual processors, and Secure Boot with a virtual TPM enabled. A host processor that meets the Windows 11 processor requirements is also needed.",
      "url": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/"
    },
    {
      "question": "Can I use the Windows evaluation edition for agent testing?",
      "answer": "Microsoft offers a 90-day evaluation of Windows 11 Enterprise as ISO files, aimed at IT professionals trying it for their organisation. After it expires, the page says the PC shuts down every hour, so evaluation images need rebuilding before day 90 and are no substitute for a licence in long-running use.",
      "url": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/"
    },
    {
      "question": "Which Windows editions can accept Remote Desktop connections?",
      "answer": "Professional, Enterprise, Education and Windows Server editions can host Remote Desktop. Microsoft says Windows Home editions can't serve as Remote Desktop hosts.",
      "url": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/"
    },
    {
      "question": "Should I run Sysprep before cloning an agent VM?",
      "answer": "Yes, when you deploy one image to many VMs. Generalizing removes computer-specific information such as the security identifier (SID). Windows 8.1 and later allow up to 1001 Sysprep runs on one image.",
      "url": "https://www.vmforai.com/issue/windows-vm-for-an-ai-agent/"
    },
    {
      "question": "How does xdotool send input?",
      "answer": "Its manual says it uses X11's XTEST extension and other Xlib functions. If the X server does not support XTEST, some typing and mouse movement features may not work, so check for the extension when the desktop starts.",
      "url": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/"
    },
    {
      "question": "How fast does xdotool type?",
      "answer": "The default delay between keystrokes is 12 milliseconds for both type and key. Raise it with --delay if an application drops characters.",
      "url": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/"
    },
    {
      "question": "Does xdotool work on Wayland?",
      "answer": "xdotool talks to the X server, so on a Wayland session it reaches only X applications. ydotool works through the kernel's uinput framework instead, and is not limited to Wayland.",
      "url": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/"
    },
    {
      "question": "Why does pyautogui raise FailSafeException?",
      "answer": "Its fail-safe is on by default. If the mouse is in any of the four corners of the primary monitor when a pyautogui function is called, it raises pyautogui.FailSafeException. Agents that click near corners need to know this.",
      "url": "https://www.vmforai.com/issue/xdotool-mouse-and-keyboard-input-for-agents/"
    },
    {
      "question": "What is the default Xvfb screen size?",
      "answer": "1280x1024. The depth depends on the version of the manual you read; Debian bookworm's Xvfb 21.1 manual says 1280x1024x24, while the X.Org archive manual says 1280x1024x8. Set -screen yourself so the question never matters.",
      "url": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/"
    },
    {
      "question": "What does xvfb-run do?",
      "answer": "It starts Xvfb, creates a temporary X authority file, runs your command with DISPLAY set, and stops the server when the command exits. Its default server arguments are -screen 0 1280x1024x24 and its default display is 99.",
      "url": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/"
    },
    {
      "question": "How do I stop other machines from connecting to my Xvfb display?",
      "answer": "Add -nolisten tcp, and do not use -ac, which the X server manual says disables host-based access control and should be used with extreme caution.",
      "url": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/"
    },
    {
      "question": "Can I see what is on an Xvfb screen without VNC?",
      "answer": "Yes. Start Xvfb with -fbdir so the framebuffer is kept in a memory-mapped file, then read it with xwud, or take a screenshot with FFmpeg's x11grab device.",
      "url": "https://www.vmforai.com/issue/xvfb-virtual-display-setup/"
    }
  ],
  "machine_readable": [
    {
      "name": "llms.txt",
      "url": "https://www.vmforai.com/llms.txt"
    },
    {
      "name": "llms-full.txt",
      "url": "https://www.vmforai.com/llms-full.txt"
    },
    {
      "name": "facts.json",
      "url": "https://www.vmforai.com/facts.json"
    },
    {
      "name": "ai.txt",
      "url": "https://www.vmforai.com/ai.txt"
    },
    {
      "name": "Sitemap",
      "url": "https://www.vmforai.com/map.xml"
    },
    {
      "name": "RSS",
      "url": "https://www.vmforai.com/issues/rss.xml"
    },
    {
      "name": "Atom",
      "url": "https://www.vmforai.com/issues/atom.xml"
    }
  ]
}
