Last active
February 25, 2019 21:19
-
-
Save mweisel/4a9162e08eecfba193dedb5b3a50ad5e to your computer and use it in GitHub Desktop.
Example - Cisco IOSv Vagrant box for VMware Workstation Pro with Windows 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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