Skip to content

Instantly share code, notes, and snippets.

@DoriftoShoes
Created December 7, 2016 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DoriftoShoes/5bc50c8ab3369cc484ee9a541f12e671 to your computer and use it in GitHub Desktop.
Save DoriftoShoes/5bc50c8ab3369cc484ee9a541f12e671 to your computer and use it in GitHub Desktop.
libvirt installation commands
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