From 140a772746bd6e6c698079bb2eaa884fd5ab083e Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Tue, 9 Jun 2020 17:07:56 +0200 Subject: [PATCH] scripts/vagrant: use IDE bus for Arch Linux VMs The original image was prepared using SCSI bus. Using IDE explicitly speeds up boot process as the system does not have to look where to boot from. Change-Id: Ia9f649d1c46c591135833c02ed60b3c960ad8b98 Signed-off-by: Karol Latecki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2840 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Tomasz Zawadzki --- scripts/vagrant/Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/vagrant/Vagrantfile b/scripts/vagrant/Vagrantfile index ca0282a55..5e59aaf6f 100644 --- a/scripts/vagrant/Vagrantfile +++ b/scripts/vagrant/Vagrantfile @@ -179,6 +179,12 @@ Vagrant.configure(2) do |config| libvirt.disk_bus = "scsi" end + # Run generic/arch boxes explicitly with IDE bus, + # otherwise boot process fails on mounting the disk + if (distro.include?("arch")) + libvirt.disk_bus = "ide" + end + if not vmemulator.empty? libvirt.emulator_path = "#{vmemulator}" libvirt.machine_type = "pc"