diff --git a/README.md b/README.md index e0b2b7ff2ad121a5985f58a4afffa4e01c2b3c10..f26aae408e4f1e56803340203efa599a4950cd2d 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 bd036917e89ef6c10ca261903b0f1a2a3eb950b9..067beb96424cf0c7084f4237c42c3d8b6ef5f9fa 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. """