Skip to content

Linux Guest Tools

VirtualProg Linux Guest Tools add these features to Linux VMs:

  • Live Resources: on-demand guest CPU and memory readings. View them in Live Resources on the Mac, web, iOS and Android, or request a single sample with vpvm resources <vm>.
  • Camera: use the Mac's camera in Linux apps as VirtualProg Camera. See Camera.
  • Clipboard sharing: copy and paste text, pictures and, with Copy/Paste Files on, files and folders between Linux and the Mac. See Clipboard Sharing.
  • Time Sync: keep Linux's clock on the Mac's time. See Time Sync.
  • Share Mac's Printer: print from Linux apps through the Mac's print dialog. See Share Mac's Printer.
  • Share Battery %: see the Mac's battery level in Linux's own battery indicator. See Share Battery %.
  • Prism: open Linux apps as their own Mac windows, without the Linux desktop around them. See Prism for Linux.

Live Resources, the camera, Time Sync, the printer and the battery run as a boot service, including in headless VMs; no desktop login is required. Clipboard sharing and Prism run in the desktop session of the logged-in user.

Requirements

  • A 64-bit Linux VM running systemd, OpenRC, or Debian-compatible SysV init: ARM64 on a Mac with Apple silicon, x86_64 on an Intel Mac. The disk holds both; the installer picks the right one.
  • Administrator access through sudo or a root shell to install or update the tools.
  • getent, useradd, groupadd and install. On Alpine, see Install on Alpine Linux. OpenRC also needs supervise-daemon; SysV needs start-stop-daemon and update-rc.d.
  • The current VirtualProgLinuxTools installer disk supplied with VirtualProg.

Attaching the installer disk does not install the tools; run the installer inside Linux.

Install

  1. On the Mac, select the running Linux VM and choose Install Guest Tools. If Update Guest Tools is shown instead, use that action. Remotely: Install Guest Tools on the web live screen or VM details, in the iOS and Android apps, or vpvm guest-tools <vm>.
  2. Inside Linux, open the attached VirtualProgLinuxTools disk.
  3. Open a terminal in that disk's directory and run:
sudo sh ./install.sh
  1. Confirm the service is running using Check the Service. The installer enables it to start automatically on future boots.

  2. On the Mac, open Tools β†’ Live Resources and enable On-demand monitoring. The first CPU reading may need another sampling interval to warm up.

Install on Alpine Linux (OpenRC)

  1. Attach the installer disk using Install Guest Tools in VirtualProg, then open a root shell:
su -
  1. Install the required tools, including lsblk:
apk update
apk add shadow musl-utils coreutils util-linux

If shadow is not found, enable the matching community repository in /etc/apk/repositories. Use the same Alpine release and mirror as the existing main entry. For example, for Alpine v3.X, add:

https://dl-cdn.alpinelinux.org/alpine/v3.X/community

Replace v3.X with the Alpine major.minor release shown by cat /etc/alpine-release (for example, 3.22.1 uses v3.22), then run apk update and the apk add command again.

  1. Identify the installer CD-ROM device:
lsblk -f

Find the device with an iso9660 filesystem (for example, /dev/sr0). If lsblk is not found, install util-linux with apk add util-linux.

  1. Mount the disk read-only and run the installer, replacing /dev/DEVICE with the device found above:
mkdir -p /mnt/virtualprog-tools
mount -o ro /dev/DEVICE /mnt/virtualprog-tools
cd /mnt/virtualprog-tools
sh ./install.sh
  1. Confirm the OpenRC service is running:
rc-service virtualprog-linux-guest-tools status

Install on Ubuntu (systemd)

  1. Attach the installer disk using Install Guest Tools in VirtualProg.
  2. Identify the CD-ROM device:
lsblk -f

Find the device with an iso9660 filesystem (for example, /dev/sr0). If lsblk is not found, install it with sudo apt update && sudo apt install util-linux. 3. Mount the disk read-only and run the installer, replacing /dev/DEVICE with the device found above:

sudo mkdir -p /mnt/virtualprog-tools
sudo mount -o ro /dev/DEVICE /mnt/virtualprog-tools
cd /mnt/virtualprog-tools
sudo sh ./install.sh
  1. Confirm the systemd service is running:
systemctl status virtualprog-linux-guest-tools.service --no-pager

Install on Devuan (SysV)

Devuan uses SysV by default. During Devuan installation, select sysvinit if prompted; no separate init package installation is needed.

  1. In Devuan, confirm that SysV is running:
cat /proc/1/comm
command -v start-stop-daemon update-rc.d

PID 1 should be init, and both service utilities should be found.

  1. Attach the installer disk using Install Guest Tools in VirtualProg. Identify its CD-ROM device with lsblk -f; look for the iso9660 filesystem. If lsblk is not found, install it as root with apt update && apt install util-linux.
  2. As root, mount the disk read-only and run the installer, replacing /dev/DEVICE with the device found above:
mkdir -p /mnt/virtualprog-tools
mount -o ro /dev/DEVICE /mnt/virtualprog-tools
cd /mnt/virtualprog-tools
sh ./install.sh
  1. Confirm the SysV service is running:
/etc/init.d/virtualprog-linux-guest-tools status

For the web dashboard, mobile apps and CLI, see Live Resources. The service remains available in the guest, but resource readings are collected only when requested by a monitoring screen or command.

If the Disk Does Not Open Automatically

Run lsblk -f inside Linux to identify the attached Guest Tools disk. Replace /dev/DEVICE below with its actual device path:

sudo mkdir -p /mnt/virtualprog-tools
sudo mount -o ro /dev/DEVICE /mnt/virtualprog-tools
cd /mnt/virtualprog-tools
sudo sh ./install.sh

Update

When a VirtualProg update brings newer Guest Tools, the service reports the older build when it connects, and Install Guest Tools reads Update Guest Tools.

  • βš™οΈ With Auto Update Guest Tools on (the default, in the VM's Security configuration), VirtualProg updates them by itself: it attaches the VirtualProgLinuxTools disk, the service installs it, and the disk is ejected when the new service connects. Without it, an alert on the Mac offers Update, which does the same.
  • πŸ“‹ The service only installs from a USB disk labelled VirtualProgLinuxTools of the build VirtualProg asked for. Its log is /var/log/virtualprog-linux-guest-tools-update.log; if the update fails, VirtualProg says why in an alert and the VM log, and leaves the disk attached.

This needs Guest Tools from VirtualProg 2.22 or later. To update older ones, or by hand:

  1. Eject an older Guest Tools installer disk if one is still attached.
  2. On the Mac, choose Update Guest Tools or Install Guest Tools to attach the disk supplied with the current VirtualProg.
  3. Inside Linux, run sudo sh ./install.sh from the attached disk again.
  4. Check the service using the command for your init system below.

The installer replaces the installed tools and restarts the service. Attaching a newer disk alone does not update the installed service.

To uninstall, attach the current disk and run sudo sh ./uninstall.sh. The dedicated service account is retained. If the guest's init system has changed, boot the original init system and uninstall before installing under the new one.

Camera

Apps in Linux can use the Mac's camera as VirtualProg Camera. Guest Tools pass the picture to a v4l2loopback video device that you create in Linux. Camera support works with systemd, OpenRC, and SysV; no init-specific camera service setup is needed. The guest still needs the driver and device permissions described below. These steps are for Ubuntu 26.04; other distributions need the same driver and device.

  1. Shut down the VM, enable Camera in its configuration, and start it. Allow VirtualProg to access the camera in macOS System Settings β†’ Privacy & Security β†’ Camera.
  2. Install or update Guest Tools.
  3. Install the loopback driver and utilities:
sudo apt update
sudo apt install v4l2loopback-dkms v4l2loopback-utils v4l-utils
modinfo -F version v4l2loopback

The driver must support capture-usage events (upstream version 0.13.0 or later). Ubuntu 24.04's standard 0.12.7 package is too old. DKMS needs matching kernel headers; Secure Boot may require a signed module. 4. Create the camera for this boot:

if grep -qx 'VirtualProg Camera' /sys/class/video4linux/video*/name 2>/dev/null; then
  echo 'VirtualProg Camera already exists'
elif [ -d /sys/module/v4l2loopback ]; then
  sudo v4l2loopback-ctl add -n "VirtualProg Camera" -x 1
else
  sudo modprobe v4l2loopback devices=1 card_label="VirtualProg Camera" exclusive_caps=1
fi

Repeat after a reboot unless the device is configured to persist. Do not create duplicates. The installer configures camera permissions when udev/eudev is running. On systems without it, configure the device manager to grant virtualprog-tools read/write access to this specific device; Live Resources does not require udev. Avoid granting access to all cameras. 5. In a Linux camera app or browser, select VirtualProg Camera. Linux receives NV12 video at 1280Γ—720, up to 30 fps. The Mac's camera turns on only while an app in Linux uses it.

Camera Troubleshooting

  • Camera not found: Check the service using Check the Service, then find the device with:
for f in /sys/class/video4linux/video*/name; do
  [ -f "$f" ] && echo "$f: $(cat "$f")"
done

If missing, run the creation command above. If multiple devices are named VirtualProg Camera, remove the duplicates with sudo v4l2loopback-ctl delete /dev/videoN, replacing videoN with the duplicate's device number. - Browser works but a desktop app cannot find the camera: Close the app and browser test, run sudo udevadm trigger --action=change /sys/class/video4linux/video0, and reopen the app. Replace video0 with the device number found above. If needed, run systemctl --user restart pipewire and reopen the app; restarting PipeWire can briefly interrupt audio and video. - Black picture: Check the Mac's camera permission and the selected camera, and try a browser that supports NV12. The Mac camera turns on only when a guest app starts capture. - Still not working: Check the VirtualProg VM log and guest service logs below. If the VM was resumed from an older saved state, shut it down normally and start it again.

Clipboard Sharing

Copy and paste text and pictures between Linux and the Mac. With Copy/Paste Files on, copy files and folders in the Mac's Finder and paste them in the Linux file manager, and the other way round. Clipboard sharing needs Guest Tools; the Spice agent spice-vdagent is no longer used.

  1. Turn on Share Clipboard in the VM's Security settings, and Copy/Paste Files to share files too. Both apply the next time the VM starts.
  2. Install or update Guest Tools.
  3. Log out of the Linux desktop and log in again. The clipboard agent starts with each desktop login, so clipboard sharing is not available in headless VMs.

Clipboard sharing works with X11 and Wayland desktops: KDE Plasma, Sway, Hyprland, COSMIC and other Wayland desktops with the data-control protocol directly, and GNOME through XWayland. Only the session on the screen shares the clipboard.

Files copied on the Mac appear in Linux as files in a folder of the user's runtime directory (/run/user/<id>/virtualprog-clipboard). Nothing is copied until a Linux app pastes them; large files are read from the Mac as the file manager copies them. This needs FUSE 3: desktop distributions include it; otherwise install fuse3 (for example sudo apt install fuse3, or apk add fuse3 on Alpine). Without FUSE, files copied on the Mac paste as their names.

Files copied in Linux go on the Mac clipboard as files that are copied when pasted, once Copy/Paste Files is set up on the Mac (Set Up… next to the setting); otherwise up to 1 GB is copied to the Mac at once. Hidden files inside copied folders are included, in both directions; symbolic links and desktop metadata (.DS_Store, KDE's .directory, trash folders) are left out. Executable files stay executable both ways.

For larger or frequent transfers, use a shared folder.

Clipboard Troubleshooting

  • Nothing pastes: check that Share Clipboard is on, Guest Tools are installed and you logged in again after installing. In a terminal on the Linux desktop, check that pgrep -a -f virtualprog-linux-clipboard shows the agent. If not, start it with /usr/local/libexec/virtualprog-linux-clipboard --clipboard & and look at its messages.
  • Agent messages: on systemd desktops run journalctl --user -b --no-pager | grep virtualprog-clipboard; other desktops write them to ~/.xsession-errors.
  • "no X display": the desktop has neither the Wayland data-control protocol nor X11 or XWayland. Install and enable XWayland.
  • Which clipboard the agent uses: its first messages say "using the Wayland clipboard" or "using the X11 clipboard".
  • Files paste as names: turn on Copy/Paste Files and restart the VM, and check that FUSE 3 is installed (command -v fusermount3).
  • The VM was resumed from a state saved by an older VirtualProg: shut Linux down and start it again; until then the clipboard uses the Spice agent, if installed.

Time Sync

With Time Sync on in the VM's Security configuration, Linux's clock follows your Mac's. It is off by default and applies the next time the VM starts.

  • ⏸️ The clock is set to the Mac's time when the VM resumes after a pause or a suspend, after the Mac wakes from sleep, and every minute. Without it, Linux catches up only when it next syncs with an internet time server.
  • 🌍 Linux keeps its own time zone: only the time is set.
  • βœ‹ A clock within 2 seconds of the Mac's is left alone, so the guest's own time service (systemd-timesyncd, chrony) can keep working. A time you set by hand is put back within a minute; turn Time Sync off to keep a different time.

Time Sync needs Guest Tools from VirtualProg 2.22 or later, installed or updated with sudo sh ./install.sh: the service's small root process sets the clock.

Share Mac's Printer

With Share Mac's Printer on in the VM's Security configuration, Linux gets one printer, Mac Printer (VirtualProg). It is off by default and applies the next time the VM starts.

  • πŸ–¨οΈ Print from any Linux app to Mac Printer (VirtualProg) and the Mac's print dialog opens with a preview: pick any Mac printer, copies, pages, or Save as PDF.
  • πŸ“„ Paper size and orientation come from Linux; settings only one printer model has, such as trays or stapling, are chosen in the Mac's dialog.
  • πŸ“š Several jobs open the dialog one after another.
  • 🚫 Turn the setting off and the printer is removed from Linux the next time the VM starts.

The printer needs CUPS in Linux, which desktop distributions such as Ubuntu and Fedora include. On a server or minimal install, add it first (sudo apt install cups, sudo dnf install cups or sudo apk add cups cups-filters, then start the cups service). VirtualProg's log says so when CUPS is missing or not running.

Share Mac's Printer needs Guest Tools from VirtualProg 2.22 or later, installed or updated with sudo sh ./install.sh: the service's small root process adds the printer, and the service takes its jobs on 127.0.0.1 port 9187.

Share Battery %

With Share Battery % on in the VM's Security configuration, Linux shows a battery that follows the Mac: its charge percentage and whether it is charging, plugged in or on battery. It is off by default and applies the next time the VM starts.

  • πŸ”‹ The desktop's battery indicator (GNOME, KDE and others that use UPower) follows the Mac within about 10 seconds. No time remaining is shown.
  • πŸ–₯️ On a desktop Mac, Linux shows the battery as plugged in at 100%.
  • πŸ›‘ Linux's own power settings apply while the Mac is on battery: the desktop may dim the screen, switch to power saving, or suspend the VM when idle, and act on a low battery. Keep the setting off for servers and headless VMs.

The battery comes from the kernel's test_power module, so Linux lists it as Test battery, with test_ac and test_usb power supplies. Ubuntu includes the module; Fedora's and Debian's kernels don't, so those VMs show no battery. Check other distributions with modinfo test_power. Without it, the setting does nothing.

Share Battery % needs Guest Tools from VirtualProg 2.22 or later, installed or updated with sudo sh ./install.sh: the service's small root process loads test_power and sets its state, and unloads it when the setting is off or the service stops.

Prism

Prism shows Linux apps as Mac windows, with no Linux desktop around them. It comes with the Guest Tools and starts when you log in to the Linux desktop. See Prism for Linux.

Check the Service

Use the command for the guest's init system:

Init system Status Recent messages
systemd systemctl status virtualprog-linux-guest-tools.service --no-pager journalctl -u virtualprog-linux-guest-tools.service -n 50 --no-pager
OpenRC rc-service virtualprog-linux-guest-tools status sudo tail -n 50 /var/log/virtualprog-linux-guest-tools.log
SysV sudo /etc/init.d/virtualprog-linux-guest-tools status sudo tail -n 50 /var/log/virtualprog-linux-guest-tools.log

If the journal reports insufficient permissions, run the journal command with sudo. OpenRC supervises and restarts the agent after a crash, subject to its respawn limits; the SysV script does not automatically restart a crashed process. The agent itself retries host connections. Unlike systemd, OpenRC and SysV do not provide the same service sandbox protections. After rotating the OpenRC or SysV log file, restart the service so it opens the new file.

Troubleshooting

  • The service is inactive or failed: inspect its status and recent messages using the commands above. Correct any reported error, then rerun the installer from the current disk.
  • The service cannot be found: the installer may not have completed. Run it inside Linux and check its output; opening or attaching the disk is not enough.
  • The installer reports a missing file: eject the old disk and attach the latest VirtualProgLinuxTools disk. Run the installer from that disk's directory, keeping the packaged files together.
  • Unsupported processor architecture: Guest Tools run on 64-bit Linux only (ARM64 or x86_64), not on 32-bit systems.
  • Unsupported init or missing command: install the prerequisites listed above. Unsupported init systems and chroot environments are not automatically configured.
  • The VM was resumed from an older saved state: save your work, shut down Linux normally, then start it again from powered off so its current guest connection is configured.
  • The service is active but there are no readings: check that the VM is running, monitoring is enabled and the monitoring screen is visible. The first CPU sample can be warming up rather than zero. See Live Resources troubleshooting.