Skip to content

Simple bash script to build VMs from cloud images in a kvm host

Notifications You must be signed in to change notification settings

evillalo985/kvm-build-with-cloud-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

kvm-build-with-cloud-image

Simple bash script to build VMs from cloud images in a kvm host

You have to install the following tools before you can use it:

sudo apt update; sudo apt install qemu qemu-kvm libvirt-bin  bridge-utils  virt-manager -y

Usage:

# bash build-vms.sh -h
build-vm.sh, usage: /virt/build-vms.sh -n|--name <VM_NAME> [-c|--cores <CORES_#>] [-m|--memory <MEMORY_IN_MB>] [-s|--sshkey <PUBLIC_SSH_KEY_FILE>] [-i|--image <IMAGE_FILE>]


"-h|--help" help info
"-n|--name" vm name
"-c|--cores" number of cores
"-m|--memory" memory in MB
"-s|--sshkey" path to public ssh key
"-i|--image" path to cloud image to use (ubuntu or centos)

About

Simple bash script to build VMs from cloud images in a kvm host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%