Last active
November 16, 2017 00:54
-
-
Save idvoretskyi/779d336cf76b269d75aafcb86b07d884 to your computer and use it in GitHub Desktop.
Create Virtual Machine - Ubuntu KVM
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 template \ | |
| --ram 4096 \ | |
| --disk path=/var/lib/libvirt/ubuntu1604.img,size=30 \ | |
| --vcpus 2 \ | |
| --os-type linux \ | |
| --os-variant ubuntu16.04 \ | |
| --network bridge=virbr0 \ | |
| --graphics none \ | |
| --console pty,target_type=serial \ | |
| --location 'http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/' \ | |
| --extra-args 'console=ttyS0,115200n8 serial' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment