VMware Communities > VMTN > VMware Server > VMware Server 1 > Discussions
1 ... 20 21 22 23 24 Previous Next
Reply Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:53 AM
in response to: steventay
Click to view SirShagg's profile Enthusiast SirShagg 79 posts since
Nov 20, 2006
i use the ver 3.6 script and do not seem to run.

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

Seriously, read the comments in the code and look at the default vm-backup.ini file that comes with it. Theres example in there.

Reply Re: Advanced VB script for backup of VMs on Windows hosts Aug 29, 2007 8:22 PM
in response to: devzero
Click to view steventay's profile Enthusiast steventay 43 posts since
Jun 29, 2006
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
in response to: steventay
Click to view steventay's profile Enthusiast steventay 43 posts since
Jun 29, 2006
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
in response to: steventay
Click to view Addammer's profile Novice Addammer 24 posts since
Sep 12, 2007
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
in response to: Addammer
Click to view saxa's profile Master saxa 1,334 posts since
Jun 2, 2006
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...
Reply Re: Advanced VB script for backup of VMs on Windows hosts Oct 26, 2007 11:43 PM
Click to view zgn667's profile Novice zgn667 16 posts since
Oct 26, 2007
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
in response to: zgn667
Click to view spex's profile Expert spex 280 posts since
Jun 17, 2006
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
in response to: spex
Click to view sitit's profile Lurker sitit 1 posts since
Jan 17, 2008

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
in response to: sitit
Click to view klbrewster's profile Lurker klbrewster 5 posts since
Feb 12, 2008
I've been using this script, but i'm having trouble with a new VM I created that has two drives. It is backing up vmdk of the Windows drive, but not the data drive vmdk. Any ideas?
Reply Re: Advanced VB script for backup of VMs on Windows hosts Feb 12, 2008 9:09 AM
in response to: klbrewster
Click to view steventay's profile Enthusiast steventay 43 posts since
Jun 29, 2006

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 Feb 26, 2008 6:40 AM
Click to view Gigaguy's profile Novice Gigaguy 17 posts since
Dec 2, 2007
saxa,

I am having an issue with cleanup in your script. If I use the 7Zip switch -v4g, when the script goes to delete old backup files, it deletes all of the "parts" of the split zip.

For example:
Win2k3.zip.001
Win2k3.zip.002
Win2k3.zip.003
Win2k3.zip.004

If I have set Keep Backups to 1, then all but Win2k3.zip.001 is deleted.

Any ideas on how to fix that in the script?

Thanks.
Reply Re: Advanced VB script for backup of VMs on Windows hosts Mar 27, 2008 2:33 PM
in response to: saxa
Click to view JamesConaway's profile Novice JamesConaway 10 posts since
Sep 12, 2006

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
in response to: JamesConaway
Click to view steventay's profile Enthusiast steventay 43 posts since
Jun 29, 2006
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
in response to: JamesConaway
Click to view Gigaguy's profile Novice Gigaguy 17 posts since
Dec 2, 2007
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
in response to: Gigaguy
Click to view JamesConaway's profile Novice JamesConaway 10 posts since
Sep 12, 2006
You made me double check that. Yes, the API's were originally installed on the problem server. Any other ideas?
1 ... 20 21 22 23 24 Previous Next
Actions