Last active
June 8, 2016 12:12
-
-
Save diversemix/a47b77eb0765f426fdd102eaad9a3929 to your computer and use it in GitHub Desktop.
[KVM] Creates a test VM with Centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo virt-install --connect qemu:///system \ | |
-n mytest \ | |
-r 4096 \ | |
--vcpus=4 \ | |
--disk path=/home/vm/images/my_test.img,size=40 \ | |
--graphics vnc,listen=0.0.0.0 \ | |
--noautoconsole \ | |
--os-type linux \ | |
--os-variant rhel7 \ | |
--accelerate \ | |
--network=bridge:virbr0 \ | |
--hvm \ | |
--cdrom /home/vm/CentOS-7-x86_64-Minimal-1511.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment