1
0
My question may seem odd but I would like to know if it's possible to install a software without booting on the operating system of a virtual machine. I need to install a lot (I really mean A LOT) of different software configurations on different Windows virtual machines, and I was trying to find a way to automate this process, and to do it without starting the VMs, because my hardware ressources are not unlimited. I took at look at the installation process of some software, and most of them only seem to copy files at determined locations and modify the registry through adding keys and values.
So here is my theory, the one I would like you to approve/destroy, why not simply install a software on a "specimen" virtual machine, trace this installation using Install-Tracker for instance, log the changes in the registry with RegShot, and then through some scripting, apply the exact same changes using tools like libguestfs and hivex on a target VMDK/VDI. Here is the sequence I was thinking about :
[On the specimen VM]
- Snapshot the registry
- Install the software
- Snapshot the registry
- Get the install trace to a script that would copy all the files that have been deployed during the installation into a package
[On any system with which libguestfs is compatible (mostly UNIX)]
- Copy all the files present in the package at the right place on the target VMDK/VDI using libguestfs and the install trace you obtained previously (involves scripting)
- Apply the changes to the registry according to the snapshots (involves scripting)
- Enjoy
Before starting, I would like to know if I am dreaming or if this theory may work. Really, that would save me up lots of time, but I'm not experienced enough on Windows OS to know if an installation can actually be "faked" that way. Or maybe you know a tool which already provides these features ?
Are you going to have multiple VMs with the same setup? There are tools where you configure a Windows image to deploy the linux solution can be done with setup scripts. Both require the VMs to be powered of course. – Ramhound – 2013-09-26T17:11:30.230
No, each configuration will be unique. And I really need my VMs to be powered off (I'm talking about more than 500VMs here). So if I could bundle the installation of all the software I need and be able to install them directly on the VMDK, that would be great. Of course it would suggest I have to install all the software at least once on the specimen machine to know what's going on during the installation – None – 2013-09-26T17:22:26.287
This doesn't answer your specific question, but I would recommend you look into application virtualization. Bundle your apps into packages and run them whenever you want, without dirtying up the OS by installing them. Something like Cameyo (free) or Microsoft App-V (not so free). – Patrick Seymour – 2013-09-29T14:05:46.170