jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4k stars 406 forks source link

pass arguments to copyFilesToVm #345

Open hamedprog opened 6 months ago

hamedprog commented 6 months ago

How can we pass arguments to copyFilesToVm? I want to automate the process of creating VMs with Python (E.g. creating 20 VMs by running Python script) but I can't pass arguments to copyFilesToVm. it's not hard to add this feature to the copyFilesToVm.

sonjamichelle commented 2 months ago

I was thinking, well, sort of, along the same lines. Just finding this app and doing a few test installs, I found that if you potentially had a big bad gaming rig with a couple of 24GB RTX 4090s, big late-gen i9, lots of system RAM, you could theoretically host quite a few game-capable VMs. The downside: unless I missed a step somewhere, each time you run the script, you have to set each VM up INDIVIDUALLY. EVERY OS, EVERY APP, etc., etc. If you're setting up 10, or as the OP mentioned, 20 VMs, that can be a mountain of a task. Of course, if you have a simple OS, one or two games, maybe a small mountain. But if you have LOTS of drive space to spare and room to grow your VMs, then you're looking at a Mt. Everest-sized mountain.

Possible solutions:

1.Have a script that builds a base VM image from the downloaded ISO that is then used to create future VMs. Of course, ways to inject Games/Apps would need to be figured out. This would be good for unattended installs.

Or

  1. Run the script; it asks if this is a new install or a deployment install. If it is a new install, it runs as it does now. You then create your VM, install all of your updates, apps, games, tweaks, etc. Then, the next time you run the script, you can choose Deploy, and then it will ask you for the name of the VM to be cloned and the child VM's name.

Just ideas coming from experience deploying desktops and servers in enterprise settings over the past 30 years.

I guess you could say, ramblings of a Mad Hatter.