#! /bin/bash

sudo modprobe kvm-intel
sudo /etc/init.d/vde start

mkdir -p vm
[ ! -f vm/1.qcow2 ] && qemu-img create -f qcow2 vm/1.qcow2 "80G"
[ ! -f vm/2.qcow2 ] && qemu-img create -f qcow2 vm/2.qcow2 "80G"

qemu-system-x86_64 -enable-kvm -display sdl -hda vm/1.qcow2 -hdb vm/2.qcow2 -m 2048  -net nic,macaddr=66:66:66:13:13:00 -net vde,sock=/var/run/vde.ctl -cdrom iso/centos74-ands.iso -boot order=d