GithubHelp home page GithubHelp logo

soumyaok4-4 / qemu-kvm-automation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

This script will help you to create a qemu/kvm virtual machine on your externel hard drive

License: MIT License

Shell 100.00%

qemu-kvm-automation's Introduction

QEMU-KVM-automation

This script will help you to create a qemu/kvm virtual machine on your external hard drive

Requirements:

  • Make sure that QEMU/KVM is already installed on your linux machine

If they're not installed then copy paste this commands

  • Update your system first
#First update your machine with below command
#--------------------------------------------------------------------------------------------

#For Debian based Distros like Ubuntu, Mint
sudo apt update && sudo apt upgrade -y

#For Arch based Distros like Manjaro, Arco
pacman -Syyu --needed

#For Fedora
sudo dnf update

#For Gentoo 
sudo emerge --sync && sudo emerge -uDN --with-bdeps=y @world

#For OpenSUSE
sudo zypper refresh && sudo zypper update

#For Void
sudo xbps-install -Su 

#For Alpine
sudo apk update && sudo apk upgrade

#----------------------------------------------------------------------------------------------

Then copy paste this commands for installing all QEMU/KVM dependencies

#----------------------------------------------------------------------------------------------------
#For Debian based Distros like Ubuntu, Mint
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For Arch based Distros like Manjaro, Arco
sudo pacman -S --needed qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For Fedora
sudo dnf install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For Gentoo 
sudo emerge qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For OpenSUSE
sudo zypper qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For Void
sudo xbps-install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#For Alpine
sudo apk add qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

#--------------------------------------------------------------------------------------------------------

Then install this script file

  • Edit it's <user_name>/<your_harddrive_name>/<folder_to_store_vm> to your user_name and external hard-drive name

cd '/run/media/<user_name>/<your_harddrive_name>/<folder_to_store_vm>'

#As per **john** and his **VM** folder inside **1TB** external harddisk...
cd '/run/media/john/1.0TB/VM'
sudo chmod +x qemu-diskmaker.sh #this is make the file executable

bash qemu-diskmaker.sh
  • Give it root permission to run the QEMU/KVM and all set!!!

qemu-kvm-automation's People

Contributors

soumyaok4-4 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.