|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:53 AM
Reply
330.
Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:53 AM
i use the ver 3.6 script and do not seem to run.
Seriously, read the comments in the code and look at the default vm-backup.ini file that comes with it. Theres example in there.
what should i have in the .ini file... any example for below directory = d:\virtual machine\winnt backup folder = d:\backup keep 3 copy 7zip enable |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:22 PM
Reply
331.
Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:22 PM
after either using the modified hal.dll or ppntapm.sys
if select Shut Down from NT4, the compueter will power down the computer. if using the backup script.. it still prompt "it is now safe to turn off your computer" solution 2 First, extract the file ppntapm.sys from the latest service pack (6a) by executing "sp6i386.exe /X". This will extract all files to a directory of your choice. Then copy ppntapm.sys to your %systemroot%\system32\drivers directory. Next, make a reg file with the following content, and name it ppntapm.reg: <pre>REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ppntapm] "Group"="Power Management" "Start"=dword:00000000 "Error Control"=dword:00000001 "Tag"=dword:000000a1 "Type"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ppntapm\Parameters] "UseDefaultSegmentLimits"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "PowerdownAfterShutdown"="1"</pre> That's it. Now your compueter will power down the computer when you select Shut Down from NT4. |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Aug 31, 2007 1:00 AM
Reply
332.
Re: Advanced VB script for backup of VMs on Windows hosts Aug 31, 2007 1:00 AM
i have use a shutdown program to shutdown the server within the guest.
the vmware-cmd guest stop does not able to power off NT 4 Server. so after the guest is shutdown. i look thru the script and still not able to run... when run it say error "this is not a valid ini file" VM-Backup.ini [BAAN] DefaultBackupPath=d:\backups\ VMFile=D:\Virtual Machines\BAAN\BAAN.vmx CleanUpBackupFiles=TRUE NumberBackupsToKeep=2 MinFileSize=1 ReportToMail=xxxxx@xxxx.com MyMailDomain=xxxx.com SMTPServer=xxx.com SMTPPort=25 DefaultMailSubject=VMWAre backup [INTERACTIVE] can someone help. thank you. |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Oct 8, 2007 10:38 AM
Reply
333.
Re: Advanced VB script for backup of VMs on Windows hosts Oct 8, 2007 10:38 AM
I'm not sure if this has already been addressed, i apologize if it has, but I'm running servers and I can't afford the "downtime". Is there a way to "suspend" or "pause" the VM's?
It doesn't seem like our best bet to be restarting these servers every night. |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Oct 10, 2007 9:06 AM
Reply
334.
Re: Advanced VB script for backup of VMs on Windows hosts Oct 10, 2007 9:06 AM
I'm running servers and I can't afford the "downtime".
Here on the Server forum, we all run servers Well, there is a way to suspend your VMs to backup them. But, the time difference between "suspend" and "shutdown" is in equal the time which the guest OS needs to be correctly shut down (one minute) and to start (also one minute). Think about it: shut down means downtime. Suspend means downtime, too. Is there a way to "suspend" or "pause" the VM's?
Sure. But I would really suggest you: never suspend any production machine if you want to keep your correct data. Let me describe, why. Do you know something like suspending in the real server world? No? Me too. And your servers don't know this as well. Now, imagine, your server software works with transactions. Nowadays, it does every server OS and every server application, such as MSSQL, Exchange, Oracle, MySQL... Let's say, we run some DB on a (real) server, which computes a bigger transaction right now. And it looses the power. What will the DB software do after you brought the server back? It will see the not committed transaction and will roll back it. So, the data is consistent. And now let's play this game on a virtualized server. It accomplishes our transaction, and in the middle of it, our backup script / software / user suspends the machine. After restoring, the DB software will think: "Hey, I had a crash, but my transaction runs further. No way!" and will produce a rollback. And it means, your transaction is either deleted without logging (best case) or is executed until the suspending. I have also seen that the same transaction was accomplished twice... |
|
Check out my adaptation of this script, which minimizes downtime to ~1min! http://communities.vmware.com/thread/109563
|
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Oct 26, 2007 11:44 PM
Reply
336.
Re: Advanced VB script for backup of VMs on Windows hosts Oct 26, 2007 11:44 PM
Guten Tag,
ich bin am 5.11.2007 wieder im Haus. Bei wichtigen Problemen wenden Sie sich bitte an Herrn Herbert Bachmann oder Herrn Dr. Matthias Weger. Ihre E-Mail wurde nicht weitergeleitet Danke Stefan Holzwarth |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Jan 17, 2008 11:59 AM
Reply
337.
Re: Advanced VB script for backup of VMs on Windows hosts Jan 17, 2008 11:59 AM
Just wanted to say thanks a lot for this very cool script. Is doing what I need, easy to understand due to good comments in the vbs, even me is able to undnerstand what is happening where and what to change to fit personal environement, and most important : worked at first run. Great work :-)) |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Feb 12, 2008 8:40 AM
|
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Feb 12, 2008 9:09 AM
Reply
339.
Re: Advanced VB script for backup of VMs on Windows hosts Feb 12, 2008 9:09 AM
too bad the script does not work in Win NT 4 vmware guest. |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 2:33 PM
Reply
341.
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 2:33 PM
I need some help with this. I have been working on this on and off for two weeks. Server 1: W2K3 SP2 64bit VM Server 1.0.4 Server 2: W2K3 SP2 64bit VM Server 1.0.5 I am successfully using this script on Server 1, No problems works Great! I copy the exact same script, executing the exact same way on Server 2, but I continue to get the VCOM API error message below. I have played with editing the script and changing directories, everything I can think of, but it just will not run on Server 2. Running this in batch file: C:\WINDOWS\SysWOW64\wscript.exe d:\backup\VM-Backup.vbs vm1 C:\WINDOWS\SysWOW64\wscript.exe d:\backup\VM-Backup.vbs vm2 VCOMErrorMessageLines = 2 VCOMErrorMessage1 = "It appears that there are problems with the VCOM API.__" VCOMErrorMessage2 = "Either it's not installed, you are running on a 64bit system, or something else is wrong with it." Please help! |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 5:31 PM
Reply
342.
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 5:31 PM
Hi,
Woh at least you are able to use it on W2K3 SP2 32bit VM Server 1.0.4. My host is W2K3 SP2 32bit VM Server 1.0.4. For me i still cannot get it to work. Maybe bcos my VMWare guest is Windows NT 4 SP6 and it is not support. |
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 6:10 PM
Reply
343.
Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 6:10 PM
Did you actually install the API's during the initial install of VMServer? I know it works on 1.0.5, because that what I am using.
|
|
Reply
Re: Advanced VB script for backup of VMs on Windows hosts Apr 1, 2008 7:34 AM
|