Last active
September 7, 2016 01:18
-
-
Save chaim1221/c1be3b5dfcaa38e7b33414b35b423e43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# out of the box | |
sudo su | |
egrep -c '(vmx|svm)' /proc/cpuinfo # > 0 | |
egrep -c ' lm ' /proc/cpuinfo # > 0 | |
uname -m | |
#use local sources | |
sudo nano /etc/apt/sources.list | |
# ctrl + \, Replace "us.archive.ubuntu.com" with "mirrors.cat.pdx.edu" | |
# this will take a while: | |
sudo apt-get update && sudo apt-get upgrade #(this takes a damn half hour) | |
# final check to see if kvm extensions are enabled in bios | |
sudo apt-get install cpu-checker | |
kvm-ok | |
# libvirt/qemu: | |
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils | |
#groups....you may already be here, depending on your installation | |
sudo adduser `id -un` libvirtd | |
sudo adduser `id -un` kvm | |
# logout and log back in... of the computer otherwise it won't work | |
# check that you're cool and have access... should *not* err | |
virsh -c qemu:///system list | |
# if you prefer firefox (and I do...) | |
sudo apt-get purge midori-granite | |
sudo apt-get install firefox | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
# why wait? continue | |
https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb | |
# do NOT install from Ruby, do NOT install the rpm version...see vagrant | |
# docs if you don't believe me | |
#then... | |
sudo apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev | |
vagrant plugin install vagrant-libvirt | |
#then... | |
mkdir Code/kvm-test | |
cd Code/kvm-test | |
#then... | |
vagrant init centos/7 | |
vagrant up --provider libvirt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment