diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-02-27 07:11:59 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-02-27 07:11:59 +0100 |
commit | 1becded19ae6ca07e9f1483d8dcc14258bfb0b23 (patch) | |
tree | f51226f9a79a537f68fcaa28dda32a92bd5042e2 /kickstart/testvm/centos.sh | |
parent | 4e5b055d02f7ab1f618fb2426cfff9ebc1c9678a (diff) | |
download | ands-1becded19ae6ca07e9f1483d8dcc14258bfb0b23.tar.gz ands-1becded19ae6ca07e9f1483d8dcc14258bfb0b23.tar.bz2 ands-1becded19ae6ca07e9f1483d8dcc14258bfb0b23.tar.xz ands-1becded19ae6ca07e9f1483d8dcc14258bfb0b23.zip |
Kickstart
Diffstat (limited to 'kickstart/testvm/centos.sh')
-rwxr-xr-x | kickstart/testvm/centos.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kickstart/testvm/centos.sh b/kickstart/testvm/centos.sh new file mode 100755 index 0000000..a437ed8 --- /dev/null +++ b/kickstart/testvm/centos.sh @@ -0,0 +1,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 |