@@ -563,30 +563,14 @@ jobs:
563
563
# Canonical's Vagrant 2.2.19 dpkg cannot download Fedora 38 image: https://bugs.launchpad.net/vagrant/+bug/2017828
564
564
# So we have to install Vagrant >= 2.3.1 from the upstream: https://github.com/opencontainers/runc/blob/v1.1.8/.cirrus.yml#L41-L49
565
565
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
566
- echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com jammy main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
566
+ 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
567
567
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
568
- # we use vagrant from jammy since the sources are not yet available in noble for vagrant
569
- # TODO: once vagrant package sources are available in ubuntu-24 this can be removed
570
- sudo tee -a /etc/apt/sources.list.d/ubuntu.sources <<EOF
571
- Types: deb deb-src
572
- URIs: http://archive.ubuntu.com/ubuntu
573
- Suites: jammy
574
- Components: main restricted universe multiverse
575
- Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
576
- EOF
577
- echo "" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources > /dev/null
578
- # jammy security needs to be added so that the compatible ovmf package can be fetched
579
- sudo tee -a /etc/apt/sources.list.d/ubuntu.sources <<EOF
580
- Types: deb deb-src
581
- URIs: http://security.archive.ubuntu.com/ubuntu
582
- Suites: jammy-security
583
- Components: main restricted universe multiverse
584
- Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
585
- EOF
586
568
sudo apt-get update
587
- sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant ovmf=2022.02-3ubuntu0.22.04.2
569
+ sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant ovmf
570
+ # https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1725#issuecomment-1454058646
571
+ sudo cp /usr/share/OVMF/OVMF_VARS_4M.fd /var/lib/libvirt/qemu/nvram/
588
572
sudo systemctl enable --now libvirtd
589
- sudo apt-get build-dep -y vagrant ruby-libvirt
573
+ sudo apt-get build-dep -y ruby-libvirt
590
574
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
591
575
sudo vagrant plugin install vagrant-libvirt
592
576
- name : Boot VM
0 commit comments