summaryrefslogtreecommitdiffstats
path: root/kickstart/testvm/centos.sh
blob: a437ed859175575b3b8ec5c18bf53285cf1fcb96 (plain)
1
2
3
4
5
6
7
8
9
#! /bin/bash

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

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

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