I’m running Ubuntu 21.10 as host os and “Gandalf Windows 7 x64 bit PE edition” as VM using qemu and kvm. What I would like to do is to install the nvidia driver for my passed through graphic card (RTX 2080 ti) inside the guest OS / ISO image. The problem that I have is that I don’t have enough space available. Below u can see how I have configured the VM :
qemu-system-x86_64 -enable-kvm -m 16384 -cpu host,kvm=off
-M q35
-smp cores=8,threads=8
-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd
-drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_VARS.fd
-device pcie-root-port,chassis=1,id=testbus
-device vfio-pci,host=0000:02:00.0,id=hostdev0,bus=testbus,addr=00.0,multifunction=on,x-vga=on
-device vfio-pci,host=0000:02:00.1,id=hostdev1,bus=testbus,addr=00.1
-device vfio-pci,host=0000:02:00.2,id=hostdev2,bus=testbus,addr=00.2
-device vfio-pci,host=0000:02:00.3,id=hostdev3,bus=testbus,addr=00.3
-drive file=/media/ziomario/Android2/ISO/Windows/PE/Gandalf-2019-Win7PEx64-07-24-2018.iso,index=1,media=cdrom
-drive file=/media/ziomario/Android2/ISO/Windows/Virtio/virtio-nvidia.iso,index=2,media=cdrom
-device e1000,netdev=net0
-netdev user,id=net0,hostfwd=tcp::5555-:22
-boot menu=on
I’ve added the nvidia driver inside the virtio-cdrom that I have attached it to the guest OS and tried to install the driver in two ways :
-
running the setup.exe,this is what happens :
-
going under the device manager and choosing the folder where is
stored the inf file,this is what happens :
I have also increased the scratch space inside the PE image following this tutorial :
https://grandstreamdreams.blogspot.com/2010/03/winpe-and-dismpeimg-to-boost-scratch.html
These are the commands that I have issued :
Dism /Mount-Wim /WimFile:C:winpe_x64winpe.wim /index:1 /MountDir:C:winpe_x64mount
Dism /image:C:winpe_x64mount /Set-ScratchSpace:512
Dism /Unmount-Wim /MountDir:C:winpe_x64mount /Commit
but the error is still there. Probably I should increase another type of space. Let me know what should I do. thanks.