VM -> Windows 10

Conza

Dabbler
Joined
Mar 4, 2022
Messages
24
Hi team,

I have searched many threads and have not found a helpful answer. Breakdown: old PC turned into server. Has plex going, now looking to expand to Virtual machine... for windows 10. I have watched every video tutorial on youtube.

My issue: windows 10 crashes upon install. VNC connection is lost and then "failed to connect to server" post crash.

  • Motherboard make and model: Asus S1155 P8Z68-V-LE
  • CPU make and model: Intel Core i5 2500K 3.3GHz Quad Core CPU
  • RAM quantity: 16GB
  • Hard drives, quantity, model numbers, and RAID configuration, including boot drives:
    • Disk Type:​

      SSD

      Description: boot drive​

      Model:​

      WDC WDS500G1R0A-68A4W0

      Transfer Mode:​

      Auto

      Adv. Power Management:​

      DISABLED

      Acoustic Level:​

      DISABLED

      Enable S.M.A.R.T.:​

      true
    • 2 * 12TB HDD, Seagate

      Model:

      ST12000VN0008-2PH103

      Transfer Mode:

      Auto

      Rotation Rate (RPM):

      7200
  • Have checked virtualisation is enabled.
  • Version: TrueNAS-12.0-U8
  • HaveWin10_21H2_English_x64.iso and virtio-win-0.1.215.iso.
  • Choose windows 10 Pro N.
  • VM setup:
  • Virtual CPUs:​

    2​

    Cores:​

    2​

    Threads:​

    1​

    Memory Size:​

    9.00 GiB​

    Boot Loader Type:​

    UEFI​

    Com Port:​

    /dev/nmdm1B​

    Description:​

    Secure​

    Shutdown Timeout:​

    90 seconds​

  • 1000 GB disk size. Virtio type of disk.​
  • It boots, gets the start of windows install - I go through the process, but the VNC crashes just as it starts 'copying' over / installing windows. Or it crashes before then.​
  • When I try to reconnect to the VNC, it says: "failed to connect to server"​
  • It cannot connect again; so I have to stop it. When I do, get this error:​
  • Error: Traceback (most recent call last):​
    File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run​
    await self.future​
    File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 405, in __run_body​
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))​
    File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread​
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))​
    File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run​
    result = self.fn(*self.args, **self.kwargs)​
    File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf​
    return f(*args, **kwargs)​
    File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 1629, in stop​
    vm.stop(vm_data['shutdown_timeout'])​
    File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 262, in stop​
    self.domain.shutdown()​
    File "/usr/local/lib/python3.9/site-packages/libvirt.py", line 2912, in shutdown​
    raise libvirtError('virDomainShutdown() failed')​
    libvirt.libvirtError: An error occurred, but the cause is unknown​

  • Powering off, and turning back on the VM - I can then go through install process again but it crashes, same deal.

    Any ideas? Would be greatly appreciated.​
 

Conza

Dabbler
Joined
Mar 4, 2022
Messages
24
Still want to set this up. Have setup another Linux mate distro, and added a container (portainer) etc.
Where am I going wrong?
 

cih95

Cadet
Joined
Feb 18, 2015
Messages
3
Hi team,

I have searched many threads and have not found a helpful answer. Breakdown: old PC turned into server. Has plex going, now looking to expand to Virtual machine... for windows 10. I have watched every video tutorial on youtube.

My issue: windows 10 crashes upon install. VNC connection is lost and then "failed to connect to server" post crash.

  • Motherboard make and model: Asus S1155 P8Z68-V-LE
  • CPU make and model: Intel Core i5 2500K 3.3GHz Quad Core CPU
  • RAM quantity: 16GB
  • Hard drives, quantity, model numbers, and RAID configuration, including boot drives:
    • Disk Type:​

      SSD

      Description: boot drive​

      Model:​

      WDC WDS500G1R0A-68A4W0

      Transfer Mode:​

      Auto

      Adv. Power Management:​

      DISABLED

      Acoustic Level:​

      DISABLED

      Enable S.M.A.R.T.:​

      true
    • 2 * 12TB HDD, Seagate​

      Model:

      ST12000VN0008-2PH103

      Transfer Mode:

      Auto

      Rotation Rate (RPM):

      7200
  • Have checked virtualisation is enabled.
  • Version: TrueNAS-12.0-U8
  • HaveWin10_21H2_English_x64.iso and virtio-win-0.1.215.iso.
  • Choose windows 10 Pro N.
  • VM setup:
  • Virtual CPUs:​

    2​

    Cores:​

    2​

    Threads:​

    1​

    Memory Size:​

    9.00 GiB​

    Boot Loader Type:​

    UEFI​

    Com Port:​

    /dev/nmdm1B​

    Description:​

    Secure​

    Shutdown Timeout:​

    90 seconds​

  • 1000 GB disk size. Virtio type of disk.​
  • It boots, gets the start of windows install - I go through the process, but the VNC crashes just as it starts 'copying' over / installing windows. Or it crashes before then.​
  • When I try to reconnect to the VNC, it says: "failed to connect to server"​
  • It cannot connect again; so I have to stop it. When I do, get this error:​
  • Error: Traceback (most recent call last):​
    File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run​
    await self.future​
    File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 405, in __run_body​
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))​
    File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread​
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))​
    File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run​
    result = self.fn(*self.args, **self.kwargs)​
    File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf​
    return f(*args, **kwargs)​
    File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 1629, in stop​
    vm.stop(vm_data['shutdown_timeout'])​
    File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 262, in stop​
    self.domain.shutdown()​
    File "/usr/local/lib/python3.9/site-packages/libvirt.py", line 2912, in shutdown​
    raise libvirtError('virDomainShutdown() failed')​
    libvirt.libvirtError: An error occurred, but the cause is unknown​

  • Powering off, and turning back on the VM - I can then go through install process again but it crashes, same deal.

    Any ideas? Would be greatly appreciated.​
i have the same problem
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

Virtual CPUs:​

2

Cores:​

2

Threads:​

1
That might be one of the problems... Windows prefers a single socket/CPU with some cores and threads.

Also:

Memory Size:​

9.00 GiB
Might be too much if your additional RAM didn't yet arrive.

virtio-win-0.1.215.iso.
I note that there have been (very) many threads about problems with this... (example https://www.truenas.com/community/threads/win-10-virtual-machine-truenas.89116/post-677366)

Have you tried at least one other version of the virtio drivers where you have seen somebody reporting success in the forum (like the post I linked)?
 

farshidhss

Dabbler
Joined
Oct 2, 2018
Messages
11
This has nothing to do with the Windows. I have Ubuntu in my virtual machine and I get the exact same error.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I'm willing to bet all of you having the same problem don't have 32 GB of RAM.
I used to have the same problem also back when I had 16 GB of RAM. I now have 32 and no longer have this issue.

To OP:
9 GB of RAM for VM when your system only has a total of 16 GB??!?!!? That's bonkers, especially when TrueNAS min RAM requirements alone is ALREADY 16 GB of RAM.

I did figure out a work-around for the issue though.
Instead of the bhyve VNC, what you need to do, is just use the whatever the OS's native remote desktop (VNC for Linux, RDP for Windows).
Use the bhyve VNC just to set your VM up to that point and stop using it thereafter and you should stop seeing the crashes.
 
Top