devops--openstack--lab/vm-1.vm-1.devstack/Vagrantfile
2024-07-16 13:37:55 +02:00

32 lines
1.1 KiB
Ruby

# vim: set ts=2 sw=2 et ft=ruby:
# frozen_string_literal: true
Vagrant.configure('2') do |config|
config.vm.box = 'debian/bookworm64'
config.vm.provider 'libvirt' do |domain|
domain.memory = 16_000
domain.nested = true
domain.cpu_mode = 'host-model'
# domain.cpus = 2
end
config.vm.provider 'virtualbox' do |vb|
vb.gui = false
vb.memory = 16_000.to_s
# vb.nested = true
vb.customize ['modifyvm', :id, '--nested-hw-virt', 'on']
end
# config.vm.synced_folder '..', '/vagrant' #, type: 'nfs', mount_options: ['actimeo=2']
# config.vm.synced_folder '../../exercises', '/vagrant/exercises' #, type: 'nfs', mount_options: ['actimeo=2']
# config.vm.synced_folder '../../config', '/vagrant/config' #, type: 'nfs', mount_options: ['actimeo=2']
config.vm.define 'host' do |machine|
machine.vm.hostname = 'host'
end
config.vm.provision 'shell', name: 'provision/host', path: 'provision/host.sh', privileged: true
# config.vm.provision 'shell', name: 'provision/inception', path: 'provision/inception.sh', privileged: false
config.vm.provision 'shell', inline: 'echo SUCCESS'
end