It's unable to edit the hosts file.
Typically, an AntiVirus app will prevent editing this file. You can temporarily disable it.
--OR--
just add the line yourself to the hosts file. If it finds the pattern it will skip that step
This is the line it's looking to match - just add it manually to the hosts file.
127.0.0.1 view-localhost # view localhost server
vdmInstUtil: 09/09/22 11:44:55 Entering custom action VMAddViewLocalHostEntryToHostsFile
vdmInstUtil: 09/09/22 11:44:55 --- VMAddViewLocalHostEntryToHostsFile() : Adding view-localhost entry to the 'etc\hosts' file.
vdmInstUtil: 09/09/22 11:44:55 File exists: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 Searching for '127.0.0.1 view-localhost # view localhost server' in "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 File exists: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 Pattern not found!
vdmInstUtil: 09/09/22 11:44:55 Appending text to file: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 ERROR: Failed to open file: "C:\WINDOWS\system32\Drivers\etc\hosts": 13
vdmInstUtil: 09/09/22 11:44:56 Appending text to file: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:56 ERROR: Failed to open file: "C:\WINDOWS\system32\Drivers\etc\hosts": 13
vdmInstUtil: 09/09/22 11:44:56 retry 1 - Util_AppendLinesW failed
It's unable to edit the hosts file.
Typically, an AntiVirus app will prevent editing this file. You can temporarily disable it.
--OR--
just add the line yourself to the hosts file. If it finds the pattern it will skip that step
This is the line it's looking to match - just add it manually to the hosts file.
127.0.0.1 view-localhost # view localhost server
vdmInstUtil: 09/09/22 11:44:55 Entering custom action VMAddViewLocalHostEntryToHostsFile
vdmInstUtil: 09/09/22 11:44:55 --- VMAddViewLocalHostEntryToHostsFile() : Adding view-localhost entry to the 'etc\hosts' file.
vdmInstUtil: 09/09/22 11:44:55 File exists: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 Searching for '127.0.0.1 view-localhost # view localhost server' in "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 File exists: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 Pattern not found!
vdmInstUtil: 09/09/22 11:44:55 Appending text to file: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:55 ERROR: Failed to open file: "C:\WINDOWS\system32\Drivers\etc\hosts": 13
vdmInstUtil: 09/09/22 11:44:56 Appending text to file: "C:\WINDOWS\system32\Drivers\etc\hosts"
vdmInstUtil: 09/09/22 11:44:56 ERROR: Failed to open file: "C:\WINDOWS\system32\Drivers\etc\hosts": 13
vdmInstUtil: 09/09/22 11:44:56 retry 1 - Util_AppendLinesW failed
Adding the line "127.0.0.1 view-localhost # view localhost server" to the hosts file resolved the issue.