Before starting, ensure your host system has the necessary virtualization packages and installation media ready:
Tip: When creating disk, set bus=virtio and driver type virtio-blk or virtio-scsi. virtio-scsi is more flexible and recommended for production; load the scsi driver if you used scsi.
Now that we have our virtual disk image, let's boot QEMU with the Windows 8.1 ISO. Run the following command: windows 81 qcow2 install
Once you've booted QEMU with the Windows 8.1 ISO, follow the installation process as you would on a physical machine. You'll need to:
After installation, start the libvirt service and add your user: Before starting, ensure your host system has the
Before starting, you need to gather the necessary installation files and ensure your host system has virtualization enabled. 1. Hardware Virtualization (VT-x/AMD-V)
virt-install \ --name win8.1 \ --ram 8192 \ --vcpus 2 \ --cpu host \ --os-variant win8.1 \ --disk path=/var/lib/libvirt/images/win8.1.qcow2,format=qcow2,bus=virtio,size=60 \ --cdrom /path/to/Win8.1.iso \ --disk path=/path/to/virtio-win.iso,device=cdrom \ --graphics spice \ --video qxl \ --network network=default,model=virtio \ --boot uefi Run the following command: Once you've booted QEMU
Select "Windows 8.1" or "Windows 7" (if 8.1 is not listed).
qemu-system-x86_64 -m 4 G -cpu host -enable-kvm \ -drive file=windows81.qcow2,format=qcow2,if=virtio \ -cdrom /path/to/windows_8.1.iso \ -drive file=/path/to/virtio-win.iso,index=3,media=cdrom \ -net nic,model=virtio -net user \ -vga qxl -usb -device usb-tablet Use code with caution. Copied to clipboard 4. Running the Setup