starpos / vmbkp Goto Github PK
View Code? Open in Web Editor NEWAn Online Backup Tool for VMware vSphere (OBSOLETE)
License: Other
An Online Backup Tool for VMware vSphere (OBSOLETE)
License: Other
Thank you for your sharing of the vmbkp repo on github.
I have encountered some problems when I try to use vmdkbkp, can you give me some help, I will very appreciate that.
1. Can you give me a full command example if I want to full backup a vm in esxi ?
2. That is the output when i use the command about vmdkbap, may be i use this command in the wrong way, but i can not understand the output info, can you give me a hint ?
3. I google some info about backup vm using vddk, but the info which is seemly useful i can found are all in around 2011, are people are not interest in about backup VMware vm, or I fund the info using the wrong key word, I have no idea .
Environment: Ubuntu 12.04 x64, ESX 5.5
Command: vmbkp backup hecatomb --nbd
Trying to take a backup of a plain vanilla VM running Windows 7 using a locally created vmdk. Below is the log entry when I try to run the above command. Can you please take a look and see if there is anything obvious going wrong here, or if you need more information?
Thanks,
Vmbkp start.
04/21/14 14:00:35.120 [INFO, 1, com.cybozu.vmbkp.control.VmbkpCommandLine, getConfigPath] Use default config file vmbkp_global.conf.
04/21/14 14:00:35.369 [INFO, 1, com.cybozu.vmbkp.control.VmbkpCommandLine, getConfigPath] Use default config file vmbkp_group.conf.
04/21/14 14:00:35.384 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, getAllTargetVmMorefList] Targets(moref): 8
04/21/14 14:00:35.385 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, setTargets] Targets(vmName): hecatomb
04/21/14 14:00:35.385 [INFO, 1, com.cybozu.vmbkp.soap.Connection, connect] connecting to https://10.0.68.235/sdk...
04/21/14 14:00:35.656 [INFO, 1, com.cybozu.vmbkp.soap.Connection, connect] connected
04/21/14 14:00:35.757 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] backupVm() start.
04/21/14 14:00:35.762 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] Backup "hecatomb" (8) start.
04/21/14 14:00:35.763 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] BackupInfo: [isNoVmdk false][isDryRun false][isGzip false][isSan false][mode unknown]
04/21/14 14:00:37.817 [INFO, 1, com.cybozu.vmbkp.soap.VirtualMachineManager, snapshotTaskDetail] Snapshot was created successfully.
04/21/14 14:00:37.818 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] create snapshot name VMBKP_2014-04-21_14:00:35 succeeded.
04/21/14 14:00:37.890 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] snapshot: VMBKP_2014-04-21_14:00:35
04/21/14 14:00:37.891 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] There are 1 disks.
04/21/14 14:00:37.891 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] VmdkInfo: name:[test] hecatomb/hecatomb.vmdk, uuid:6000C296-6b8e-36ce-7aac-b0044821e595, changeId:null, key:2000, ckey:1000, capacityInKB:62914560, type:lsilogicsas, busNumber: 0, unitNumber: 0, diskMode: persistent
04/21/14 14:00:37.908 [INFO, 1, com.cybozu.vmbkp.profile.ProfileGeneration, initializeGeneration] initializeGeneration() begin.
04/21/14 14:00:37.913 [INFO, 1, com.cybozu.vmbkp.profile.ProfileGeneration, initializeGeneration] initializeGeneration() end.
04/21/14 14:00:38.038 [INFO, 1, com.cybozu.vmbkp.util.VmbkpOvf, deleteDiskDevicesInHardwareSection] Deleted disk info from the ovf file.
04/21/14 14:00:38.040 [INFO, 1, com.cybozu.vmbkp.util.VmbkpOvf, deleteMountedCdromInfoInHardwareSection] Deleted mounted CD-ROM info from the ovf file.
04/21/14 14:00:38.060 [INFO, 1, com.cybozu.vmbkp.control.VmArchiveManager, canExecDiffBackup] diskId: 0
04/21/14 14:00:38.061 [WARNING, 1, com.cybozu.vmbkp.control.VmArchiveManager, canExecDiffBackup] prevGen is null.
04/21/14 14:00:38.062 [INFO, 1, com.cybozu.vmbkp.control.VmArchiveManager, canExecDiffBackup] diskId: 0
04/21/14 14:00:38.062 [WARNING, 1, com.cybozu.vmbkp.control.VmArchiveManager, canExecDiffBackup] prevGen is null.
04/21/14 14:00:38.063 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVmdk] Available modes: full. Used mode: full.
04/21/14 14:00:38.063 [INFO, 1, com.cybozu.vmbkp.soap.Connection, disconnect] disconnecting...
04/21/14 14:00:38.068 [INFO, 1, com.cybozu.vmbkp.soap.Connection, disconnect] disconnected
04/21/14 14:00:38.068 [INFO, 1, com.cybozu.vmbkp.control.VmdkBkp, doDump] mode is full.
04/21/14 14:00:38.070 [INFO, 1, com.cybozu.vmbkp.control.VmdkBkp, doDump] exec: //vix/bin/vmdkbkp dump --mode full --server [server ip] --username root --password [pw] --vm 8 --snapshot 8-snapshot-21 --remote "[test] hecatomb/hecatomb.vmdk" --dumpout 0.dump --digestout 0.digest
04/21/14 14:00:38.071 [INFO, 13, com.cybozu.vmbkp.control.PrintStreamThread, run] PrintStreamThread start.
04/21/14 14:00:38.071 [INFO, 14, com.cybozu.vmbkp.control.PrintStreamThread, run] PrintStreamThread start.
04/21/14 14:00:39.096 [INFO, 14, com.cybozu.vmbkp.control.PrintStreamThread, run] PrintStreamThread end.
04/21/14 14:00:39.096 [INFO, 13, com.cybozu.vmbkp.control.PrintStreamThread, run] PrintStreamThread end.
04/21/14 14:00:39.097 [INFO, 1, com.cybozu.vmbkp.control.VmdkBkp, execCommand] exitvalue: 255
04/21/14 14:00:39.098 [INFO, 1, com.cybozu.vmbkp.control.VmdkBkp, doDump] doDump failed
04/21/14 14:00:39.102 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] Dump vmdk 6000C296-6b8e-36ce-7aac-b0044821e595 failed.
04/21/14 14:00:39.103 [INFO, 1, com.cybozu.vmbkp.soap.Connection, connect] connecting to https://10.0.68.235/sdk...
04/21/14 14:00:39.186 [INFO, 1, com.cybozu.vmbkp.soap.Connection, connect] connected
04/21/14 14:00:39.259 [INFO, 1, com.cybozu.vmbkp.profile.ProfileVm, setTimestampMs] delete from [index "timestamp_ms-generation"] 1398103235763
04/21/14 14:00:39.260 [WARNING, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] Backup finalization failed.
04/21/14 14:00:42.329 [INFO, 1, com.cybozu.vmbkp.soap.VirtualMachineManager, snapshotTaskDetail] Snapshot was deleted successfully.
04/21/14 14:00:42.329 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] Delete snapshot VMBKP_2014-04-21_14:00:35 succeeded.
04/21/14 14:00:42.329 [INFO, 1, com.cybozu.vmbkp.control.VmbkpMain, backupVm] backupVm() end.
04/21/14 14:00:42.330 [INFO, 1, com.cybozu.vmbkp.soap.Connection, disconnect] disconnecting...
04/21/14 14:00:42.335 [INFO, 1, com.cybozu.vmbkp.soap.Connection, disconnect] disconnected
There's a problem when I try to restore a Vmachine.
vmbkp restore --name ChromeOS --host 172.17.2.62 --datastore "ced62:storage1" vm-845
This is the log output:
Vmbkp start.
08/31/11 14:52:14.555 [INFO, 10, com.cybozu.vmbkp.control.VmbkpCommandLine, getConfigPath] Use default config file vmbkp_global.conf.
08/31/11 14:52:15.392 [INFO, 10, com.cybozu.vmbkp.control.VmbkpCommandLine, getConfigPath] Use default config file vmbkp_group.conf.
08/31/11 14:52:15.408 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, getAllTargetVmMorefList] Targets(moref): vm-805
08/31/11 14:52:15.409 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, setTargets] Targets(vmName): QSrdp
08/31/11 14:52:15.427 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, restoreVm] restoreVm() start.
08/31/11 14:52:15.427 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, restoreVm] Restore target: "QSrdp" (vm-805).
08/31/11 14:52:15.428 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, restoreVm] RestoreInfo: [newVmName QS][generation 0][host 172.17.2.62][datastore ced62:storage1][isNoVmdk false][isDryRun false][isSan false]
08/31/11 14:52:15.459 [INFO, 10, com.cybozu.vmbkp.control.VmbkpMain, restoreVm] -----VirtualControllerManager-----
type: buslogic, ckey: 1000, busNumber: 0
08/31/11 14:52:15.460 [INFO, 10, com.cybozu.vmbkp.soap.Connection, connect] connecting to https://172.17.2.59/sdk...
08/31/11 14:52:15.786 [INFO, 10, com.cybozu.vmbkp.soap.Connection, connect] connected
08/31/11 14:52:16.432 [WARNING, 10, com.cybozu.vmbkp.soap.GlobalManager, importOvf] importVapp failed.
08/31/11 14:52:16.433 [WARNING, 10, com.cybozu.vmbkp.control.VmbkpMain, logException] restoreVm of vm-805 failed.
com.vmware.vim25.InvalidRequest
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.vmware.vim25.ws.XmlGen.fromXml(XmlGen.java:201)
at com.vmware.vim25.ws.XmlGen.parseSoapFault(XmlGen.java:80)
at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:132)
at com.vmware.vim25.ws.VimStub.importVApp(VimStub.java:1346)
at com.vmware.vim25.mo.ResourcePool.importVApp(ResourcePool.java:102)
at com.cybozu.vmbkp.soap.GlobalManager.importOvf(GlobalManager.java:233)
at com.cybozu.vmbkp.control.VmbkpMain.restoreVm(VmbkpMain.java:1212)
at com.cybozu.vmbkp.control.VmbkpMain.doRestore(VmbkpMain.java:401)
at com.cybozu.vmbkp.control.VmbkpMain.dispatch(VmbkpMain.java:249)
at com.cybozu.vmbkp.control.VmbkpMain.main(VmbkpMain.java:115)
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.