From db03b35d34d9a697e2a1a5105dedaba2401bde3d Mon Sep 17 00:00:00 2001 From: Attila Farkas <x394097@fi.muni.cz> Date: Wed, 13 Nov 2019 09:26:30 +0100 Subject: [PATCH] add ssh password to kali and update readme --- README.md | 8 +++++--- modules/device_creator.py | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0b2b7f..f26aae4 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ create.py is a python program that generates a vagrant source file from a defini - Python 3 - VirtualBox 6 - Ansible 2.3.3.0 +- Vagrant 2.2.5 - Virtualization must be enabled - DHCP server for vboxnet0 must be turned off in VirtualBox. It can be done manually in VirtualBox or with the command `$ VBoxManage dhcpserver remove --ifname vboxnet0` @@ -87,10 +88,11 @@ The name of the correct network interface can be different for every box. The su - more complex routing ### Known [issues](https://gitlab.ics.muni.cz/cs4eu/sandbox-creator/issues?label_name%5B%5D=known_issue): -- after running on Windows the output may contain invalid multibyte chars -- vagrant can somtimes get stuck on "SSH auth method: private key". This is probably an issue of VirtualBox. This was observed using the box generic/debian10 on some computers. In this case try to create the machine again. +- After running on Windows the output may contain invalid multibyte chars. +- Vagrant can somtimes get stuck on "SSH auth method: private key". This is probably an issue of VirtualBox. This was observed using the box generic/debian10 on some computers. In this case try to create the machine again. +- On some machines ansible local (flag -l) can get stuck while connecting to the created virtual machine. ### Notes -- tested on Vagrant 2.2.5, VirtualBox 6.0.4 and 6.0.10 +- tested on Vagrant 2.2.5, VirtualBox 6.0.4 and 6.0.10, Ansible 2.3.3.0 - Vagrantfile and the provision directory contains everything needed by vagrant. Feel free to move them to a different directory after creation. diff --git a/modules/device_creator.py b/modules/device_creator.py index bd03691..067beb9 100644 --- a/modules/device_creator.py +++ b/modules/device_creator.py @@ -35,7 +35,9 @@ def _add_rsync(box, host_name, definitions): if box == "generic/debian10": definitions[host_name].append("# standard shared folder doesn't work on debian") definitions[host_name].append("device.vm.synced_folder \".\", \"/vagrant\", type: \"rsync\", rsync__exclude: \".git/\"") - + + if box == "kalilinux/rolling-light": + definitions[host_name].append("device.ssh.password = \"vagrant\"") def _create_hosts(yml, mappings, flavors, ansible_local): """ Creates a dictionary with formatted definition of each host. """ -- GitLab