Skip to content

Instantly share code, notes, and snippets.

@ddutt
Last active June 2, 2020 04:49
Show Gist options
  • Save ddutt/c32a0cd49e91d12e16beb490790de42e to your computer and use it in GitHub Desktop.
Save ddutt/c32a0cd49e91d12e16beb490790de42e to your computer and use it in GitHub Desktop.
Default Vagrantfile to use in ~/vagrant.d/boxes/ for Cisco's NXOSv
Vagrant.configure("2") do |config|
# Use Vagrant's default insecure key
config.ssh.insert_key = false
# Modify default shell behavior
config.ssh.shell = "run bash"
# Set timeout to 6 mins
config.vm.boot_timeout = 360
# Disable default host <-> guest synced folder
config.vm.synced_folder ".", "/vagrant", disabled: true
# Set guest OS type to disable autodetection
config.vm.guest = :tinycore
config.vm.provider :libvirt do |domain|
domain.cpus = 2
domain.features = ['acpi']
domain.loader = "/usr/share/OVMF/OVMF_CODE.fd"
domain.memory = 8192
domain.disk_bus = "sata"
domain.disk_device = "sda"
domain.volume_cache = "unsafe"
domain.nic_model_type = "e1000"
domain.graphics_type = "none"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment