Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only start VM when needed (KDE Plasma) #359

Open
crieo opened this issue Sep 16, 2023 · 0 comments
Open

Only start VM when needed (KDE Plasma) #359

crieo opened this issue Sep 16, 2023 · 0 comments

Comments

@crieo
Copy link

crieo commented Sep 16, 2023

Hi,
so I'm new Github so excuse me for opening this as an issue but i didn't know where to put it.

So, i do not want to start the VM every time i boot my Kubuntu. Therefore, i wrote a little script and pinned that to the taskbar for starting the machine (prior to using word and Excel).

Why do that to begin with?
Running the VM all the time blocks some CPU and RAM. In case you primarily use your machine for calculations or gaming, continousily reserving resources might might not be the perfect solution. With this script, you can just start the machine as you need it. This script will work for GNOME as well, but as I don't know about pinning the apps there, I'm naming the topic specifically "KDE Plasma".

Below you can find the simple code. I know any advanced user will know this already but just in case...

  1. Open a file (for example on the desktop)
  2. paste the following:

#!/bin/bash

virsh start "RDPWindows"

  1. save as XYZ.sh
  2. right-click on the file, properties -> permissions -> tick "is executable"
  3. right-click again on the file, pin to task-manager (in KDE)
  4. Open "Virtual machine manager"
  5. open the machine, press on Info
    image
  6. Untick "boot when host starts"
    image
  7. Done!

Now, everytime you want to use Word or Excel, you have to start XYZ.sh first (which boots the machine).

Regards
Crieo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant