Skip to content

ktogias/mikrotik-vagrant-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mikrotik-vagrant-box

This is a Vagrantfile and documentation for ktogias/mikrotik MikroTik RouterOS Vagrant Box (https://app.vagrantup.com/ktogias/boxes/mikrotik).

The box and Vagrantfile currently only support libvirt provider.

Background

The box was created on a Fedora 39 machine with libvirt, virt-manager, vagrant and vagrant-libvirt installed.

I downloaded the RouterOS 7.13 x86 iso from https://mikrotik.com/download and created a new vm with virt-manager with installation from the downloaded iso. I checked "Customize configuration before install" and changed disk bus to "SATA". RouterOS will not install on a VirtIO disk.

After installation I run the commands in setup.sh script:

ip dhcp-client add interface=ether1 disabled=no
tool fetch url="https://raw.githubusercontent.com/ktogias/mikrotik-vagrant-box/master/setup.sh" mode=https dst-path="setup.sh"
system script add name=setup source=[/file get setup.sh contents];
system script run setup

and shut down the vm with system shutdown.

Then I used create_box.sh script to create the box.

Usage

  1. Install vagrant and vagrant-libvirt
  2. Clone this repo: git clone https://github.com/ktogias/mikrotik-vagrant-box.git
  3. cd mikrotik-vagrant-box
  4. vagrant up to start the RouterOS vm
  5. vagrant ssh to ssh into the RouterOS vm
  6. vargrant destroy to stop and remove the RouterOS vm

Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages