mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
makebuildserver: add config options for disk and network hardware emulation
This commit is contained in:
parent
2a9bc448ee
commit
d98d90ab90
2
buildserver/Vagrantfile
vendored
2
buildserver/Vagrantfile
vendored
@ -34,6 +34,8 @@ Vagrant.configure("2") do |config|
|
||||
libvirt.uri = "qemu:///system"
|
||||
libvirt.cpus = configfile["cpus"]
|
||||
libvirt.memory = configfile["memory"]
|
||||
libvirt.disk_bus = configfile["libvirt_disk_bus"]
|
||||
libvirt.nic_model_type = configfile["libvirt_nic_model_type"]
|
||||
end
|
||||
config.vm.synced_folder './', '/vagrant', type: '9p'
|
||||
synced_folder_type = '9p'
|
||||
|
@ -63,3 +63,11 @@
|
||||
# below:
|
||||
#
|
||||
# vm_provider = 'libvirt'
|
||||
|
||||
# By default libvirt uses 'virtio' for both network and disk drivers.
|
||||
# Some systems (eg. nesting VMware ESXi) do not support virtio. As a
|
||||
# workaround for such rare cases, this setting allows to configure
|
||||
# KVM/libvirt to emulate hardware rather than using virtio.
|
||||
#
|
||||
# libvirt_disk_bus = 'sata'
|
||||
# libvirt_nic_model_type = 'rtl8139'
|
||||
|
@ -65,6 +65,8 @@ config = {
|
||||
'memory': 2048,
|
||||
'hwvirtex': 'off',
|
||||
'vm_provider': 'virtualbox',
|
||||
'libvirt_disk_bus': 'virtio',
|
||||
'libvirt_nic_model_type': 'virtio',
|
||||
}
|
||||
|
||||
if os.path.isfile('/usr/bin/systemd-detect-virt'):
|
||||
|
Loading…
Reference in New Issue
Block a user