Install virtual machines in one line
2016-07-25
60 words
1 min read
To install a VM from command line, you can use the following command. Change the required parameters as need but you need to change at-least CDROM iso image and disk-path.
virt-install \ -n myVM \ --description "Test VM" \ --os-type=Linux \ --os-variant=centos7 \ --ram=2048 \ --vcpus=2 \ --disk path=./myVM.img,bus=virtio,size=10 \ --graphics none \ --cdrom <Image installtion CDROM>.iso \ --net user
Related Articles:
- 2016/04/15 Most simple and fast lightweight container with Fedora systemd
- 2016/02/01 virsh – show ip address of all running VMs
- 2015/05/05 docker search description truncated
- 2016/07/04 Python script to manage virtual machines with python API for libvirt.
- 2011/12/22 qemu manager for Windows to run your linux distribution
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.