You are not logged in.
Pages: 1
Yes, I've done it once before following VMWare's Knowledge Article
That is probably true. But I'm not sure if that helps you adopt users – since it's a little bit messy/risky to rename VMs, and they potentially would look on other solutions (on the other hand those users are probably free users like me).
Anyhow this is for a ESXi "homelab", so it's more a hobby than anything. And when I created the VMs a few years ago, I did not think about it that way. I would probably not use that sort of naming today.
To be honest, I expected that ESXi would sanitize the name in the backend of things, and let me use the name that I want in the frontend. At least in my use case it's felt pretty handy to be able to name it with "hostname (OS)" in the ESXi interface.
Anyways, I appreciate the work you guys do.
Thanks.
It did work on an earlier version (on ESXi 5.5) with the same VM names, and I saw a post about spacing earlier on this new version, so I was hoping it had a workaround.
You probably know this better than me, isn't it possible to "sanitize" inputs? So special chars can live within strings without breaking anything?
./xsibackup: line 1: arithmetic syntax error
When running:
./xsibackup --backup-prog=Vmkfstools --backup-point="/vmfs/volumes/XXX" --backup-type=auto --backup-how=Hot --backup-room=200 --mail-from="esxi@domain.com" --mail-to="user@domain.com" --smtp-srv=smtp.gmail.com --smtp-port=465 --smtp-sec=TLS --smtp-usr=esxi@domain.com --smtp-pwd=XXX --test-mode=true
###############################################################################
#
# (c) XSIBACKUP-FREE 11.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com
#
###################################################################################
NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NOTICE: (c) XSIBackup-Pro 11.2.3 is available to download
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID: 220580 esxi
Mon, 11 Mar 2019 12:15:32 +0000 IPv4: 192.168.XXX.XXX/255.255.255.0
VMware ESXi 6.5.0 build-8294253 (c) Rsync 3.1.0 as opt. dependency
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup Id: unknown Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alert: crontab is not installed for user root
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup user is: root
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup program is: vmkfstools
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--backup-point found at /vmfs/volumes/01848b5c-d57c247a/ESXi/ESXi-Backup (filesystem: )
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The backup room has been limited to 200 gb.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Getting list of all VMs...
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 napp-it (OmniOS) [OS1] napp-it-14b/napp-it-14b.vmx solaris11_64Guest vmx-08
3 server (Ubuntu LTS) [OS2] server (Ubuntu LTS)/server (Ubuntu LTS).vmx ubuntu64Guest vmx-10
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 napp-it (OmniOS) [OS1] napp-it-14b/napp-it-14b.vmx solaris11_64Guest vmx-08
3 server (Ubuntu LTS) [OS2] server (Ubuntu LTS)/server (Ubuntu LTS).vmx ubuntu64Guest vmx-10
Error: skipping, not able to retrieve VM information
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Needed room: 43 Gb.
Sparse size: 43 Gb.
Available room: 200 Gb.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[napp-it (OmniOS)] Starting backup (size is 40960M on 40960M file)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup will backup your VMs while they are running and will quiesce guest services too, so that users
can continue to use the VM while the backup is taking place. You can also run cold and warm --backup-how
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hot backup selected for VM: [napp-it (OmniOS)], will not be switched off
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[napp-it (OmniOS)] info: boot partition is MBR
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test mode activated VMs will not be cloned, please remove --test-mode=true to allow backups
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
./xsibackup: line 1: arithmetic syntax error
It happens regardless if I use custom backup and enter in the names of the VMs manually.
I'm pretty sure this is due to the spacing in the VM names (and/or directory), and I've been able to correct this by renaming the VMs on another install.
I wonder if there is a way to bypass this behavior, and keep the spacing? It's a rather tedious process to rename VMs, so I would rather not if I don't have to.
Thanks.
It's a custom dell ESXi image, but I think this is a bug – not a feature/thingie on the Dell image. Especially since it's mentioned in the VMWare community.
Update. I had to restart the server, and it did not create "/scratch/downloads" folder (or leave the existing be) upon restart. So the backup task failed again (set up to execute every Sunday night).
At least I now know the reason, I'll try to see if I can make the folder persistent.
Thank you.
Yes that is the error, but it says some warnings were raised – but I can't seem to locate any warnings. But I guess it's a general message if there is an error?
Command outputs:
[root@hostname:~] vim-cmd hostsvc/firmware/backup_config
(vmodl.fault.SystemError) {
faultCause = (vmodl.MethodFault) null,
faultMessage = <unset>,
reason = "Internal error"
msg = "Received SOAP response fault from [<cs p:047856a8, TCP:localhost:80>]: backupConfiguration
A general system error occurred: Internal error"
}
[root@hostname:~] find /scratch/downloads -type f -name "*.tgz" -exec ls -1rt "{}" + | head -n1
find: /scratch/downloads: No such file or directory
The commands are run from default directory "/", and "/scratch/downloads" does not exist (scratch does exist, but does not have downloads dir).
Edit found this post on the VMWare forums.
Edit 2: Seems like creating the "downloads" directory and uninstalling the iscsi driver things did the trick.
Thank you!
Should have thought about that, but unfortunately, it does not give me much more to go on.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/VMs/XXX/XXX_0.vmdk'...
Clone: 100% done.
Error backing the ESXi host config to /vmfs/volumes/XXX/ESXi/VM_Backup
---------------------------------------------------------------------------------------------------------------------------------
2017-08-28T06:48:03| Errors detected in backup, check logs
---------------------------------------------------------------------------------------------------------------------------------
2017-08-28T06:48:03| Some warnings were raised
Why the error copying the config file? What warnings? All I see is errors.
Hi,
the backup is running on VMware ESXi 6.5.0 build-5969303, copying to a NFS datastore.
I'm getting this subject:
✖ XSIBACKUP errors detected in backup job!! | ESXi Backup Report
But in the e-mail it says "ok" on all VMs.
Done hot backup, using vmkfstools.
The backup room has been limited to 200 Gb.
Available room in device /vmfs/volumes/XXX/ESXi/VM_Backup before backup: 200 Gb.
Needed room in device /vmfs/volumes/XXX/ESXi/VM_Backup for backup: 81 Gb.
VM Name State Size Stop Copy Start Time (min) Speed (mb/s)
XXX (vMA) ON 1G NO (hot backup) OK - 1 16
XXX (Ubuntu BE) ON 32G NO (hot backup) OK - 20 26
XXX (Ubuntu LTS) ON 40G NO (hot backup) OK - 16 41
XXX (Ubuntu BE) ON 7G NO (hot backup) OK - 8 15
Available space in device /vmfs/volumes/XXX/ESXi/VM_Backup after backup: 200 Gb.
Complete backup elapsed time: 47 min
Any advice on this?
Pages: 1