Skip to content

Instantly share code, notes, and snippets.

@SeyedMostafaAhmadi
Created January 18, 2022 11:25
Show Gist options
  • Save SeyedMostafaAhmadi/b61a020441063804350b993be3f90724 to your computer and use it in GitHub Desktop.
Save SeyedMostafaAhmadi/b61a020441063804350b993be3f90724 to your computer and use it in GitHub Desktop.
Create vm in kvm with virt-install command
virt-install --name=test\
--ram=2048 --os-type=linux\
--cdrom=/var/lib/libvirt/images/debian-9.4.0-amd64-xfce-CD-1.iso\
--disk path=/dev/mapper/vg_kvm-db21_root\
--disk path=/dev/mapper/vg_kvm-db21_tmp\
--disk path=/dev/mapper/vg_kvm-db21_swap\
--network bridge=br0\
--vnc --noautoconsole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment