Simpler way:
Install the NetBackup linux client agent on to the ESX and then from the Backup Server, choose to backup the VMDKs you need onto the tape.
Alternatively:
If you are using Classical ESX version <= 4.1 you can use vcbMounter command on the COS directly.This can be used for both powered on and powered off mode- fullvm backup or you can use vcbSnapAll. This cannot copy data directly to tape and you should use a backup software to do that.
See the below help:
--------
[root@LG-ESX ~]# vcbMounter
[2011-03-18 09:02:09.077 F4F47B60 info 'App'] Current working directory: /root
[2011-03-18 09:02:09.152 F4F47B60 error 'vcbMounter'] Error: Missing command lin e option
VMware Consolidated Backup -- Virtual Machine Mount Utility
Version 4.0.0 (build-164009)
Copyright (C) 1998-2009 VMware, Inc. All rights reserved.
Usage:
vcbMounter -h <url> -u <username> [-p <password>] <operation> [<verbosity>] [<mo de>]
<url> := <hostname>[":"<port>]
<operation> := <mount_op> | <file_umount_op> | <auto_umount_op>
<verbosity> := -L (0-6)
<mode> := -m "cos"|"nbd"|"nbdssl"
<mount_op> := -a <VM> <mountPoint> [<flavor>][<datastores>]
<file_umount_op> := -d <VM> <SnapId> <mountPoint>
<auto_umount_op> := -U <mountpoint_dir>
<VM> := <moref>|<uuid>|<ipaddr>|<...> [-c <cacheFile>]
(See VM Backup guide for complete list of search
criteria.)
<mountPoint> := -r <dir>
<flavor> := -t "fullvm" [<export-flags>]
<datastores> := -C <datastore_catalog_file>
<SnapId> := -n <ssid:"Sdk-MoRef">|<ssname:"SnapshotName">
<export-flags> := -M (0|1) -F (0|1)
If no password is specified on the command line, you will be prompted for one.
Export Flags:
-M: If set, the disk is exported into a single (monolithic) file.
When turned off (default), the disk is split into multiple 2GB files.
-F: If set, the disk is exported as "flat" disk, with no optimizations.
When turned off (default), the exported disk files will be more compact as
unused space in the disk image is not included in the exported file.
Examples:
+) Do a full VM style backup of vm "foo.bar.com" across the SAN,
talk to ESX/VC host "wisdom.bar.com" as user "vc" with
password "foobar". - Export will go to "d:\backups":
vcbMounter -h wisdom.bar.com -u vc -p foobar -a ipaddr:foo.bar.com \
-r d:\backups\foo-fullVM -t fullvm
Full VM backups export an entire virtual machine into a set of
files within a directory. Backing up this file set allows for the
entire virtual machine to be restored later on.
+) Do an automatic unmount of the export just created:
vcbMounter -h wisdom.bar.com -u vc -p foobar \
-U d:\backups\foo-fullVM
An automatic unmount will work for both file-level and full VM mounts.
(A full VM unmount operation just has to delete the exported files.)
Hope this helps.
Regards
LG