ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Vagrant Install on QEMU / KVM

    IT Discussion
    vagrant ubuntu 18.04 qemu kvm virtualization
    3
    4
    481
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by IRJ

      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
      
      JaredBuschJ 1 Reply Last reply Reply Quote 2
      • JaredBuschJ
        JaredBusch @IRJ
        last edited by

        @IRJ For Debian/Ubuntu

        IRJI 1 Reply Last reply Reply Quote 0
        • IRJI
          IRJ @JaredBusch
          last edited by IRJ

          @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
          
          1 Reply Last reply Reply Quote 3
          • stacksofplatesS
            stacksofplates
            last edited by

            For Fedora you can just do

            sudo dnf install vagrant-libvirt
            
            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post