Skip to content

About

Unofficial VM images (OVA/VMDK/qcow2) built automatically from official MOS releases, for trying MOS in a VM

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mos-vm-images

Build Latest image MOS upstream Formats

Important

These images are for trying MOS in a virtual machine only. They are unofficial, built by a third party, and not supported by the MOS project. To run MOS for real (on bare metal or as a long-term server), follow the official instructions: Create Bootable Media and the MOS documentation. Report MOS bugs upstream at mos-nas/mos-releases, and image-build problems here.

Unofficial pipeline that turns the official MOS release ZIP into ready-to-import VM disk images.

Format For
.ova / .vmdk ESXi / VMware
.vhdx Hyper-V
.qcow2 Proxmox / KVM
.img.xz raw disk, anything else

How to test MOS on various virtualization platforms

Grab the files from the Releases page. These steps are untested on some platforms; boot reports welcome.

All platforms need:

  • UEFI/EFI on, Secure Boot off
  • 4+ GB RAM (8 recommended) and 2+ CPUs
  • a SATA (or NVMe) boot disk
  • extra blank virtual disks, if you want to try pools

After starting the VM:

  • Wait 1-3 minutes. The console can look blank, frozen or garbled while MOS boots. When it finishes, it shows a login banner with the VM's address, e.g. IPv4: 192.168.1.164.
  • Open http://<that address>/ in a browser and set the account passwords.
  • Optionally use Install to Disk in the MOS UI onto a blank virtual disk, so MOS no longer depends on the boot image.
  • The VM's IP can change after a reboot or "Install to Disk"; reserve it in your DHCP server.
  • smartd failed in the boot log is expected in a VM.

VirtualBox (Windows / Linux / Intel Mac)

Download VirtualBox | Manual

  1. Download mos-<version>-amd64.ova.
  2. File -> Import Appliance, pick the OVA, and import it (defaults are fine).
  3. Before the first boot: select the VM -> Settings -> System -> Motherboard -> tick Enable EFI. VirtualBox ignores the OVA's UEFI setting, so without this the VM will not boot.
  4. Settings -> Network -> Adapter 1 -> Bridged Adapter. Use wired Ethernet if possible; bridging over Wi-Fi often fails.
  5. Optional: add blank virtual disks (Settings -> Storage) if you want to try storage pools.
  6. Start the VM, then follow the steps above to find its address and open the WebUI.
Using the .vmdk instead (untested)

VirtualBox's Import Appliance only takes OVA/OVF, so create the VM with Machine -> New (Linux, Other Linux 64-bit, tick Enable EFI), and attach the VMDK under Settings -> Storage -> SATA controller -> Add Hard Disk -> Choose existing.

VMware Workstation (tested) / Fusion / ESXi (untested)

Workstation & Fusion product page | How to download (free for personal use)

Workstation Pro: File -> Open the .ova (or double-click it) and import it. UEFI, the SATA disk and the network adapter are already set in the OVA, so no settings need changing. Use a bridged network adapter and power on.

Fusion (Mac) and ESXi should import the same OVA but are untested.

ESXi fallback if the OVA import fails (untested)

Upload the .vmdk, run vmkfstools -i mos.vmdk -d thin mos-esx.vmdk, and attach it to a new UEFI VM (SATA controller, e1000e NIC).

Proxmox VE (tested)

Run these in the Proxmox host shell (Proxmox VE 8.1 or newer). They download the latest image and create a UEFI VM with it as the boot disk, plus a blank 32 GB disk to play with.

# 1. Download the latest .qcow2
cd /var/tmp
curl -fsSL https://api.github.com/repos/bantznet/mos-vm-images/releases/latest \
  | grep -oE 'https://[^"]+\.qcow2' | xargs curl -fLO

# 2. Create the VM, importing the image as the boot disk (UEFI, Secure Boot keys NOT pre-enrolled)
STORAGE=local-lvm        # any storage that holds VM disks (e.g. local-lvm, nvme-ceph)
VMID=$(pvesh get /cluster/nextid)
qm create $VMID --name mos --machine q35 --bios ovmf --cpu host --cores 4 --memory 8192 \
  --ostype l26 --scsihw virtio-scsi-single --net0 virtio,bridge=vmbr0 \
  --efidisk0 $STORAGE:1,efitype=4m,pre-enrolled-keys=0 \
  --scsi0 $STORAGE:0,import-from=$(ls /var/tmp/mos-*-amd64.qcow2) \
  --scsi1 $STORAGE:32 --boot order=scsi0

# 3. Start it
qm start $VMID

The Proxmox console garbling is cosmetic. To find the VM's address, look up its MAC (qm config $VMID | grep net0) in your router's DHCP leases.

Checksums are published as SHA256SUMS on the release page if you want to verify the download (sha256sum -c --ignore-missing SHA256SUMS).

To remove the test VM: qm stop $VMID && qm destroy $VMID --purge.

Other KVM setups: the same qcow2 works with libvirt/virt-manager (UEFI/OVMF firmware, Secure Boot off, SATA or virtio disk).

Hyper-V (Windows): tested!

Enable Hyper-V on Windows

This needs a MOS release whose kernel includes Hyper-V support: 0.6.1-stable or newer (upstream turned on CONFIG_HYPERV=y / CONFIG_HYPERV_STORAGE=m in mos-kernel 6.18.57). Earlier releases cannot see Hyper-V's disks and stop in the initramfs with ERROR: MOS boot device with label: MOS not found. Boot reports welcome.

  1. Download mos-<version>-amd64.vhdx.
  2. New -> Virtual Machine and choose a Generation 2 VM (Generation 1 is BIOS-only and MOS needs UEFI); 4 CPUs, 8 GB RAM.
  3. At Connect Virtual Hard Disk, pick Use an existing virtual hard disk and select the downloaded .vhdx.
  4. Settings -> Security -> untick Enable Secure Boot.
  5. Settings -> Network Adapter -> Virtual switch: an External (bridged) switch, or the Default Switch.
  6. Optional: add blank virtual disks (Settings -> SCSI Controller -> Add) if you want to try storage pools. A disk added while the VM is running only appears in MOS after a guest reboot.
  7. Start the VM, then follow the steps above to find its address and open the WebUI.

Development

How the image is built

MOS boots from a FAT32 volume labeled MOS with the release ZIP extracted at its root (docs). scripts/build-img.sh makes that volume inside an MBR-partitioned raw image; scripts/convert.sh and scripts/make-ova.sh convert/package it; scripts/smoke-test.sh boots it under QEMU+OVMF and waits for the WebUI.

Local build

sudo apt install qemu-utils qemu-system-x86 ovmf parted dosfstools unzip jq
./scripts/build-img.sh mos_x.y.z_amd64.zip mos.img
./scripts/smoke-test.sh mos.img
./scripts/convert.sh mos.img dist mos
./scripts/make-ova.sh dist/mos.vmdk dist/mos.ova x.y.z

License

Not affiliated with the MOS project. The build scripts and workflow in this repo are MIT licensed. MOS itself and the images it produces contain components under their own licenses; see the upstream repo.

About

Unofficial VM images (OVA/VMDK/qcow2) built automatically from official MOS releases, for trying MOS in a VM

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages