Home
Microsoft 365
Linux
Windows
Powershell
Cloud Computing
    Citrix Xendesktop
    Citrix XenApp
Useful links
About
  • Home
  • Microsoft 365
  • Linux
  • Windows
  • Powershell
  • Cloud Computing
    • Citrix Xendesktop
    • Citrix XenApp
  • Useful links
  • About
ajni.IT -
Virtualization•VMware

VMware Remove “Safely Remove Hardware” icon in a Windows Guest OS

December 27, 2023 by AJNI No Comments

As a normal user without admin rights, you can theoretically kill the Windows Guest OS (for example if you are connected through Citrix or Remote Desktop Services) by safely removing the VMXNET3 adapter on the bottom right. This is very bad and is apparently “by design”.

To hide the icon proceed as folow:

With the VM powered off, click Edit Settings > Options > General and configuration parameters. Add row and then type devices.hotplug. As a value insert FALSE. You can then power on your machine.

References:

https://communities.vmware.com/t5/ESXi-Discussions/Remove-quot-Safely-Remove-Hardware-quot-icon-in-a-Windows-guest/td-p/2495345

Reading time: 1 min
Citrix XenApp•VDI•VMware

Citrix Provisioning Services – Update VMware Tools on Masterimage / vDisk

August 24, 2023 by AJNI 2 Comments

Updating VMware Tools on a Citrix Provisioning Master Image used to be very time consuming. Nowadays it has gotten a little better, but you still have to do a few extra steps because of the vmxnet3 network adapter. Here are the steps that I took when upgrading to the newest Vmware Tools that came with ESXi 8.0 update.

  • Start the Master VM
  • Once booted up, add a new E1000E network card
  • Check in device manager if the E1000E/Intel network card can be seen
  • Shutdown VM
  • In the Provisioning console, change the mac address of the target device to that of the E1000E network card
  • Disconnect vmxnet3 NIC (uncheck connect on power on)
  • Start Master VM. Beware that the E1000E NIC is emulated and is painfully slow. I had instances where it took 15 minutes to boot up!
  • Once booted up, start VMware Tools upgrade through Vcenter (interactive)
  • Visual C++ Redistributable might be installed, you might need to reboot
  • Let boot
  • Start Vmware Tools upgrade again (interactive)
  • Run the installer
  • Shutdown VM
  • Disconnect E1000E NIC (uncheck connect on power on)
  • Connect vmxnet3 NIC (check connect on power on)
  • Boot
  • Once booted, fully remove E1000E fully
  • In device manager, show hidden devices and delete the greyed out Intel NIC

This time there are no references. I had to try and error myself.

Reading time: 1 min
Azure•Hyper-V•Virtualization•VMware•Windows•Windows Server

Bring a Windows Server’s disk back to life with these two commands

October 18, 2021 by AJNI No Comments

If you have the misfortune of having to troubleshoot and repair boot issues on a virtual machine after a physical host crash, these two commands might help you.

First of all, try to get into the advanced settings on boot (it should be the F11 key), or after a while Windows (Server or 10/11) might automatically go into the menu when it cannot boot from disk. Alternatively a Windows ISO image can be used.

Once in the advanced settings, run the good old checkdisk command:

chkdsk /f C:

After completion, restart the VM and check if you are able to boot. If the issue persists, try restoring the registry database (once again through the advanced settings or a Windows ISO). A scheduled task regularly backs up the registry and puts it the folder C:\Windows\System32\config\Regbak.

copy C:\windows\system32\config\RegBack\* C:\windows\system32\config

Restart the VM and check if you are able to boot into Windows. If you still have issues, you should consider restoring from a backup (it sucks but sometimes it is unavoidable).

Reading time: 1 min
Cloud Computing•Virtualization•VMware•Windows•Windows Server

Linked Clones in VMware Workstation

July 13, 2020 by AJNI No Comments

A while ago I made a blog post about Differencing Disks in Hyper-V. If you mainly work with Hyper-V, you should check it out: https://www.ajni.it/2019/10/hyper-v-create-a-master-vhdx-to-save-tons-of-space/. VMware Workstation utilizes a similar concept, called Linked Clones.

Linked Clones use a read-only disk as a reference, changes made to the VM are written into a separate writable disk. This technique allows us to save disk space and create a lot of VMs. Changes, at least in the beginning after the OS installation, are very small.

Install Windows 10 or Windows Server along with VMware Tools and then Sysprep your VM.

Now the template can be “cloned”

In VMware, a Differencing Disk is called Linked Clone. Just like in a snapshot, a linked clone uses a base read-only disk and saves changes into second, writable disk.

Now a name for the new VM can be inserted.

After booting up the new VM, we can see that the writable disk only consumes 7MB. 4GB are used for the memory state.

This feature is awesome for home labs. You can create multiple VMs off of that single base disk. In a lab, changes are usually very small, so you can save a ton of space using this method. I would not recommend updating your system through Windows Updates or enabling Bitlocker.

If for some reason the base disk is corrupt or lost though, every VM will be affected.

Reading time: 1 min

Like what you are reading? Buy me a coffee.

Tip Of the Day

  • Add Alias to Windows Fileserver (Server 2019, 2022, 2025)

    1 month ago

Keep in touch

Oh hi there!
It’s nice to meet you.

Sign up to receive awesome content in your inbox, every month.

Check your inbox or spam folder to confirm your subscription.

Categories

  • AI & Deep Learning (1)
  • Azure (20)
  • Citrix XenApp (21)
  • Citrix Xendesktop (13)
  • Cloud Computing (40)
  • Coding (1)
  • Hyper-V (10)
  • Linux (8)
  • Microsoft 365 (26)
  • Powershell (21)
  • Security (7)
  • VDI (16)
  • Virtualization (21)
  • VMware (12)
  • Windows (21)
  • Windows Client OS (39)
  • Windows Server (92)

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019