Closed Its-Alex closed 2 months ago
I succeed to make it works, following https://wiki.archlinux.org/title/libvirt using vagrant-libvirt docker installation
You can view it in https://github.com/Its-Alex/vagrant-libvirt-archlinux. It's pretty fast!
I will try to make boot on CDROM and GPU passthrough work
Drawback of using vagrant-libvirt
is that it's reduced to libvirt provider boxes only
Performance running in docker or outside docker:
$ time vagrant up &> /dev/null
vagrant up &> /dev/null 24.09s user 4.97s system 44% cpu 1:05.51 total
$ time vagrant destroy -f &> /dev/null
vagrant destroy -f &> /dev/null 0.67s user 0.16s system 25% cpu 3.272 total
$ time ./scripts/vagrant up &> /dev/null
./scripts/vagrant up &> /dev/null 0.01s user 0.01s system 0% cpu 59.628 total
$ time ./scripts/vagrant destroy -f &> /dev/null
./scripts/vagrant destroy -f &> /dev/null 0.01s user 0.01s system 0% cpu 5.733 total
Booting on CDROM is working fine
# Add cdrom and boot on it
domain.storage :file, :device => :cdrom, :path => Dir.pwd + "/xxx.iso"
domain.boot "cdrom"
GPU passthrough seems difficult with only one graphical card, I will not try
It's directly possible to increase base disk size with domain.machine_virtual_size
but partitions in the boxes aren't resized automatically
Synced folder
doesn't work out of the box for me, rsync
folder is created but not synced. Maybe I missed something from the documentation.
So, I tried nfs
:
config.vm.synced_folder './', '/vagrant', type: 'nfs'
And got this error:
mount.nfs: requested NFS version or transport protocol is not supported for /vagrant
When trying with another folder:
config.vm.synced_folder './archinstall-config', '/archinstall-config', type: 'nfs'
I didn't find the solution. Since the POC was working I close this issue.
I've tried
vagrant-libvirt
a few times and find it hard to make it works. Documentation seems to be more complete than before, since virtualbox doesn't work very well on new macbook (MX) I would like to tryvagrant-libvirt
again