You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| packer-windows@1912952db7 | 5 years ago | |
| .gitignore | 5 years ago | |
| Autounattend.xml | 5 years ago | |
| README.md | 5 years ago | |
| floppy | 5 years ago | |
| scripts | 5 years ago | |
| windows_10.json | 5 years ago | |
README.md
Windows 10 unattended install with packer
Prerequisites
- CentOS Stream 8
Installation
Install packer.
cat > hashicorp.repo <<"EOF"
[hashicorp]
name=Hashicorp Stable - $basearch
baseurl=https://rpm.releases.hashicorp.com/RHEL/8/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg
EOF
sudo dnf config-manager --add-repo hashicorp.repo
sudo dnf -y install packer
Install Qemu / KVM.
sudo dnf install qemu-kvm
Build
Fetch the Qemu Guest tools.
curl -Lo virtio-win.iso https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
Build the Windows image using Packer.
sudo /usr/bin/packer build windows_10.json
Store the built image in the libvirt default pool.
sudo cp windows_10-qemu/windows_10 /var/lib/libvirt/images/windows-10.qcow2