Quand on fait des tests OSD avec des VM HyperV, si on veut lancer un test en se servant d'un iso à la place du boot PXE.
Parfois des infos restent en cache et on a des faux positifs ou des faux négatif.
Et ça fausse les résultats car les VM ne se réinitialisent pas ou pas complètement.
When doing OSD tests with HyperV VMs, if we want to run a test using an iso instead of the PXE boot.
Sometimes information remains in cache and we have false positives or false negatives.
And it skew the results because the VMs do not reset or not completely.
Voici un bout de code powershell (admin) pour corriger ça, à lancer avant chaque nouveau test:
Here is a powershell block (admin) to correct this, to run before each new test:
HyperV PS1 Script Block:
$VhdsPath = "<Path to folder where a store the VHDX files>"
$VHdSize = "<Dynamic Size VHDX files>"
if(! $VHdSize){$VHdSize = 127GB}
$isopath = "<Path to iso file>"
$vm = "<Name of the VM or part of Name of the VM>"
Ceci est ma KB perso. Elle n'a pas but de formation. Je l'alimente au fil de mes pérégrinations. Si elle vous aide tant mieux, sinon rien ne vous empêche de m'interroger ;).
/
This is My Personal Knowledge Base. it is not trained. I nourish it in the course of my peregrinations. If it helps you so much better, if nothing prevents you from questioning me;). But I can not train U, i do not have the time to.
Enjoy!
Commenter cet article