June 25, 20215 yr Hi all, I recently tried to start my VM's but couldn't because I had deleted the Windows 10.iso. I redownloaded the iso and pointed the VMs to it but it will not boot into windows, it just goes straight to the Windows troubleshooter. This only happens through VNC, I can't get the graphics card pass through to display anything at all. I dont believe anything else has changed except for deleting the Windows Install iso. The VM disks are all still there so I don't think there's any data lost. Any idea how I can boot back into my VM's?
June 25, 20215 yr Author Also, when I go through the Windows Boot troubleshooter and select to reinstall but keep all the data it just gives me an error.
June 27, 20215 yr Author Can anyone assist? Essentially, I deleted the Windows iso that I used to install the VM and when I went to restart the VM I received the error that the iso is missing. After getting another iso the VM won't boot and just goes to the windows boot troubleshooting screen and I can't get it to "repair the installation" Nothing else has changed in the vm or its data. Any ideas?
June 27, 20215 yr On 6/25/2021 at 8:39 AM, Andrewch said: Also, when I go through the Windows Boot troubleshooter and select to reinstall but keep all the data it just gives me an error. What error? 1 hour ago, Andrewch said: Essentially, I deleted the Windows iso that I used to install the VM and when I went to restart the VM I received the error that the iso is missing. This is expected, since the xml settings contain a cdrom with the path to the iso which no longer exists. 1 hour ago, Andrewch said: After getting another iso the VM won't boot This is not expected, since if you didn't change anything, after restoring the iso you should have been able to start the vm 1 hour ago, Andrewch said: Nothing else has changed in the vm or its data. Something should have changed, otherwise you would be able to boot. Are you sure you didn't mess with the ide/sata/virtio emulated controllers? Share xml also. Edited June 27, 20215 yr by ghost82
June 28, 20215 yr Author On 6/27/2021 at 11:22 PM, ghost82 said: On 6/25/2021 at 4:39 PM, Andrewch said: Also, when I go through the Windows Boot troubleshooter and select to reinstall but keep all the data it just gives me an error. What error? When I open VNC and dont press any buttons it ends at a command line saying "Shell>" Alternatively I press any key and boot from CD/DVD and the Windows installation gives me the option to repair or install. Repair has the following options: Startup repair - Says "Startup Repair couldnt repair your PC. No other options other than to return to the UEFI Firmware settings - Havent tried it, im not sure its relevant Command Prompt - Dont know what to do here System Restore - Asks me to specify "which Windows installation to restore. Restart this computer, select operating system and select system restore" Uninstall updates - Havent tried System image recovery - Asks me to locate a restore image. I dont know how to use this in this circumstances Fresh install asks me if I want to upgrade and keep all data (yes) or fresh install (no). When I select "upgrade and keep all data" it says it cannot do this from the iso and I need to boot into Windows and upgrade from there. On 6/27/2021 at 11:22 PM, ghost82 said: On 6/27/2021 at 10:15 PM, Andrewch said: Nothing else has changed in the vm or its data. Something should have changed, otherwise you would be able to boot. Yes you're right. I have removed a physical DVD drive which was added as a second drive through modifying the XML. Im guessing that that may be the issue although I dont know how to delete that drive from the XML. Ive attached my xml. Thanks <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm'> <name>Windows 10 dvd</name> <uuid>65adcf44-3643-6cc9-6abb-60fa0ad89df5</uuid> <metadata> <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/> </metadata> <memory unit='KiB'>16777216</memory> <currentMemory unit='KiB'>16777216</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>6</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='4'/> <vcpupin vcpu='2' cpuset='1'/> <vcpupin vcpu='3' cpuset='5'/> <vcpupin vcpu='4' cpuset='2'/> <vcpupin vcpu='5' cpuset='6'/> </cputune> <os> <type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/65adcf44-3643-6cc9-6abb-60fa0ad89df5_VARS-pure-efi.fd</nvram> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='3' threads='2'/> <cache mode='passthrough'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/user/domains/Windows 10 dvd/vdisk1.img'/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/Chris/Purchased Programs/Setup files/Windows 10.iso'/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/Chris/Purchased Programs/virtio-win-0.1.118-2.iso'/> <target dev='hdb' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='pci' index='0' model='pci-root'/> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </controller> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <interface type='bridge'> <mac address='xx:xx:xx:xx:xx:xx'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> <serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='unix'> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </hostdev> <memballoon model='none'/> </devices> </domain> Edited June 28, 20215 yr by Andrewch
June 28, 20215 yr 5 hours ago, Andrewch said: Ive attached my xml Well, there seems to be nothing wrong, apart the network which may cause issues: <interface type='bridge'> <mac address='52:54:00:ed:51:da'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> Do you remember if you installed the virtio drivers in windows? Try to delete that block of code and see if it boots. You have also this: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </hostdev> It's something you are passing through to vfio, do you know what is it? If you don't attach diagnostics.zip 5 hours ago, Andrewch said: I have removed a physical DVD drive which was added as a second drive through modifying the XML. Im guessing that that may be the issue although I dont know how to delete that drive from the XML Sorry, I'm not understanding here: did you remove the dvd drive from your pc, or did you delete the dvd drive from the xml, or...?
June 28, 20215 yr Author 1 hour ago, ghost82 said: <interface type='bridge'> <mac address='52:54:00:ed:51:da'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> Do you remember if you installed the virtio drivers in windows? Try to delete that block of code and see if it boots. I'm almost certain I did as I followed the Spaceinvader tutorial but I set it up about 1 year ago and all was working fine. 2 hours ago, ghost82 said: You have also this: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </hostdev> It's something you are passing through to vfio, do you know what is it? If you don't attach diagnostics.zip This is the code for a second physical DVD drive that was passed through. It needed some XML modification because I wanted 2 DVD drives connected to the VM. I have since removed one of these drives from the case but the XML remained unchainged. I think that may be part of the problem. Ive tried to remove the above code but that still doesnt work. I was assisted to get ther two drives running on the below thread but I cant work out how to reverse it or even determine if this is the problem. https://forums.unraid.net/topic/87852-passthrough-2x-dvd-drives/?tab=comments#comment-817477 I also tried copying my original XML from the post I just linked but I get this error XML error: unable to parse mac address 'XX:XX:XX:XX:XX:XX' 2 hours ago, ghost82 said: 8 hours ago, Andrewch said: I have removed a physical DVD drive which was added as a second drive through modifying the XML. Im guessing that that may be the issue although I dont know how to delete that drive from the XML Sorry, I'm not understanding here: did you remove the dvd drive from your pc, or did you delete the dvd drive from the xml, or...? All good, Yes I removed the actual drive from the PC I have another VM that works fine so I know the hardware is working. I just want to get the data from this Windows install. Thanks
June 28, 20215 yr 3 minutes ago, Andrewch said: This is the code for a second physical DVD drive that was passed through I don't think it's the correct code to passthrough a dvd/cdrom drive: this is the code for pci(e), dvd/cdrom drives need to be attached to a virtual controller. 5 minutes ago, Andrewch said: Ive tried to remove the above code but that still doesnt work. So did you remove that vfio code and still doesn't boot? 6 minutes ago, Andrewch said: I also tried copying my original XML from the post I just linked but I get this error XML error: unable to parse mac address 'XX:XX:XX:XX:XX:XX' Yes, XX:XX:XX... is not a valid mac address change to 52:54:00:ed:51:da (for example).
June 28, 20215 yr 14 minutes ago, Andrewch said: This is the code for a second physical DVD drive that was passed through This was the code in the thread you pointed for the 2 dvd drives: <hostdev mode='subsystem' type='scsi' managed='no'> <source> <adapter name='scsi_host2'/> <address bus='0' target='0' unit='0'/> </source> <readonly/> <address type='drive' controller='1' bus='0' target='0' unit='0'/> </hostdev> <hostdev mode='subsystem' type='scsi' managed='no'> <source> <adapter name='scsi_host6'/> <address bus='0' target='0' unit='0'/> </source> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </hostdev> with the virtual scsi controllers (each dvd drive was attached to its own virtual controller) : <controller type='scsi' index='1' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/> </controller> <controller type='scsi' index='0' model='virtio-scsi'> <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/> </controller> So that block is passing through something else; attach diagnostic to see what it is. Edited June 28, 20215 yr by ghost82
June 28, 20215 yr Author 48 minutes ago, ghost82 said: 56 minutes ago, Andrewch said: Ive tried to remove the above code but that still doesnt work. So did you remove that vfio code and still doesn't boot? Yes I've removed it and I still get no output to my display. Reading back through the thread I should have explained myself better. The VM starts but I get no output to my monitor. It started as soon as I replaced the windows iso but no output to the monitor. The other code may be passing through my pci usb controller but ill have to get the diagnostics when I get home. Thanks again
June 28, 20215 yr 2 minutes ago, Andrewch said: get the diagnostics when I get home 👍 Edited June 28, 20215 yr by ghost82
Archived
This topic is now archived and is closed to further replies.