nextcloud, nextcloudpi, qemu

Introducing the NextCloudPi VM

I would like to introduce the NextCloudPi Virtual Machine.

NextCloudPi features a preconfigured Nextcloud instance and a complete set of tools around it for easy management. Many systems are supported, such as docker, embedded boards and x86 systems.

Until now, the way to get NextCloudPi running on a x86 system was to either use the docker container, or installing through the curl installer.

# curl -sSL | bash

Even though it is easy to run the curl installer on a VM, it is always better to have a tested install available to download.

There is no difference whatsoever between the VM and the result of the curl installer. In fact, the main reason why the VM exists was to automate testing of the curl installer. Then I thought it could be useful for the community to make this available.

The image is in raw format and has been tested with libvirt/QEMU and VirtualBox. It should work on any other virtualization system such as Parallels or VMWare.

You can get it here.


I recommend libvirt/QEMU/KVM where possible as a full open source solution.

For libvirt, just add the image to a new VM.



Choose the system resources that you want for the Nextcloud instance

, and name it


In VirtualBox and others you might have to convert to VDI or VMK format. This can be done with qemu-convert or VBoxManage, for instance

# VBoxManage convertfromraw NextCloudPi_VM_10-22-18.img NCPVM102218.vmdk --format VMDK

Then, create a new VM and import the image

You can tweak the resources of the VM in Settings

Build it yourself

The image was created using Vagrant. First, install Vagrant and any virtualization provider. For instance, for libvirt

$ vagrant plugin install vagrant-libvirt

Then, just get the Vagrantfile and start it.

$ wget
$ vagrant up


Author: nachoparker

Humbly sharing things that I find useful [ github dockerhub ]


  1. Hello,

    I can’t mount the .img file on Windows. Also tried to rename to .iso but no luck. Says it’s corrupted. Tried with direct download.

  2. So I’m running KVM/QEMU on Ubuntu 18.04, and I’m getting this error when trying to finalize the import of existing image:
    Unable to complete install: ‘Cannot access backing file ‘/var/lib/libvirt/images/debian-VAGRANTSLASH-stretch64_vagrant_box_image_9.5.0.img’ of storage file ‘/var/lib/libvirt/images/NextCloudPi_VM_10-23-18.img’ (as uid:64055, gid:132): No such file or directory’

  3. Regardless how I get the image into VirtualBox . either via VBoxManage convertfromraw or by using the QCOW image directly – the error message is “no bootable media” found.
    I hope the image for the RPi works !

  4. Dear Devs,
    I appreciate your efforts on the virtualization part but why it so difficult to provide a VDI or VMDK file instead of IMG?
    Playing around with a IMG files on Windows is a pain in the ass. CLI here, conterting there…
    VDI or VMDK are easy one-click import options on any virtualization environment on any operating system.

    1. I just create the VM as part of my automated testing, but contributions are very welcome to improve, as this is mostly a one person work. You still have plenty of ways of installing if that’s easier for you (docker, curl installer…)

    2. I hear you, but it should be a one-time process to get it in the desirable format. I grabbed qemu and used qemu-img to convert the IMG to VMDK, set up my VM the way I wanted it, and tested some of the features over several reboots. Once I confirmed it’s stable, I backed it up into an OVA with the “ovftool” app ( Works like a charm, I re-imported from the OVA and all is well. From here on out you just manage further updates from the web interface (and create new OVA backups accordingly).

      1. Sounds great, care to share a script to automate this? It would make a great PR for the project to help others.

        This project needs contributors since I don’t have the time to cover every single need. If there’s people that would like to see this process automated and you are up to help them I will be happy to merge your contribution.

        Otherwise, anybody can follow your instructions, or use the “curl installer” on a debian VM.

  5. It’s been reported many times for more than a 6 months and the VM still fails in exactly the same way, no bootable media.

    Looks like this project has been abandoned, too bad it seemed interesting.

    1. It’s not abandoned but I do not have interest in implementing this since it works fine for me. This is a community effort so if somebody is missing something or has an itch contributions are very welcome.

  6. Good evening,

    maybe it’s a stupid question and I just didn’t see it bit what is the login for the e.g. SSH connection? I can’t login with pi, raspberry.

    Thanks in advance.


Leave a Reply

Your email address will not be published. Required fields are marked *