Windows 10: How do I stop my WSL2 virtual machine starting automatically?

Discus and support How do I stop my WSL2 virtual machine starting automatically? in Windows 10 Virtualization to solve the problem; I recently set up WSL2 because I needed to run an instance of Ubuntu for a particular purpose. The trouble is that it now starts up automatically when... Discussion in 'Windows 10 Virtualization' started by ricecrispies, Oct 2, 2020.

  1. How do I stop my WSL2 virtual machine starting automatically?


    I recently set up WSL2 because I needed to run an instance of Ubuntu for a particular purpose. The trouble is that it now starts up automatically when Windows starts and takes up memory (vmmem in the Task Manager) even though I will only very rarely be likely to need to use it in the future.

    I have also recently been getting frequent "Internal power error" BSODs and system freezes without BSODs after a minute or two when I wake my laptop from sleep or hibernate and I suspect that this may be connected. I have just enlarged the hibernate file to 100% to see if that will fix the problem, but I would rather not have an unnecessary process taking up large amounts of memory in the first place, particularly as memory management is one area where WSL2 still has a lot of room for improvement.

    I know that I can enter a command at the command prompt to shut my virtual machine down, but is there a way to stop it starting up in the first place until I actually need to use it?

    I'm using Windows version 2004.

    - - - Updated - - -

    I think I have found the answer.

    To activate or deactivate WSL, open a PowerShell window as administrator and use one of these two commands:

    Code:
    Code:
    :)
     
    ricecrispies, Oct 2, 2020
    #1

  2. How do I stop my WSL2 virtual machine starting automatically?

    I recently set up WSL2 because I needed to run an instance of Ubuntu for a particular purpose. The trouble is that it now starts up automatically when Windows starts and takes up memory (vmmem in the Task Manager) even though I will only very rarely be likely to need to use it in the future.

    I have also recently been getting frequent "Internal power error" BSODs and system freezes without BSODs after a minute or two when I wake my laptop from sleep or hibernate and I suspect that this may be connected. I have just enlarged the hibernate file to 100% to see if that will fix the problem, but I would rather not have an unnecessary process taking up large amounts of memory in the first place, particularly as memory management is one area where WSL2 still has a lot of room for improvement.

    I know that I can enter a command at the command prompt to shut my virtual machine down, but is there a way to stop it starting up in the first place until I actually need to use it?

    I'm using Windows version 2004.

    - - - Updated - - -

    I think I have found the answer.

    To activate or deactivate WSL, open a PowerShell window as administrator and use one of these two commands:

    Code:
    Code:
     
    ricecrispies, Oct 2, 2020
    #2
  3. WSL2 for windows

    I have failed into installing WSL for Windows. I have read here: https://docs.microsoft.com/en-us/win.../install-win10 how to do it, and at step 4:


    1. Download the latest package:
      [COLOR=var(--text)][COLOR=var(--info-dark)] Note[/COLOR]
      If you're using an ARM64 machine, please download the ARM64 package instead. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo | find "System Type".
      [/COLOR]
    2. Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)

    I encountered:


    How do I stop my WSL2 virtual machine starting automatically? [​IMG]


    and


    How do I stop my WSL2 virtual machine starting automatically? [​IMG]


    What I did wrong ? I have the following W10 version:

    How do I stop my WSL2 virtual machine starting automatically? [​IMG]


    Another question: am I in the the right forum ?
     
    mesajflaviu, Oct 2, 2020
    #3
  4. How do I stop my WSL2 virtual machine starting automatically?

    Vista Automatic Updating Error

    Automatic Updates isn't currently running.
     
    DistantDeath, Oct 2, 2020
    #4
Thema:

How do I stop my WSL2 virtual machine starting automatically?

Loading...
  1. How do I stop my WSL2 virtual machine starting automatically? - Similar Threads - stop WSL2 virtual

  2. WSL2 displaying error even though virtualization and virtual machine platform are enabled

    in Windows 10 Ask Insider
    WSL2 displaying error even though virtualization and virtual machine platform are enabled: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. For information please visit https://aka.ms/wsl2-install That is what it says in my WSL Ubuntu shell. I have Ryzen 2700X and have enabled SVM in bios. Virtual...
  3. virtual machines

    in Windows 10 Installation and Upgrade
    virtual machines: I have windows 10 pro as my main os and i want a copy of the same os so i can play around with the system configurations without harming my main os. How can i do this? https://answers.microsoft.com/en-us/windows/forum/all/virtual-machines/8896c12f-46cf-4120-a190-fb287326fdf3
  4. how do i stop the start menu from automatically expanding?

    in Windows 10 Customization
    how do i stop the start menu from automatically expanding?: how do I stop the start menu from automatically expanding? https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-stop-the-start-menu-from-automatically/00396709-c79b-4848-a9a3-c71a138866f7
  5. Unable To Start Oracle Virtual Machine

    in Windows 10 Network and Sharing
    Unable To Start Oracle Virtual Machine: When I was trying to load my virtual machine an error box opened My system info is this: Processor: Intel Celeron GPU: Intel HD Graphics Windows 10 Version: 1903 and I'm also in the Windows Insider Preview Build. Heres what it said: Call to WHvSetupPartition failed:...
  6. How do I set Hyper-V Virtual Machines for an user?

    in Windows 10 Customization
    How do I set Hyper-V Virtual Machines for an user?: Hello. I would like some assistance with a project I am working on. I want to let an user on the same Local PC have access to a Virtual Machine through Hyper-V. These created a number of questions: What I want to do is to use a Virtual Machine in a restricted user...
  7. Virtual Machine

    in Windows 10 Installation and Upgrade
    Virtual Machine: I recently installed Hyper-V on my Lenovo Windows 10 machine and am trying to set up a Virtual Machine. I saw Andre Da Costa's post on Groovypost.com in regards to this. His post was dated January 11, 2019. I have not been able to access the BIOS setup screen, as pictured...
  8. How do I stop Skype from starting automatically on windows 10?

    in Windows 10 Customization
    How do I stop Skype from starting automatically on windows 10?: How do I stop Skype from starting automatically on windows 10? I have gone into Settings, but no choices. I looked in Startup and it does not show up....
  9. How Contained is a Virtual Machine

    in Windows 10 Virtualization
    How Contained is a Virtual Machine: I guess I should know this but I don't. If I create a VM with say win version 1703 or 1709 or even DL the "latest and greatest" 1803 and let the updates fly will anything installed to that VM be written to the BIOS "outside" of the VM? Didn't either the Spectre or Meltdown...
  10. How do I stop automatic updates?

    in Windows 10 Updates and Activation
    How do I stop automatic updates?: Hi everyone, I hate Windows 10 because it updates without my consent and slows my computer down a lot. I'd like to be notified that new updates are available and give my OK to download and install them. Can anyone help me please? 10707