Fmstrat / Fmstrat/winapps

Only start VM when needed (KDE Plasma)

Open
#359 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
10.3k
Forks
452
PR merge metrics
No merged PRs in 30d

Description

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"

3. save as XYZ.sh
4. right-click on the file, properties -> permissions -> tick "is executable"
5. right-click again on the file, pin to task-manager (in KDE)
6. Open "Virtual machine manager"
7. open the machine, press on Info
![image](https://github.com/Fmstrat/winapps/assets/87331490/5280c554-d757-4c06-a0eb-851464ad585f)
8. Untick "boot when host starts"
![image](https://github.com/Fmstrat/winapps/assets/87331490/8ae977cb-c845-4687-b8f8-889a4d3a7f80)
9. Done!

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

Regards
Crieo

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the issue's Bash script using virsh start "RDPWindows" and the KDE Plasma autostart steps. Determine whether on-demand VM startup belongs in winapps and what behavior should trigger it. Done means the VM is not started at host boot but is available when Word or Excel is launched.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.