I've set up a vga passthrough to a Windows 7 machine with a 250GB qcow2 hard drive and this is the 5th time I've had to reinstall Windows because I keep getting a 7b error. What is causing this?! It's driving me crazy. I've spent over 16 hours downloading a game off of steam just to be met with this error over and over. At first it was an update that Windows was getting. After the update it would blue screen after a restart. So for the 2nd install I turned off automatic updates, but it somehow always ends up screwing up its own hard drive. Is it the qcow2 image or something else?
After the second time, I tried to run Windows repair, which couldn't fix the problem. I tried the disk repair tool and tried fixboot, fixmbr, ect. Still didn't fix the problem.
Here's my machine's startup script:
After the second time, I tried to run Windows repair, which couldn't fix the problem. I tried the disk repair tool and tried fixboot, fixmbr, ect. Still didn't fix the problem.
Here's my machine's startup script:
Code:
#!/bin/bash
configfile=/etc/vfio-pci1.cfg
vfiobind() {
dev="$1"
vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
device=$(cat /sys/bus/pci/devices/$dev/device)
if [ -e /sys/bus/pci/devices/$dev/driver ]; then
echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
fi
echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
}
modprobe vfio-pci
cat $configfile | while read line;do
echo $line | grep ^# >/dev/null 2>&1 && continue
vfiobind $line
done
sudo qemu-system-x86_64 -enable-kvm -M q35 -m 6144 -cpu host,kvm=off \
-smp 4,sockets=1,cores=1,threads=1 \
-bios /usr/share/qemu/bios.bin -vga none \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device pci-assign,host=00:14.2 \
-device vfio-pci,host=07:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile=/home/ben/KVM-Images/misc/GF114.rom \
-device vfio-pci,host=07:00.1,bus=root.1,addr=00.1 \
-drive file=/home/ben/KVM-Images/windows.img,id=disk,format=qcow2 -device ide-hd,bus=ide.0,drive=disk \
-drive file=/home/ben/Downloads/windows-7/windows-7.iso,id=isocd -device ide-cd,bus=ide.1,drive=isocd \
-usb -usbdevice host:046d:c24a -usbdevice host:06a3:8021 \
-boot menu=on
exit