Techridez
VirtualizationLinuxWindowsNetworking
  • Techridez Knowledge base
  • Techridez guide
  • Tech Scale
    • Measurements
  • Techridez Knowledge Base
  • Bacis
    • Protocol and Port Numbers
  • Windows Customization
    • Capture Wim image from OS
  • Virtualization
    • Proxmox Command Guide
  • Windows Server Guide
    • Transfer FSMO roles
    • FSMO commands
  • DevOps
    • WebDev
      • How to install fail2ban on ubuntu server and create custom jail config.
      • MySQL Bin Files Eating Lots of Disk Space (fix)
      • Install ClamAV antivirus in Ubuntu Server and Client With Cron job
      • 404 hyperlink not working after wordpress migration
      • Apache Virtual Host Script with mysql db.
      • OsTicket
      • How to Backup MySQL Databases Automatically on Ubuntu
      • Cron Job
        • Create cron job for maldet scanning
        • Auto-Restart MySQL When It Crashes During a Brute Force Attack
        • How to change default crontab editor
        • How To Use Cron to Automate Tasks on Ubuntu 18.04
        • How To Use Cron to Automate Tasks on CentOS 8
      • Wordpress Security
      • Open database Error!: could not find driver linux Fix
    • Vagrant
    • Windows Subsystem for Linux
    • How to set static ip on ubuntu server using yaml file.
    • How to install ansible
  • Linux
    • Tools
    • How to install CrowdStrike in Linux
    • How to Install Ossec agent in linux
    • Linux Commands
    • SFTP (CrushFTP)with HA
    • 🗃️Transfer & sync files in a directory to remote node using crontab & rsync
  • Networking
    • Upgrade Cisco9200L firmware to recommended
  • Cyber Security
    • ISC² (International Information System Security Certification Consortium)
Powered by GitBook

©️ Techridez

On this page
  • How to install Vagrant on Manjaro
  • Virtualbox have no access to USB devices
  • How to add user name and password to vagrant file
  • Fix vagrant-hostmanager 127.0.0.1 with docker
  • How to Configure vagrant box names

Was this helpful?

  1. DevOps

Vagrant

How to install Vagrant on Manjaro

$ sudo pacman -S vagrant

After that install virtual-box

Probably you will get an error to run vagrant up, The vboxdrv kernel module is not loaded.

Symptoms:

$ VBoxManage --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.4.28-1-MANJARO) or it failed to
         load. Please recompile the kernel module and install it by
 
           sudo /sbin/vboxconfig
 
         You will not be able to start VMs until this problem is fixed.

Solution:

Arch-Linux, Manjaro

# look for actual 
sudo pacman -Ss virtualbox-host-modules
# install 
sudo pacman -S linux54-virtualbox-host-modules
# add module
sudo modprobe vboxdrv

Virtualbox have no access to USB devices

Reason

# ls -ls /dev/  | grep vboxusb
0 drwxr-x---  3 root vboxusers       60 Apr  6 09:14 vboxusb

Solution

usermod -a -G vboxusers {YOUR_ACCOUNT}

How to add user name and password to vagrant file

Vagrant has a few options (see full doc https://docs.vagrantup.com/v2/vagrantfile/ssh_settings.html) :

Vagrant.configure("2") do |config|
  config.ssh.username = "user"
  config.ssh.password = "password"
end

note indeed, you need to make sure those users exist on the guest os (generally most vagrant box are created with vagrant user)

To have the connection between your different VMs, you can easily do that if you assign fix IP to the VM.

Vagrant.configure("2") do |config|
  config.vm.network :private_network, ip: "192.168.45.15"
end

when you connect to your second VM, you can run ssh vagrant@192.168.45.15 and it will ssh to the first VM

How to add public IP dhcp to vagrantfile

config.vm.network "public_network",
use_dhcp_assigned_default_route: true

Fix vagrant-hostmanager 127.0.0.1 with docker

How to Configure vagrant box names

  • Virtualbox GUI Name

  • vm hostname

  • vagrant status name

config.vm.box = "bento/ubuntu-18.04"
  config.vm.hostname = "vmhostname"
        config.vm.define "showsvagrantupboxname"
        config.vm.provider :virtualbox do |vb|
            vb.name = "ShowsVirtualboxGUIname"
            end

Change "vmhostname" to your desired hostname

Change "showvagrantupboxname" to your desired box name, this will show in the vagrant status

change "ShowVirtualboxGUIname" this will show in the Virtual box GUI

PreviousOpen database Error!: could not find driver linux FixNextWindows Subsystem for Linux

Last updated 5 years ago

Was this helpful?

Fix vagrant-hostmanager 127.0.0.1 with dockerilhicas
Logo