diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:56 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:56 +0200 |
commit | 4ce390b9379314455c2b765b67fc39b27d69e6e8 (patch) | |
tree | 6af586bd071805d9ed08e3aca8ac19261196fe99 /bootcd/testvm.sh | |
parent | 12b2ed009050747316afdfb17665a2fafb2836ca (diff) | |
parent | acb918cf6c5401d805273c5661ec336d14b9c009 (diff) | |
download | kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.gz kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.bz2 kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.xz kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.zip |
Merge branch 'master' of https://darksoft.org/git/csa/devops/kickstart
Diffstat (limited to 'bootcd/testvm.sh')
-rwxr-xr-x | bootcd/testvm.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |