Skip to content

Instantly share code, notes, and snippets.

View alexbartsch's full-sized avatar

Alexander Bartsch alexbartsch

View GitHub Profile
@alexbartsch
alexbartsch / create-vm-from-iso.sh
Last active August 29, 2015 14:27 — forked from srics/create-vm-from-iso.sh
Create KVM Virtual Machine using Ubuntu Trusty ISO image
#!/bin/bash -x
VM_NAME=_base_trusty64_openstack
VM_MEM=8192
VM_VCPUS=4
VM_DISK_ISO=/var/lib/libvirt/images/ubuntu-14.04.1-server-amd64.iso
VM_NETWORK="bridge=br-ext"
VM_PATH=/opt/vms/${VM_NAME}
VM_DISK=${VM_PATH}/${VM_NAME}_disk.qcow2