Vagrant Install on QEMU / KVM



  • Installation procedure for a system with quemu already installed.

    #***********************************************************
    # Vagrant QEMU / KVM Dependencies
    #***********************************************************
    
    sudo apt-get build-dep vagrant ruby-libvirt
    sudo apt-get install qemu libvirt-bin ebtables dnsmasq-base
    sudo apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
    
    
    #***********************************************************
    # Vagrant QEMU / KVM Plugin
    #***********************************************************
    
    sudo vagrant plugin install vagrant-libvirt
    
    #***********************************************************
    # Download, copy, and install vagrant
    #***********************************************************
    sudo apt install vagrant
    
    #***********************************************************
    # Start Vagrant VM
    # In prepared project directory, run following command:
    #***********************************************************
    
    # vagrant up --provider=libvirt
    


  • @IRJ For Debian/Ubuntu



  • @JaredBusch said in Vagrant Install on QEMU / KVM:

    @IRJ For Debian/Ubuntu

    CentOS / Fedora

    #***********************************************************
    # Vagrant QEMU / KVM Dependencies
    #***********************************************************
    
    #CentOS
    sudo yum install qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm
    
    #Fedora
    #dnf -y install qemu libvirt libvirt-devel ruby-devel gcc
    
    #***********************************************************
    # Vagrant QEMU / KVM Plugin
    #***********************************************************
    
    #CentOS
    sudo yum install libxslt-devel libxml2-devel libvirt-devel \
      libguestfs-tools-c ruby-devel gcc
    
    #Fedora
    #sudo dnf install libxslt-devel libxml2-devel libvirt-devel \
      libguestfs-tools-c ruby-devel gcc
    
    #***********************************************************
    # Download, copy, and install vagrant
    #***********************************************************
    #CentOS
    sudo yum install vagrant
    
    #Fedora
    #sudo dnf install vagrant
    
    
    #***********************************************************
    # Start Vagrant VM
    # In prepared project directory, run following command:
    #***********************************************************
    
    # vagrant up --provider=libvirt
    # vagrant init generic/ubuntu1804
    


  • For Fedora you can just do

    sudo dnf install vagrant-libvirt