A Lab deployed using terraform
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.
 
 
 
Nicolas Massé c6a303f35d doc 5 years ago
..
packer-windows@1912952db7 windows 10 unattended install 5 years ago
.gitignore windows 10 unattended install 5 years ago
Autounattend.xml windows 10 unattended install 5 years ago
README.md doc 5 years ago
floppy windows 10 unattended install 5 years ago
scripts windows 10 unattended install 5 years ago
windows_10.json windows 10 unattended install 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