Created
January 18, 2022 11:25
-
-
Save SeyedMostafaAhmadi/b61a020441063804350b993be3f90724 to your computer and use it in GitHub Desktop.
Create vm in kvm with virt-install command
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
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