Skip to content

Instantly share code, notes, and snippets.

@mweisel
Last active February 25, 2019 21:19
Show Gist options
  • Save mweisel/4a9162e08eecfba193dedb5b3a50ad5e to your computer and use it in GitHub Desktop.
Save mweisel/4a9162e08eecfba193dedb5b3a50ad5e to your computer and use it in GitHub Desktop.
Example - Cisco IOSv Vagrant box for VMware Workstation Pro with Windows 10
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.box = "cisco-iosv-l2-152-2016"
config.vm.boot_timeout = 90
# Disable default host <-> guest synced folder
config.vm.synced_folder ".", "/vagrant", disabled: true
# Set guest OS type to disable autodetection
config.vm.guest = :freebsd
# Disable port forwarding for SSH
config.vm.network :forwarded_port, guest: 22, host: 2200, id: "ssh", disabled: true
config.vm.provider :vmware_desktop do |v|
# https://www.vagrantup.com/docs/vmware/configuration.html#linked_clone
v.linked_clone = false
# https://www.vagrantup.com/docs/vmware/boxes.html#vmx-whitelisting
v.whitelist_verified = true
# https://www.vagrantup.com/docs/vmware/configuration.html#ssh_info_public
v.ssh_info_public = true
# Console port connection via telnet (or netcat)
v.vmx["serial0.fileName"] = "telnet://127.0.0.1:52001"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment