From acb918cf6c5401d805273c5661ec336d14b9c009 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 5 Jul 2018 06:19:09 +0200 Subject: Add script to create testing KVM virtual machine --- bootcd/testvm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bootcd/testvm.sh diff --git a/bootcd/testvm.sh b/bootcd/testvm.sh new file mode 100755 index 0000000..ee29f5d --- /dev/null +++ b/bootcd/testvm.sh @@ -0,0 +1,10 @@ +#! /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 -- cgit v1.2.3