Veeam Agent for Microsoft Windows – The network location cannot be reached

This blog post is the first with Veeam as a topic for years! I can only hope that it helps at least some people struggling with the same problem I had.

I’m a PC gamer. Still. When I find some time for fun and games, you may find me on the grounds of Battlefield 2042, or maybe I’m driving a tractor in Farming Simulator 2022. My gaming computer is still capable of playing the most recent games. Maybe not with the best graphics and most recent graphic technologies, but they run and make fun.

Anyways.

On this gaming PC, I’ve installed the Veeam Agent for Microsoft Windows (the free one). Since ages. It works well, but sometimes, the backup fails. Even if you have your games available on demand to be downloaded at any time (Steam, EA, Ubisoft, etc.) and don’t need to install the games from DVDs anymore, it is still annoying if your disk goes bad or something screws up your Windows. I’m using a Synology NAS as my backup target, connected over a 10 Gbit/s ethernet link. The computer itself is equipped with some Samsung NVMe SSDs, so even a full backup is done pretty quickly.

The point is that the computer always takes some time until the network connection is ready and working fine. That’s by design. You log in with Windows Hello, for example, the Desktop is loading, and somewhen the LAN connection is also ready. But Veeam Agent for Microsoft Windows already started its job (in case it’s scheduled and if it has missed that time slot) before the network is ready. And this job will fail because the network is not yet ready.

Error: [PCNAME] Failed to get disk free space. The network location cannot be reached.

I searched for a while on the internet and stumbled across a Veeam forum post. There they mentioned enabling the “When backup target is connected” function.

I enabled this feature and tried it out. It worked.

The backup job will now usually succeed.

Yes, usually. Veeam Agent still starts the job before the network is ready (directly after logging in to Windows). And this job may fail. But the job will start again as soon as there is connectivity to your NAS (SMB share). And this time, the job runs just fine and successful.

My homelab got an upgrade – Intel Optane SSDs!

I didn’t blog about it until yet because I didn’t have the time to install, test and troubleshoot. Also, I didn’t have much time for writing because I was busy with private and business things. But just recently I found time to do some homelabbing and test some things.

May I introduce you: Intel Optane SSDs!

A while ago, the vExpert community got the opportunity to apply for Intel Optane SSDs. I thought why not? They can always say no. So I applied for three Intel Optane SSDs. And I was one of the chosen ones. Sure, this sounds cheesy, but I don’t know how many vExperts finally got some disks.

Through the vExpert program, we had the possibility to choose between the 2.5″ U.2 P4800X 375 GB SSD or its PCIe counterpart. I applied for the U.2 disk. If only I had known what I was getting myself into…

Read more

Windows Activation on AWS fails

Sometimes it may happen that a Windows Server fails with the Windows activation when this virtual machine runs on AWS. I’ve stumbled across this issue from time to time, and with some research and trial & error, I was able to fix it. I haven’t been able to figure out what is causing this problem yet. But at least there is a solution that works. The solution is to activate Windows manually, and maybe “force it to its luck”. The following steps should help you to solve such a Windows activation issue.

Activate Windows manually

NOTICE: This guide is for Windows Server 2016 and later.

Reset Windows Activation

  1. Start the Windows Registry Editor as administrator (right-click → run as administrator)
  2. Navigate to the following location:
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
  3. Go to the right panel and right-click on SkipRearm
  4. Select the Modify option and a dialogue box Edit DWORD 32-bit folder should appear
  5. Here set the Value Data to 1 and click the Ok option
  6. Restart the server now
    It is important to restart the server at this step. Otherwise, the next steps will not work.

Reset Windows Activation timers

  1. Now go to the Start menu, and search for Powershell
  2. Select the run as an Administrator option
  3. Type the following command and press Enter:
    slmgr.vbs /rearm
  4. Restart the server now
    It is important to restart the server at this step. Otherwise, the next steps will not work.

Finally activate Windows

  1. Now go to the Start menu, and search for Powershell
  2. Select the run as an Administrator option
  3. Run the following commands:
    1. Press enter after each command
      Import-Module "C:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psd1"
      
      Add-Routes
      
      Set-ActivationSettings
      
      slmgr /ato
  4. It might be needed to add a Generic Volume License Keys (GVLK) here. To get the key for the correct operating system, you may visit this Microsoft article.
  5. Enter the following command and press Enter
    slmgr.vbs /ipk N69G4-B89J2-4G8F4-WWYCC-J464C
  6. Set the KMS server to the AWS KMS server with the following command:
    slmgr.vbs /skms 169.254.169.250:1688
  7. Run the next command to activate Windows:
    slmgr /ato

Information sources

The following guides and articles have been used to write this troubleshooting guide.

How to reset the ESXi root password?

When I check my blog, I can see the last post from February 2022. That’s a long time ago already! Time to write something, isn’t it?

Back in the days when I was working as a Systems Engineer for an IT service provider, it was much easier to write blog posts. Now as a “customer” I don’t find the time or the ideas, or maybe I’m forgetting blog post ideas, not sure why. At least that’s my thought. I’m always struggling if I should blog about this or that, is it worth writing about it, or are there gazillions of blog posts writing about the exact same thing?

Today’s blog post is exactly such a topic, I assume, that has been written about already some times, at least. But it was a problem we had during an ongoing vSphere upgrade project just recently. And I was able to help our operations team to move on with their work. So why not write a blog post about it?

What happened?

As mentioned, we’re currently working on a global vSphere upgrade project. We’ve got many ESXi hosts and clusters all around the world. So far nothing special. And even when there are easy-to-understand guides available internally (I wrote these myself and triple verified), maybe one or the other point on a checklist is forgotten, or you just didn’t think of it in the heat of the moment. One point is “Check the current credentials if they are working”. Thanks to the following troubleshooting guidance, there was no show stopper and only a few minutes of delay for the upgrade of one ESXi host.

The root password for one of the ESXi hosts didn’t work. No chance to log in through the Web UI nor SSH. So what to do then?

There are only two officially supported ways to reset the root password of an ESXi host. You can reinstall the host from scratch or use host profiles. Well, reinstallation would be an option as we’re upgrading vSphere anyways. But this would require some additional time because of the ESXi configuration. Using a host profile can be done, but needs an Enterprise Plus license.

Because we have some spare licenses left for Enterprise Plus (not yet needed for hosts, but already planned to use), we decided to go the way with the host profile. And it wasn’t rocket science!

How can you do it?

The actual troubleshooting chapter is divided into two parts. The first part is changing the current license of an ESXi host, the second part is all about the host profile.

If you don’t have an Enterprise Plus license, then you have to plan reinstalling the ESXi server from scratch.

Change the host license

  1. Log in to the vCenter WebClient (https://yourvcenter.domain.com/ui)
  2. In vCenter, go to Home and then choose Administration and then Licenses
  3. Click the Assets tab and then the HOSTS button
  4. In the Asset column, you can click the filter icon and search for the ESXi host where you want to assign a different license
  5. Select the host, then click Assign License just above the list
  6. Choose the Enterprise Plus license, and click OK
  7. The host will now have an Enterprise Plus license, and you can continue with the steps below.

Remember to switch back the license to the one that was assigned to the ESXi host before.

Extract, change, and apply the host profile

  1. Log in to the vCenter WebClient (https://yourvcenter.domain.com/ui)
  2. In vCenter, go to Home and then choose Policies and Profiles, and click Host Profiles
  3. Click → Extract Host Profile
  4. In the Extract Host Profile menu wizard → Select the host you want to update the password for, then click Next
  5. Name the Host Profile and click Next and then Finish to complete the capture of the host profile template
    • The new host profile should appear on the Host Profile Objects Field
  6. Right Click the new Host Profile and choose → Edit Host Profile
  7. In the Edit Host Profile wizard, uncheck all boxes
  8. Then using the search filter search for → root
  9. Highlight and then select the check box for → User Configuration / root
    • Make sure to only select this item when searching for root
  10. A configurable window will display the root user configuration
  11. At the Password subsection, choose → Fixed password configuration
  12. Here you have to fill in the new password and confirm it before proceeding
  13. Double-check that all other non-applicable boxes have no check marks and proceed to Finish
  14. Once the task completes, right-click the new host profile and choose → Attach/Detach Hosts and Clusters → then select the host in the wizard
  15. Right-click the host profile again, and select Remediate
  16. Remove/detach the host profile from the host
    • At this time the host password should be successfully upgraded

Please be careful. It is recommended that you do this when the host is in maintenance mode. If it is part of a cluster, great. You can move all VMs away from that host with DRS (automatically or manually). If it is a standalone host, make sure to shut down the VMs first, just in case the host reboots. During the writeup, the affected host did not reboot, but there was a checkbox in the remediation settings that could cause the host to reboot.

How to connect your 3rd party router to a Swisscom Fiber connection?

Recently, we moved our household. Yes, we did. We built a house and we just moved in recently. At the time of writing, it looks like a bomb went off. Cardboard boxes and bags everywhere, furniture not yet at the perfect place, office room not yet ready. But the new cat tree arrived and was installed quickly. Our felines already love it!

Get the internet working!

On the day of moving into the new house, one of my primary tasks was to set up the internet connection and make sure the basic networking and also the TV is working fine. It looked all good when I connected the router. It seemed to have a signal. But when I tried to browse the internet, only a Swisscom landing page was showing up, notifying me that the internet connection has to be activated. What? So that was phone call number one.

I called Swisscom, explained to them what the problem is and if they could help me. They just told me, well, it is not a Swisscom router you have there. And they were right. I’m paying for 10 Gigabit fiber internet. But until the time of moving, Swisscom did not have a router that was capable of bringing that 10 Gig speed also into the home network. So I had to buy another router. It was the Zyxel XGS-PON Fiber-Router AX7501. It is certified by Swisscom, which means that you can use this device for Swisscom fiber internet as well as for Swisscom TV.

Need to pay for support? Not with me!

The guy on the hotline really tried to help, and I appreciate it. But when we reached the root of the cause of “no internet but a Swisscom landing page”, he mentioned that he should connect me with the next level tech support, but that would cost some money. Wait, what? That would be the first time ever since I’m a Swisscom customer, that tech support will cost me money! Well, thanks to the internet, I was able to find a solution. And it was easier than expected.

The solution

Depending on the specific network expansion situation, the Swisscom network supports the following fiber-optic technologies:

  • 10 Gbit/s technology XGS-PON to ITU standard G.9807.1
  • 1 Gbit/s technology point-to-point to IEEE standard 802.3-2008, clause 58, 59

Swisscom explicitly mentions that only routers and modules certified by Swisscom can be connected to the new 10 Gbit/s technology (XGS-PON). And the Zyxel AX7501 is one of the supported routers, probably the only one available currently. But that doesn’t mean that it is just plug-and-play. You can connect everything and the router also gets a signal, but there is no internet except the Swisscom landing page.

So what should I do?

There are two settings that have to be set in the WAN connection settings of the router. Probably settings that the original Swisscom router already has set.

First, you have to set the DHCP option 60 to the value “100008,0001”. Next, you have to set the VLAN ID to VLAN ID 10. That’s it. Save the configuration, and that should already do the trick. Try to browse a website now, it should show up.

A bit of googling saves you the money for paid support, since the information is obviously publicly available. But you first have to realize that such settings are necessary.

Source of information: Connecting external routers to the network – Help | Swisscom