Am trying to create a virtual machine for Raspbian using Vagrant-libvirt plugin. However I failed find out how to add '2017-09-07-raspbian-stretch-lite.img' image.
Am able to boot the image using qemu.
qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -machine versatilepb -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw vga=normal console=ttyAMA0" -drive "file=./2017-09-07-raspbian-stretch-lite.img,index=0,media=disk,format=raw" -no-reboot -serial stdio -curses
Here is my incomplete Vagrantfile:
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure("2") do |config|
  config.vm.box_url = File.join(Dir.pwd, "2017-09-07-raspbian-stretch-lite.img")
  config.vm.box = "Raspbian"
  config.vm.provider :libvirt do |libvirt|
    libvirt.driver = "qemu"
    #config.vm.box = "arm"
    # vagrant issues #1673..fixes hang with configure_networks
    config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
    libvirt.uri = 'qemu+unix:///system'
    libvirt.host = 'virtualized'
    libvirt.kernel = File.join(Dir.pwd, "OS/kernel-qemu-4.4.34-jessie")
    #libvirt.kernel = File.join(Dir.pwd, "Ovmlinuz")
    #libvirt.initrd = File.join(Dir.pwd, "initrd")
    #libvirt.storage :file, :size => '20G', :path => "./OS/2017-09-07-raspbian-stretch-lite.img", :allow_existing => true, :shareable => true, :type => 'raw'
    libvirt.emulator_path = '/usr/bin/qemu-system-arm'
    libvirt.cmd_line = 'root=/dev/mmcblk0p2 devtmpfs.mount=0 rw'
    libvirt.memory = 256
    libvirt.cpu_model = 'arm1176'
    libvirt.cpu_fallback = 'allow'
    libvirt.graphics_type = 'none'
  end
end
 
                        
I've committed support to vagrant-libvirt for precisely this. This is a working config:
However, you will need to find or build a kernel and accompanying initrd that supports the
virtmachine type. You can take a look here for some background on that.