Last active
August 19, 2021 20:09
-
-
Save itapai/4ed8cfa65dd19389a8ae8b81adea1f0c to your computer and use it in GitHub Desktop.
headless virt-install windows server
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
| #!/usr/bin/env bash | |
| qemu-img create -f qcow2 /var/lib/libvirt/vms/win-server-2019.iso 50G | |
| virt-install \ | |
| --name=win-server-2019 \ | |
| --os-type=windows \ | |
| --memory=4096 \ | |
| --cpu=host \ | |
| --vcpus=2 \ | |
| --network bridge=virbr0,model=virtio \ | |
| --disk path=/var/lib/libvirt/vms/win-server-2019.qcow2 \ | |
| --disk path=/var/lib/libvirt/images/virtio-win.iso,device=cdrom \ | |
| --cdrom=/var/lib/libvirt/images/win-server-2019.iso \ | |
| --graphics vnc,listen=0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment