To do so, start the file explorer, select the CDROM drive with the VirtIO iso image mounted and browse to the folder folder of the desired component. Some often needed, using the virtio-win-0.1.105 version, are:
In the settings of VirtManager I tried NAT+virtio, NAT+e1000, NAT+HypervisorStandard, Macvtap+e1000, Macvtap+virtio. Nothing worked.In Windows Device Manager the Network Adapter is shown with a yellow triangle and further installations are required. (With installed driver)
Download Virtio Win 0.1 15.iso
Windows complains that it cannot find a driver (which is normal as far as I've read install guides). I point the installer to the virtio driver on the second ISO which it seems to recognize and tries to install it. The installation of the driver fails however with this message:
To use the drivers start the install with the Windows 8.1 disc. When you get to the partitioning screen change the disk to the driver disk ISO you just downloaded. This can be done with the QEMU monitor via Ctrl+Alt+2.Eject ide-cdrom (you can hit tab for completion). Change /path/to/drivers/disk.iso
# qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 2048 -localtime -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -daemonize -cdrom /tmp/CentOS-8-x86_64-1905-boot.iso -boot d
$ qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 2048 -localtime -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -daemonize -cdrom /dev/debian-11.3.0-amd64-netinst.iso -boot d
[RESCUE] root@vps-dbxxxxxx:/dev $ qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 2048 -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -spice port=5901,addr=127.0.0.1,disable-ticketing -daemonize -cdrom /dev/debian-11.3.0-amd64-netinst.iso -boot d
virt-install --connect qemu:///system --arch=x86_64 -n ws2012 -r 2048 --vcpus=2 --disk path=/tmp/ws2012.qcow2,device=disk,bus=virtio,size=15 -c /mnt/Source/en_windows_server_2012_x64_dvd_915478.iso --vnc --noautoconsole --os-type windows --os-variant win7 --network=bridge:virbr0 --disk path=/mnt/Source/en_windows_server_2012_x64_dvd_915478.iso,device=cdrom,perms=ro -c /mnt/Source/virtio-win-0.1-81.iso
At the lower left corner click Add hardware and add a Storage device. The Device type is CDROM device. Add the virtio-win-0.1.172.iso (you may have a newer version). This is important as it contains the virtio drivers:
Now lets create the virtual machineJust continue with local install mediaNow browse for your Windows isoUnless you have moved your Windows iso to a location where you already have a Storage pool, you need to click Browse LocalNow we can finally start browsing the filesystem for our Windows 11 isoI have not moved it, so it's in my Downloads folder. This folder location will be set as a storage pool by virt-manager. So next time you download an iso you don't have to click Browse local, just choose the "Downloads" storage pool.No one has told my virt-manager that Windows 11 exists, so it will automatically choose Windows 10. But that is fine, just continue.I gave my virtual machine a bit more ram and 8 cores should be more than enoughI have no idea how much space Windows 11 will need so I will create one 100Gb disk for it. Remember that the virtual machine will only use as much space as it needs even though I set it to 100Gb here. This size is only what Windows will think the disk is.I have already created a Network Bridge so virtual manager has chosen that one by default. For now it doesn't really matter what network device you have it can be changed later.
Click Add Hardware again and choose Storage, this time we change the Device type to CDROM device. Then click Manage... to browse for the virtio drivers isoNow this time the Download storage pool exists. Select that one and browse for the virtio-win drivers iso
Remember to press a button to boot the installer, then just install almost as on bare hardware.When you are going to choose where to install you need to install the Virtio drivers. Click Load driver buttonBrowse the second CD drive with the virtio drivers and choose the folder for Windows 10 (w10) they will workWhen the drivers are installed the installer can find your VirtIO drive. Just continue the install process.And finally we have Windows 11 installed in a virtual machine on Linux 2ff7e9595c
Comments