CI: install OVMF for Vagrant
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -566,7 +566,9 @@ jobs: | ||||
|           echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | ||||
|           sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources | ||||
|           sudo apt-get update | ||||
|           sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant | ||||
|           sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant ovmf | ||||
|           # https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1725#issuecomment-1454058646 | ||||
|           sudo cp /usr/share/OVMF/OVMF_VARS_4M.fd /var/lib/libvirt/qemu/nvram/ | ||||
|           sudo systemctl enable --now libvirtd | ||||
|           sudo apt-get build-dep -y ruby-libvirt | ||||
|           sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev | ||||
|   | ||||
							
								
								
									
										5
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							| @@ -35,7 +35,10 @@ Vagrant.configure("2") do |config| | ||||
|     v.memory = memory | ||||
|     v.cpus = cpus | ||||
|     v.machine_virtual_size = disk_size | ||||
|     v.loader = "/usr/share/OVMF/OVMF_CODE.fd" | ||||
|     # https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1725#issuecomment-1454058646 | ||||
|     # Needs `sudo cp /usr/share/OVMF/OVMF_VARS_4M.fd /var/lib/libvirt/qemu/nvram/` | ||||
|     v.loader = '/usr/share/OVMF/OVMF_CODE_4M.fd' | ||||
|     v.nvram = '/var/lib/libvirt/qemu/nvram/OVMF_VARS_4M.fd' | ||||
|   end | ||||
|  | ||||
|   config.vm.synced_folder ".", "/vagrant", type: "rsync" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Akihiro Suda
					Akihiro Suda