VMware Cloud Community
pranags
Contributor
Contributor

vcbMounter and config.js

Hi I am trying to use vcbMounter from Windows VCB host to take snapshot of the VM.

I have mentioned the BACKUP_ROOT , HOST, USERNAME and PASSWORD in config.js

I am giving rest of the parameters like ip addr of VM, fullvm backup etc as options to vcbMounter.

When I run the vcbMounter, it says \[2007-07-03 07:11:51.828 'vcbMounter' 4008 error] Error: Missing command line option and shows the usage options.

Is it not supposed to pick up other options from config.js ?

When I specify all the options (BACKUP_ROOT , HOST, USERNAME and PASSWORD ) to vcbMounter directly, it works fine.

Please help.

Thanks,

Prasad

0 Kudos
10 Replies
dconvery
Champion
Champion

post the command you are using. This may assist someone in helping you figure out the issue.

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
Texiwill
Leadership
Leadership

Hello,

config.js is only useful if you are also using the other scripting files for performing backups. Calling vcbMounter direct from the command line will not read the config.js file.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
Josh_Leahy
Enthusiast
Enthusiast

How does one configure the config.js file to use a domain account instead of a local account.....specifically what is the syntax?

nevermind I had a typo....oops.

Message was edited by:

Josh.Leahy

0 Kudos
dconvery
Champion
Champion

make sure the syntax is ;DOMAIN
USER";

You need a double backslash in the config.js

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
Josh_Leahy
Enthusiast
Enthusiast

Thanks!

0 Kudos
dconvery
Champion
Champion

Sorry - I fat-fingered...The first charachter is a "

"DOMAIN
USER";

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
dougm
Contributor
Contributor

So do you replace USERNAME= with "Domain User" in the config.js?

OR, do you leave the field (USERNAME=) and fill it in with "domain\user";

Thanks

0 Kudos
robc_yk
Enthusiast
Enthusiast

I too am looking to use a domain user account in the config.js and in the vmware_passwd files. Have you made any headway on this?

Could someone enlighten us?

0 Kudos
dougm
Contributor
Contributor

This is the syntax I used in the config.js file located in "C:\Program Files\VMware\VMware Consolidated Backup Framework\config"

USERNAME="domain
username";

PASSWORD="password";

Make sure that the domain accout you use above is added to the VMware Consolidated Backup User role in Virtual Center.

Keep in mind that for security reasons, the domain user needs to be locked down so it has very limited user rights on the VC server AND the domain. The recommendation is to create a local user on the VC server and use that account for the VCB User role.

I hope this helps.

0 Kudos
dougm
Contributor
Contributor

I noticed that the two backslashes "
" get removed when posting the message. There needs to be two backslashed between domain and username

0 Kudos