Created
December 7, 2016 00:54
-
-
Save DoriftoShoes/5bc50c8ab3369cc484ee9a541f12e671 to your computer and use it in GitHub Desktop.
libvirt installation commands
This file contains hidden or 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
virt-install --name ubuntu1604 \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/images/ubuntu1604.qcow2,size=20 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant ubuntutrusty \ | |
--network bridge=br0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ | |
--location 'http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/' \ | |
--extra-args 'console=ttyS0,115200n8 serial' | |
virt-install --name ubuntu1404 \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/images/ubuntu1404.qcow2,size=20 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant ubuntutrusty \ | |
--network bridge=br0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ | |
--location 'http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/' \ | |
--extra-args 'console=ttyS0,115200n8 serial' | |
virt-install \ | |
--name centos7 \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/images/centos7.qcow2,size=20 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant rhel7 \ | |
--network bridge=br0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ | |
--location 'http://mirror.i3d.net/pub/centos/7/os/x86_64/' \ | |
--extra-args 'console=ttyS0,115200n8 serial' | |
virt-install \ | |
--name centos6 \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/images/centos6.qcow2,size=20 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant rhel6 \ | |
--network bridge=br0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ | |
--location 'http://mirror.i3d.net/pub/centos/6/os/x86_64/' \ | |
--extra-args 'console=ttyS0,115200n8 serial' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment