Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Vagrant: boot q35 machine and other improvements #3965

Merged
merged 8 commits into from
Nov 12, 2021

Commits on Oct 25, 2021

  1. vagrantfile: set q35 machine type

    Currently the VM is configured with QEMU's i440FX machine type which has no
    PCIe support (among other restrictions). This changed the Vagrantfile so that
    the it boots a q35 machine instead.
    
    Fixes kata-containers#3752
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b813d5d View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. ci/setup: install driverctl/pciutils on Fedora/Ubuntu

    The commit a043363 introduced improvements to the vfio
    functional test which now requires the driverctl tool. The
    driverctl package is installed in the host via .ci/vfio_jenkins_job_build.sh,
    but that script is never called by the .ci/setup.sh; as a result, the
    package isn't installed when I run the Vagrant-based job locally.
    
    This commit adds the driverctl (also pciutils) to the list of packages
    installed in the host Fedora and Ubuntu.
    
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    fe4bc7f View commit details
    Browse the repository at this point in the history
  2. vagrantfile: Allow to run the VFIO job

    The Vagrantfile was changed so that the VM will have IOMMU enabled
    and an additional virtio-net device in case of the VFIO job.
    
    Additional Kernel command-line arguments are required to enable IOMMU,
    therefore GRUB is reconfigured and the VM should reboot.
    
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    9cbe05a View commit details
    Browse the repository at this point in the history
  3. ci: Introduce the vagrant-cleaner.sh script

    The vagrant configuration sometimes can get into inconsistent state. For
    instance, the domain on libvirt was created by the framework that thinks
    the box is not initialized yet. Or eventually the developer wants to
    simply wipe out all vagrant files and created resources from his/her
    workstation.
    
    In this commit it was introduced the vagrant-cleaner.sh script which
    aims on help developers to clean up the vagrant stuffs.
    
    Fixes kata-containers#3757
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    3c62af2 View commit details
    Browse the repository at this point in the history
  4. vagrantfile: document tested host vs guest

    Added on README.md a table with the combinations of tested host
    versus guest so developers are aware of what is (or not) expected
    to work.
    
    Fixes kata-containers#3942
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    319a73b View commit details
    Browse the repository at this point in the history
  5. vagrantfile: update the default prefix

    By default Vagrant creates the domain in libvirt prefixed with
    the project's directory name, in our case it is "tests-". Let's
    use meaningful name instead.
    
    Below is shown the new domain names in libvirt.
    
    $ virsh list --all
     Id   Name                          State
    ---------------------------------------------
     1    kata_containers_test-ubuntu   running
     4    kata_containers_test-fedora   running
    
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    5a88830 View commit details
    Browse the repository at this point in the history
  6. vagrantfile: do not attempt to install grubby

    The grubby package is already installed in the pulled VM image.
    
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    5561a1d View commit details
    Browse the repository at this point in the history
  7. vagrantfile: switch to generic/fedora32 box

    The installation of packages in the generic/fedora32 box is way faster
    than the currently used fedora/32-cloud-base. In my laptop it can save
    approximately 30min of the time to `vagrant up fedora`. So in this
    commit I am switching the box used.
    
    Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
    wainersm committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    d8557ac View commit details
    Browse the repository at this point in the history