![]() You can create files under the shared directory work to see if bidirectional sharing is possible 10. Reboot to see Machine Booted and Ready! default: /work = D:/Vagrant-work Restart the VM and check whether the shared directory is available The final solution is as follows: Add the following command to the /etc/rc.local file as user root mount -t vboxsf sharing /mnt/shareĬopy the code 9. When the system called fstab, the Virtualbox shared directory module had not been loaded, so I had failed to install it before. Since we have Guest Additions installed above, we need to modify the VagrantFile configuration file so as not to repeat the Guest Additions installation on the next startup by adding two lines of commands before the last end of the configuration file nfigure("2") do |config| config.vm.box = "centos7" config.vm.hostname = "CentOS7" config.vm.synced_folder "D:/Vagrant-work", "/work" _update = false _remote = trueĬopy the code 8. After the installation is complete, reload the virtual machine and you can see that the VirtualBox Guest Additions installer is being installed. Shut down the VIRTUAL machine and run the install command. ![]() The default password for root is also vagrant. Modify the configuration file as follows nfigure("2") do |config| config.vm.box = "centos7" config.vm.hostname = "CentOS7" config.vm.synced_folder "D:/Vagrant-work", "/work"Ĭopy the code 6. The initialization generates a file, Vagrantfile, in the current folder vagrant init Centos7 Add the boxĬreate a directory and add box to the directory vagrant box add Centos7 CentOS-7-x86_64-Vagrant-1902_01.VirtualBox.box ![]() ![]() Download the boxĬhoose your preferred system here /centos/ 3. Install VirtualBox first and then Vagrant.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |