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 <karol.latecki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2840 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
778312c8d2
commit
140a772746
6
scripts/vagrant/Vagrantfile
vendored
6
scripts/vagrant/Vagrantfile
vendored
@ -179,6 +179,12 @@ Vagrant.configure(2) do |config|
|
|||||||
libvirt.disk_bus = "scsi"
|
libvirt.disk_bus = "scsi"
|
||||||
end
|
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?
|
if not vmemulator.empty?
|
||||||
libvirt.emulator_path = "#{vmemulator}"
|
libvirt.emulator_path = "#{vmemulator}"
|
||||||
libvirt.machine_type = "pc"
|
libvirt.machine_type = "pc"
|
||||||
|
Loading…
Reference in New Issue
Block a user