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.
874 B
874 B
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