Unable to provision WEF - stalls at "shutting down" #517
Comments
|
Hi @OpalSec , do you mind sharing which version of Virtualbox you're using so I can try to reproduce? |
|
@clong VirtualBox v6.1.12 |
|
@OpalSec can you try: Edit Vagrant/scripts/join-domain.ps1 and add the following lines after line 37:
The file should then show:
I ask you to try this because I've seen tiledatamodelsvc be a service that hangs during shutdown. You'll have to destroy and recreate the wef host, though.
|
|
I should also note that Issue #510 persists, even though it's been closed. Commenting out those lines fixed the problem for me, but it took a while to find this solution. |
|
Are you sure you're on a recent commit? That definitely should not be persisting |
|
Yeah, sorry, I reverted to a working snapshot that had an older commit. I fetched the latest and re-attempted and the error is the same as above: But yeah, disregard my comment on #510, that was my mistake. |
|
Hi @OpalSec - sorry, I haven't been able to reproduce this on my system yet and haven't yet had a chance to try it on a Win2019 machine. Will try to get to it this week! |
|
No worries. Sorry I'm not being super helpful, let me know if you need me to run more tests in my environment! |
|
For what it's worth, I'm encountering the same issue with the following setup:
Haven't been able to pinpoint the issue but I'm still poking around. |
|
I encountered the same scenario several times few months back both on Windows and macOS, only with VirtualBox. I recall trying 6.1 and 6.0 versions. Exactly WEF remained in shutting down status and I needed to kill the process in order to progress further. I opened an issue back in March and posted some logs and screenshots, perhaps it helps: #400 |
|
Hi folks, I'm really sorry for the delay! See this post for my excuse :) https://twitter.com/DetectionLab/status/1311432542289948672 I'm spinning up a server 2019 baremetal server in an attempt to reproduce this as I'm unable to do so with the Win10 host I have at home. I don't believe whatever is happening here is directly Vagrant or Virtualbox related - I imagine something in Windows is preventing the OS from shutting down correctly but it's not always easy to narrow that down.
I just pushed a code change to master that may or may not help with this. |
|
Also, would anyone be willing to jump on a video call with me and screen share so we can potentially pinpoint the issue together? I'm having trouble setting up an environment that reproduces this issue |
|
@clong, this is excellent news! Congratulations for the new addition to the Team!!! I personally think this is not OS related because the Win 16 properly shuts down, but the VirtualBox VM window gets stuck somehow (POWERING_OFF_LS failed, because the VM state is actually OFF). I have the following log from the previous opened issue: 00:02:00.973624 Changing the VM state from 'POWERING_OFF' to 'OFF' |
|
@liviurosioara thank you! You are totally right, I'm so used to the issues being OS related I totally glossed over the Virtualbox logs. I came across this forum post which seems to outline a similar-ish issue (although its like 10 years old): https://www.virtualbox.org/ticket/8294 Apparently enabling the host i/o cache on the storage controller fixed their problem. This is a total hail mary, but can you check to see if host i/o cache is enabled on the storage controller for your WEF host? |
|
Hi, I wanted to give it a try today with VirtualBox 6.1 on macOS 10.15.7. However I constantly run into the same error that is happening when WEF is being provisioned: [14:42] Now join the domain... HasSucceeded : True WARNING: The changes will take effect after you restart the computer wef. AutoEndTasks : 1 [14:42] Disabling Windows Updates and Windows Module Services Stderr from the command: powershell.exe : Set-ItemProperty : A parameter cannot be found that matches parameter name 'PropertyType'.
|
|
My fault, I just introduced this and it's fixed now.
Powershell |
|
I tried provisioning with VirtualBox and it's exactly the same scenario: WEF cannot complete a restart and remains stuck in 'Shutting down' status (VM window is grey, so it is not stuck in the OS). I checked and the cache setting on the controller is enabled on WEF and the other 2 already provisioned Logger and DC. Vagrant output: VirtualBox WEF Log: |
|
@liviurosioara just to double check a few things:
I'm really at a loss here, this seems like a Virtualbox issue, but I don't have a good sense of what's causing it. I'll keep trying to reproduce. |
|
Oops, clicked the wrong button |
|
Hi,
I also have a feeling this is a VirtualBox issue. Because it always failed in my case (perhaps except once? which makes the things looking even stranger) I purchased the Vagrant license and now I'm mainly using VMWare Fusion. It is not critical for me anymore, but I hope we could help others as well. I recall that provisioning WEF individually it is a pass, I think this was one workaround. |
|
@liviurosioara oddly enough I feel like I ran into this exact issue at some point in time months ago, but it seems to have self-resolved somehow. Thanks so much for providing the information, it definitely helps me figure out how I can reproduce the error and narrows down the cause. |
|
I just ran another attempt, this is the timeline:
Logger: ok
This time the reboot after joining the domain is fine, WEF is being provisioned. |
|
I am wondering, what could be the difference between provisioning in sequence vs one by one e.g. 'vagrant up' vs 'vagrant up wef'. The second seems to be fine. |
|
Hey @clong sorry for not responding - I've been caught up with other things. Not sure if you'd like me to try anything else, but for the record I did upgrade Vagrant to the latest version and download the latest commit before trying a full re-deploy, and it stalled trying to shut down the VM again. I also checked to make sure the Host I/O cache option was selected on wef, and it was. Unlike @liviurosioara, destroying the wef VM and spinning it up again with Let me know if you'd like any specific logs or for me to try anything on my environment to help out. Congrats on the kid by the way; I hope you're brushed up on your dad jokes, it's your time to shine! |
|
I have experienced this issue too, on MacOS. I think it is a Virtualbox problem, in any case destroying WEF and trying to get it up again works, maybe not the first attempt, but eventually will work. |
|
Yeah, I'm continuing to see this problem and the root cause definitely appears to be an issue with VirtualBox. I'll go ahead and open up an issue on their bug tracker, but I don't expect this to be resolved anytime soon :( |
|
Bug report is here: https://www.virtualbox.org/ticket/20035 |
|
Dears, @OpalSec @clong @liviurosioara I had this exact same issue, i tried many things, and it works now, specifically, i converted the CentOS rpm version to .deb (using alien) uninstalled vagrant and then reinstalled the alienated package(someone on medium warned about that with Splunk's attack_range_local) and it seems to work fine now (btw, the machine had other instability issues before doing the above, idk why ?!, it hanged occasionally while i was troubleshooting on it ... etc) |
unfortunately the error comes again sorry |








Please verify that you are building from an updated Master branch before filing an issue.
Description of the issue:
Vagrant provisioning stalls when attempting to shut down the wef host. I've tried destroying and reloading with --provision several times; rebooting the host in case it was in a bad state, but nothing's helped. No debug information to work on to figure out why, either.
The text was updated successfully, but these errors were encountered: