Install windows updates on Azure Virtual Machine W10 - azure

I have a Windows10 Azure Virtual Machine running, and via the Windows Update Config screen (in Windows) I see several updates ready to install. However, the Update and Restart option in the start menu doesn't seem to do anything, and the same for the Restart functionality in the Virtual Machine pane of Azure.
I created an Update Management schedule (via Guest & Host Update menu), but this also doesn't seem to do anything. It succeeds after one minute, and when I look on the VM it still lists the updates as needed to install.
How can I install these updates on a Windows10 Azure Virtual Machine?

Try following the steps in this article to clear the Windows Update Cache. Then attempt installing one at a time
https://blogs.technet.microsoft.com/mckittrick/windows-update-issues-clear-windows-update-cache/
If that fails, please try the following :
Click on Start, and then click Run.
Type cmd in the Open box to get a DOS prompt.
Type "net stop wuauserv" without the quotes at the command prompt, and press
Enter.
Delete (or put in recycle bin) the contents of
C:\WINDOWS\SoftwareDistribution (but not the SoftwareDistribution folder)
Type net start wuauserv at the command prompt, and press Enter.
Now try Windows Update again.
If the issue still persists, kindly share the screenshot of the windowsupdate
Also is this the only VM where the issue is happening?

Related

settings is not opening in windows 10 after update?

settings is not opening in windows 10 after updating window 10 2004.
I updated my window 10 operating system but after update settings and it's related app is not opening.
FIX: Settings App Not Working In Windows 10
1. Open administrative Windows PowerShell. For this, simply right click Start Button or press W8K + X keys and select Windows PowerShell (Admin). You can also search for Windows PowerShell using Cortana and right click the same from results and select Run as administrator.
Next, in the PowerShell window, type/paste following cmdlet and press Enter key.
Get-AppXPackage -AllUsers -Name windows.immersivecontrolpanel | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose}
3.Let the command complete. Close Windows PowerShell and reboot the machine. After restarting your system, see if you can launch the Settings app now.
hope this method is work properly. If this method is not working please comment either you get proper solution then my request to you please submit your answer it might be help to other people who facing this issue.

dnf.exceptions.error some packages from local repository have incorrect checksum

I am trying to install redhat (rhel8) in virtualBox 6.1 on a windows 10 64 bit Home edition machine.
I verified the checksum of the iso file after download and its correct (I compared the checksum against another friend iso file who is able to install properly), still I am getting exception like
dnf.exceptions.error some packages from local repository have incorrect checksum
I even tried to run troubleshooting, but it raise exceptin like
failed to start media check on /dev/sr0 virtualbox
I have downloaded the iso files from multiple places and every time it gives me the same exception.
Any help is highly aprreciated.
Finally I found the reason for the above error.
Virtual Box uses virtualization to run multiple Operating Systems and in one system (let's say a windows machine) only one of the application will be allowed to use system virtualization capability.
So we have to disable any manual virtualization if performed in the system.
So we can disable virtualization by following ways:
Search for “Turn Windows features on or off” in the Start menu, hit
the Enter key to open the Windows Features window. Here, scroll down
to Hyper-V and disable it by clearing checkbox next to it. Then click
OK
Disable Hyper-V by using command.
Press Windows logo key + X, then hit A to run Command Prompt as administrator. In Command Prompt window, type
bcdedit /set hypervisorlaunchtype off
and hit Enter key to execute this command.
Finally restart system.

Hyper-V container time sync issue

I am running ubuntu on top of windows 10, hyper-v. Everything goes fine but if I lock my laptop even for sometime, time inside ubuntu becomes out of sync with windows machine. I tried various ways like "chronyd" sync etc but nothing works. Things return to normal, if I restart hyper-v container; but it is painful as I need to start all work again from scratch.
I found a fix for this issue without restarting hyper-v container (ubuntu, in this case). Here are the steps:
Open your hyper-v Manager application.
select the container which is having time issue.
right click on it and select "settings".
Select "Integration services" now, this will show "Time synchronization" check box like this
uncheck that box and click "apply" button. Now again check that "Time synchronization" checkbox and hit "apply" button.
Correct time appears inside container.

Why can't I start the Virtual Machine I just built using VitrualBox?

Everything used to work fine, but I haven't been using Virtual Box for several weeks. Now all of the sudden, I get the following exception when trying to start my Windows 10(32-Bit) VM. Note - Things were working fine several weeks ago. As far as I can tell, I haven't changed anything on my system that would cause this. The exception details are as follow:
VirtualBox - Error In supR3HardenedWinReSpawn (rc=-5640)
Please try reinstalling VirtualBox. where supR3HardenedWinReSpawn
what: 1 VERR_SUP_VP_THREAD_NOT_ALONE (-5640) - Process Verification
Failure: The process has more than one thread
I have been researching this for some time, to avail. Any help would be greatly appreciated.
There is a workaround:
Open VMbox manager
Run your VM with option "Detachable start"
Wait a while and then use "Show" to show the screen
Detachable start option
Show the screen
My setup:
Oracle VM Box 6.0 running on Win10,
VM is Ubuntu 18.04
If you are using vagrant to boot up your Virtual machine, then in most cases the error is due to improper shutdown of the VM. A fix that worked for me is to execute vagrant halt or similar commands multiple times until you have a clean boot.
In case anyone is in the same predicament, I will share what finally fixed my issue. I found a post during my hours and hours of searching that said you have to enable virtualization in BIOS settings. I checked my machine and virtualization was enabled, so I went on searching. At a loss for what to try next, I finally tried turning virtualization off, just to see. No change, but when I went to turn it back on, just as a flook I turned Turbo off, and what do you know - All of the suddent I can start my VM. So the solution, in case it saves someone time:
Uninstall Virtual Box (Latest Version)
Reboot your machine and enter BIOS
Make sure anything with the term 'Virtualization' is turned on
Make sure anything with the term 'Turbo' is turned off
Reboot your machine
Install Virtual Box
Hopefully this saves some poor soul what I had to go through to get this thing working.
METHOD A
If you are using WindHawk, exit it and re-try.
Method B
download previous version from https://www.virtualbox.org/wiki/Download_Old_Builds
install & extensions
Try to re-run your guest OS.
Try to do these steps:
1. Uninstall the VirtualBox program.
2. In your C:\users\\ might have two folders called ".VirtualBox" and "VirtualBox VMs": Delete them
3. Restart your PC
4. Install VirtualBox again
5. Add again your VM
6. It must working fine!
These steps worked for me!
Workaround 1:
Just increase the RAM size from virtual box settings
Right Click on OS image .
Settings->System->MotherBoard
Increase the base memory
Workaround 2:
Change the Paravirtualization Interface from default to none
Right Click on OS image .
Settings->System->Acceleration
Change acceleration from default to none.
The above one's was basically a workaround , which can work in some but not in all.
The best thing would be to reinstall virtual box with latest version which virtual box has tried to rectify the bug and use the same vdi files which was made by Virtual Box .
One of the most common causes that will cause this type of behaviour is a missing driver (VBoxDrv.inf). It’s possible that due to some permission issues, the installation of this crucial driver doesn’t complete during the initial installation. In this case, you can fix the problem by installing the VBoxDrv.inf manually.
1.Fix the directory problem Press Windows key + R to open up a Run dialog box. Inside the text box, type ‘regedit’ and press Enter to open up Registry Editor. When you’re prompted by the User Account Control (UAC), click Yes to grant admin access.
Once you’re inside the Registry Editor, use the left-hand section to navigate to the
following location: HKEY_LOCAL_MACHINE\system\currentcontrolset\services\vboxdrv
After you arrive at the correct location, move over to the right-hand section and
double-click on ImagePath the path associated should be \C:\Program
Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys
if not replace with the above path and click ok.
Install the VBoxDRV.inf OPen location C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv right-click on VBoxDrv.inf and choose Install from the context menu.
Then in cmd run command "sc start vboxdrv"
Restart system. This should work.

Kernel debugging in VS 2012

I have a Kernel mode filter driver project. Host: Win8 Pro x64 running VS2012, Target:Win8 Pro x64 VM on the same machine. I was able to provision the VM through VS 2012 over the network. I deployed the package project. When I try to deploy and Install the package from VS, I am not able to succeed. So I manually installed the driver and the driver works fine. After installing the driver manually, I attach to the kernel of the VM and click on Break all. I find the Kd console in the immediate window of VS '12. I type the command "bu !DriverEntry" and then I type the "g" command. I see the message Debuggee is running. When I place break points on my code and press any key in the VM, I don't see the break points getting hit in my code. Need help!!
Use Fltmc command to load and attach your filter to a specific drive
You can put breakpoints directly in VS without the need to type in the console, if your filter is getting loaded after you type fltmc load "filter name" VS should stop at the driver entry function breakpoint, you may also need to attach it.
Dont forget to check if your debugger is working by when you click break all target machine should freeze.
I wasn't able to debug through VS. I went for a work around and this time I used a Win7 VM. Made use of the KdPrint() method and used the DebugView tool to see the messages. This is a lengthy process but atleast I'm able to debug my driver. Hope this helps someone else too

Resources