From 4dff6b968d617de2a4eec1a26df89d2bf1dbef06 Mon Sep 17 00:00:00 2001 From: sebastianipe <245254494+sebastianipe@users.noreply.github.com> Date: Fri, 21 Nov 2025 12:49:45 +0100 Subject: [PATCH] Add libvirt support --- vagrant/Vagrantfile | 51 ++++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 33 deletions(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index c56a74b..7183484 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -22,6 +22,23 @@ Vagrant.configure("2") do |config| vb.customize ["usbfilter", "add", "0", "--target", :id, "--name", "Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC", "--vendorid", "0x0403", "--productid", "0x6010"] end + # Configuration for libvirt + config.vm.provider :libvirt do |libvirt| + libvirt.memory = 2048 + libvirt.cpus = 2 + libvirt.graphics_type = "spice" + libvirt.video_type = "qxl" + + # Nexus 5 + libvirt.usb :vendor => '0x18d1', :product => '0x4ee2', :startupPolicy => 'optional' + + # Bluetooth Dongle + libvirt.usb :vendor => '0x8087', :product => '0x0026', :startupPolicy => 'optional' + + # FTDI Dual UART + libvirt.usb :vendor => '0x0403', :product => '0x6010', :startupPolicy => 'optional' + end + # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. @@ -76,36 +93,4 @@ Vagrant.configure("2") do |config| # apt-get install -y apache2 # SHELL config.vm.provision :shell, path: "./vagrant_install.sh", privileged: true -end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +end \ No newline at end of file