11 mar 2010 @ 11:17 PM 

VMware Server 2, la soluzione di virtualizzazione gratuita di VMware, è usata soprattutto per ambienti di test o per piccole installazioni, ma rimane il fatto che è plausibile voler effettuare anche i backup delle macchine virtuali che girano su questo server.
Senza avvalerci delle finezze di business continuity offerte da vSphere, possiamo fare il backup di tali vms spegnendole, salvando il contenuto via rete tramite Robocopy e riattivando poi le vms, tutto questo tramite uno script che interagisca con l’sdk di VMware Server 2.
Ecco un semplice fa funzionale esempio

REM === Stop Virtual Machine ====

“c:\Program Files\VMWare\VMware Server\vmrun” -T server -h https://VMServer1.local:8333/sdk -u administrator -p password stop “[standard] VM1/vm1.vmx” soft

REM ==== Copy Virtual Machine to Backup drive ===

net use r: \\BackupServer\BACKUP\VirtualMachines\VM1 /user:domain.local\administrator password
robocopy “C:\Virtual Machines\VM1″ r: /mir /w:0 /r:0
net use r: /del

REM === Start Virtual Machine ====
“c:\Program Files\VMWare\VMware Server\vmrun” -T server -h https://VMServer1.local:8333/sdk -u administrator -p password start “[standard] VM1/vm1.vmx”

Questo script può essere eseguito tramite le operazioni pianificate, quanto basta per salvaguardare le nostre vms di test!

Posted By: marco
Last Edit: 11 mar 2010 @ 11:17 PM

EmailPermalinkComments (0)
Tags
Tags: ,
Categories: VMware

 Last 50 Posts
 Back
Change Theme...
  • Users » 687
  • Posts/Pages » 377
  • Comments » 83
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Chi Sono?



    No Child Pages.

Consulenze



    No Child Pages.

Note Legali



    No Child Pages.

CV



    No Child Pages.