macOS - Virtualization
Tart - macOS/Linux VM (also without GUI - good for mac mini)
https://tart.run
Installation
# brew install cirruslabs/cli/tart ### doesn't work right now
### Workaround 2026/10:
brew tap openai/tools
brew trust openai/tools
brew install openai/tools/tart
Download image
# tart clone ghcr.io/cirruslabs/macos-tahoe-base:latest tart-tahoe
tart clone ghcr.io/cirruslabs/macos-tahoe-xcode:latest tart-tahoe
Start
User need's to be logged in (at least once after reboot of host) but ssh login is enough
tart run --no-graphics --net-bridged=en1 tart-tahoe ### No GUI, start in tmux, Bridge on WiFi
# Do not USE --vnc (legacy protocol)
# Use tmux if using ssh or VM is stooped after logout
On HOST
Get VM_IP_ADDRESS:
# tart ip tart-tahoe ### NAT IP (for example 192.168.64.4)
tart ip --resolver=arp tart-tahoe ### For Bridged IP (own DHCP needed or manual IP inside VM)
Using VM
- GUI: Open Remote Desktop using CMD+K and enter vnc://VM_IP_ADDRESS:5900
~/.ssh/config:
Host tart-tahoe
User admin
### And then
ssh $(tart ip tart-tahoe) OR ssh $(tart ip --resolver=arp tart-tahoe)
- Copy files like .gitconfig, .gitignore, .tmux.conf, .ssh/authorized_keys, ...
Mount
To mount a directory, run the VM with the --dir argument:
tart run --dir=proj1:~/src/proj1 --dir=proj2:~/src/proj2 tart-tahoe
Here, the project specifies a mount name, whereas the ~/src/proj1 is a path to the host's directory to expose to the VM. All shared goes in guest to /Volumes/My Shared Files/...
Settings & Management
tart list
tart delete tart-tahoe
tart prune --space-budget 1 ### removes every OCI image under 1GB ...
du -sh ~/.tart/vms ~/.tart/cache/*
pgrep -fl "tart run" ### to see if any VM is running
tart get tart-tahoe
tart stop tart-tahoe
tart set tart-tahoe --cpu 4 --memory 8192 --display 1920x1080pt ### pt is needed for HiDPi
- --memory is in megabytes. You can also grow the disk with --disk-size GB, but it can only increase, and you may need to expand the volume inside the guest afterwards.
VirtualBuddy
- For macOS virtualization using
- Available on GitHub
Increase size of HDD
This process remove Recovery Partition for good! Recovery boot in VirtualBuddy still works.
Create backup.
On host macOS
cd TestVM.vbvm/
truncate -s +5G ./Disk.img
In VM macOS
sudo csrutil disable
# reboot ...
diskutil list
### Look for IDENTIFIER like **Apple_APFS_Recovery Container**
sudo diskutil eraseVolume free "%noformat%" Xdisk1s3X
### Look for IDENTIFIER of main disk like **Apple_APFS Container**
diskutil apfs resizeContainer Xdisk1s2X 68g
sudo csrutil enable
# reboot ...
VMware Fusion
brew install vmware-fusion
- or install from VMware / Broadcom Page
- For Shared Folder in Ubuntu:
-
- mkdir /mnt/hgfs
-
- sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000
Windows 11
Installation without MS account, local only.
During installation it will ask for license, continue and then there is a screen that can ask for network driver or login to MS account. Press Shift + (Fn) F10 and then in command line that will appear run start ms-cxh:localonly
Copied or Moved VM issue
If VMware Fusion asks every start of VM.
cd /Library/Application\ Support/VMware/VMware\ Fusion/Shared
mv vmInventory vmInventory.save
ln -s ~/Library/Application\ Support/VMware\ Fusion/vmInventory .
Check post 44 on VMs constantly asking if I Copied or Moved VM from Ken Feldman
Ubuntu 24 LTS
Install ARM Ubuntu server and then install desktop and VM tools using
sudo apt install -y ubuntu-desktop
sudo apt install -y open-vm-tools open-vm-tools-desktop
Ubuntu (ARM version for macOS) Autoinstall
Download Ubuntu ISO, for example ubuntu-25.10-live-server-arm64.iso
brew install xorriso cdrtools
xorriso -osirrox on -indev ubuntu-25.10-live-server-arm64.iso -extract / iso/
chmod 755 iso/
xorriso -indev ubuntu-25.10-live-server-arm64.iso -osirrox on -extract_boot_images iso/
find iso -type d -exec chmod 755 {} +
find iso -type f -exec chmod 644 {} +
Find EFI partition
find iso/ -name "*img"
### ./iso/mbr_part2_efi.img ---> Use this for -append_partition parameter when building ISO
Edit GRUB
vim iso/boot/grub/grub.cfg
set timeout=3
### append on linux line at the end:
autoinstall ds=nocloud\;s=/cdrom/nocloud/ ---
### Example: linux /casper/vmlinuz $cmdline --- console=tty0 autoinstall ds=nocloud\;s=/cdrom/nocloud/ ---
Create structure of nocloud folder for automated installation
vim nocloud/user-data
#cloud-config
autoinstall:
version: 1
update: no
proxy: http://IP_ADDRESS:PORT/
identity:
hostname: ubuntu
username: test
password: "$6$RZHzEtPHl.UTTyJ6$pDKw5mZtystrIiV3RlBsU93nLkCN1ShKPH35ppEQtui3E9yfSfr6TQJ5Q30IwKP2GnU6yrUquBcPc8SJc5fYB1" ### password is "test" hashed with openssl passwd -6
ssh:
install-server: yes
timezone: Europe/Prague
locale: en_US.UTF-8
keyboard:
layout: us
packages:
- software-properties-common
- open-vm-tools # for vmware hypervisor
- open-vm-tools-desktop # for vmware hypervisor
- ansible
- git
- vim
late-commands:
- lvextend -l +100%FREE $(lvdisplay | grep "LV Path" | head -n 1 | awk '{print $NF}')
- echo 'test ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/test
- echo 'alias s="sudo -i"' >> /target/etc/bash.bashrc
- cp /cdrom/nocloud/99-info /target/etc/update-motd.d/99-info
- chmod 755 /target/etc/update-motd.d/99-info
- cp /cdrom/nocloud/*.sh /target/root/
- chmod 755 /target/root/*.sh
- mkdir -p /target/etc/systemd/system/systemd-networkd-wait-online.service.d
- cp /cdrom/nocloud/override.conf /target/etc/systemd/system/systemd-networkd-wait-online.service.d/
- systemctl daemon-reload
# storage:
# layout:
# name: lvm
storage:
config:
- id: disk-main
type: disk
ptable: gpt
path: /dev/nvme0n1
wipe: superblock-recursive
- id: efipart
type: partition
device: disk-main
offset: 1048576
size: 600M
flag: boot
grub_device: true
- id: bootpart
type: partition
device: disk-main
size: 1G
- id: pvpart
type: partition
device: disk-main
size: -1
### Optional encryption
# - id: pvpart-crypt
# type: dm_crypt
# volume: pvpart
# key: mysecretpassword
- id: vg0
type: lvm_volgroup
name: vg0
devices:
- pvpart
# - pvpart-crypt
- id: root_lv
type: lvm_partition
name: root_lv
volgroup: vg0
size: 12G
- id: tmp_lv
type: lvm_partition
name: tmp_lv
volgroup: vg0
size: 2G
- id: efipart_fs
type: format
volume: efipart
fstype: fat32
- id: bootpart_fs
type: format
volume: bootpart
fstype: ext4
- id: root_lv_fs
type: format
volume: root_lv
fstype: ext4
- id: tmp_lv_fs
type: format
volume: tmp_lv
fstype: ext4
- id: efipart-mount
type: mount
device: efipart_fs
path: /boot/efi
- id: bootpart-mount
type: mount
device: bootpart_fs
path: /boot
- id: root_lv_mount
type: mount
device: root_lv_fs
path: /
- id: tmp_lv_mount
type: mount
device: tmp_lv_fs
path: /tmp
- Source for storage section was linuxconfig.org
vim nocloud/meta-data
instance-id: ubuntu-autoinstall
local-hostname: ubuntu
vim nocloud/override.conf
[Service]
TimeoutStartSec=5
vim nocloud/99-info
#!/bin/sh
printf "\n===========================================\n"
printf "s for sudo to root\n"
printf "ls *.sh\n"
printf "===========================================\n\n"
vim nocloud/run.sh
#!/bin/bash
apt -y dist-upgrade
apt install -y ubuntu-desktop
echo
echo "Enable AutomaticLogin in /etc/gdm3/custom.conf"
echo
vim nocloud/mount.sh
#!/bin/bash
mkdir -p /mnt/hgfs &> /dev/null
vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000
Copy files to installation CD
mkdir iso/nocloud
### ... create structure for automated installation ... see below
cp -v nocloud/* iso/nocloud/
Build ISO
xorriso -as mkisofs -r -V UBUNTU_ARM64 -o ubuntu-autoinstall.iso -J -l -iso-level 3 -partition_offset 16 -append_partition 2 0xef iso/mbr_part2_efi.img -appended_part_as_gpt -iso_mbr_part_type 0x00 -c boot.catalog -e --interval:appended_partition_2:all:: -no-emul-boot iso/