Return to Misc


Dionaea-Vagrant provides a Vagrant configuration file (Vagrantfile) and shell scripts to automate the setup and configuration of a Dionaea malware honeypot in a virtual machine. The need for this project comes from the somewhat difficult installation procedure of Dionaea which can be discouraging to newcomers.


  1. VirtualBox
  2. Vagrant


git clone && cd dionaea-vagrant
vagrant up

This will download (only the first time) a virtual disk, it will create a new Ubuntu 12.04 LTS VM on the fly and start it using VirtualBox. Then Dionaea and all of its dependencies will be installed on it and will be executed as a daemon along with p0f. And that’s it!

You can then login into the machine by typing “vagrant ssh” or using an SSH client (e.g. PuTTY) and connect to localhost:2222 — username: vagrant, password: vagrant. Once inside the VM, type “ifconfig” to find out the IP address assigned to the bridged adapter (eth1), which you can use to forward ports from your home router back to the VM. For a list of ports used by Dionaea type “sudo netstat -antp | grep dionaea”. If you want to stop the machine type “vagrant halt” (on the outer terminal, not inside the machine).

Every time you want to start the honeypot VM a simple “vagrant up” issued inside the dionaea-vagrant directory is enough!




Skip to comment form

    • ikonspirasi on August 31, 2014 at 9:08 PM
    • Reply

    wow, i just using this vagrant thing, thanks for sharing 🙂

    • aar_cee on October 26, 2014 at 3:47 PM
    • Reply

    This is the error i get when i run the command up vagrant
    kindly help in resolving the issue
    There is a syntax error in the following Vagrantfile. The syntax error
    message is reproduced below for convenience:

    /home/wow/dionaea-vagrant/Vagrantfile:66: syntax error, unexpected ‘:’, expecting kEND
    config.vm.provision “shell”, inline: “cp /vagrant/*.sh /tmp/”
    /home/wow/dionaea-vagrant/Vagrantfile:67: syntax error, unexpected ‘:’, expecting kEND
    ….vm.provision “shell”, inline: “aptitude -y install dos2unix…
    /home/wow/dionaea-vagrant/Vagrantfile:68: syntax error, unexpected ‘:’, expecting kEND
    ….vm.provision “shell”, inline: “cd /tmp/ && sh setupDionaea….
    /home/wow/dionaea-vagrant/Vagrantfile:69: syntax error, unexpected ‘:’, expecting kEND
    ….vm.provision “shell”, inline: “cp /tmp/ /home/…
    /home/wow/dionaea-vagrant/Vagrantfile:70: syntax error, unexpected ‘:’, expecting kEND
    ….vm.provision “shell”, inline: “echo ‘@reboot vagrant /home/…

    1. Hi aar_cee,
      what version of Vagrant are you using? Did you install it from the package manager? This error happens with old versions sometimes. Please uninstall Vagrant and install the latest version from:


    • Olli on November 20, 2014 at 1:01 PM
    • Reply

    When I am running: vagrant up
    Following error appear:
    [email protected]:~/dionaea-vagrant# vagrant up
    VirtualBox is complaining that the installation is incomplete. Please
    run `VBoxManage –version` to see the error message which should contain
    instructions on how to fix this error.

      • Ion on November 20, 2014 at 1:20 PM
      • Reply

      Well, have you installed VirtualBox? If yes, did you run the above command?

        • Olli on November 20, 2014 at 1:27 PM

        Yes I installed VB. Above command?

        • Ion on November 20, 2014 at 1:36 PM

        I meant VBoxManage –version. Well, as it says there you need the Linux headers etc. See:

        • Olli on November 20, 2014 at 1:29 PM

        Ah sorry.

        [email protected]:~/dionaea-vagrant# VBoxManage –version
        WARNING: The character device /dev/vboxdrv does not exist.
        Please install the virtualbox-ose-dkms package and the appropriate
        headers, most likely linux-headers-486.

        You will not be able to start VMs until this problem is fixed.

        • Olli on November 20, 2014 at 1:39 PM

        I use virtualbox on windows. and there I have installed debian without gui

        • Ion on November 20, 2014 at 1:47 PM

        I don’t understand your setup. If you use Windows, then just install VirtualBox and Vagrant for Windows and you’re good to go.

    • fullheal on November 25, 2014 at 6:23 AM
    • Reply

    After instalaltion of honeypot and then how to recieve attack for dionaea honeypot?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.