ghettoVCB-restoration on ESXI 5.01

Dear the genius William Lam.

Merry Christmas.

I tried to restore a backup of virtual machine with 'ghettoVCB-restore '.

the back was created using the script "ghettoVCB.sh".

I had upgraded 87 of the script line:

"If [" ${ESX_VERSION} "=="5.0.0"]; then ".

TO

"If [[" ${ESX_VERSION} "=="5.0.0"]] |" [["${ESX_VERSION}" == "5.1.0"]]; then ".

After that the script 'ghettoVCB - restore' shows the following error:

"ERROR: this script must be run by \"root\ '! "

If I had removed the part of the rest of the script:

[

If [!] '' whoami' ' is 'root']; then
recorder "ERROR: this script must be run by \"root\ '! "
echo "ERROR: this script must be run by \"root\ '! "
Output 1
FI

]

the bachup restore operation was completed successfully.

But there was some errorrs, I think it is releated to the following:

the value of $VM_DISPLAY_NAME!

the log file has been corrpted

the date value (START_TIME and END_TIME)

Could you please check out the script and solve problems?

Thank you

I've updated ghettoVCB - restore.sh to solve the two problems you mentioned to support 5.1 ESXi host as well as the use of a different mechenism for checking for the root user. I was able to save/restore a virtual machine, then that give a try and I hope that you will be able to get the papers this time where you tap on certain issues.

You can download the updated version, which is still being worked on in a branch of test https://github.com/lamw/ghettoVCB/tree/merge-test and simply click on the "ZIP" up that will give you a download of all files and simply replace the script ghettoVCB - restore.sh

Happy holidays

Tags: VMware

Similar Questions

  • Free ghettoVCB.sh u3 ESXi 4.1: line 836: syntax error: bad substitution

    I can't ghettoVCB.sh to run on free ESXi v4.1.

    Copied the .sh and .conf files in/ghettoVCB-master.  When I get home. /ghettoVCB.sh I get:

    ghettoVCB.sh: line 836: syntax error: bad substitution

    If I try/bin/ash ghettoVCB.sh I get exactly the same thing.

    The execute bit is set:

    / ghettoVCB-Master # ls-l

    -rw - 1 root root 1140 15:37 README.md Nov 6

    -rwx - x - x 1 root root 17555 6 Nov 15:37 ghettoVCB - restore.sh

    -rw - 1 root root 747 6 Nov 15:43 ghettoVCB.conf

    -rwx - x - x 1 root root 64593 6 Nov 16:23 ghettoVCB.sh

    -rw - r - r - 1 root root 11 Nov 6 15:39 vms_to_backup

    I do not see a log ghettoVCB file in / tmp.

    How can I solve this please?

    In case someone else gets the same problem - I finally worked it out.  ESXi 4.1 update 3 do not have the latest version of ghettoVCB.sh.  I guess the version of bash in the console busybox is old and does not support the syntax of some of the improvements made to the script.

    I managed to get an older version of the MKSbackup script and it works fine.

  • GhettoVCB restore problem

    Hi all!

    Don't know where I can my problem public.

    I have the following problem.

    I use VMWARE ESXI 1746974 and running fine GhettoVCB 5.5.0. Script does compressed backups.

    When I try to perform recovery tests, I found problems.

    If I understand there is no possibility to restore directly from .gz. So to restore, first I extracted archives .gz with the command "tar -zxvf". Finally, after extracting I got only 2 files. test - flat hard and test.vmx, but not test.vmdk, so cannot use ghettovcb - restore.sh and cannot manually add it to the stock.

    Strange, but when I copy on the windows machine and extract it with 7-zip twice (first after extracting I have 1 file with the same name as the archive and no extention, the second time I have 3 files and test.vmdk - girl and have fully working machine).

    I know that I can copy work VM test.vmdk and just put it in the extracted folder and I have to work VM, is not good solution but my backups will be not fully functional without it.

    There may be another linux instead of tar command -zxvf, or maybe there is some other stuff that I don't know.

    Please, help me to finish my backup solution.

    -rw - root/root 54975581388800 2014-07-02 23:15:09 1CSRV-2014-07-02_23-15-01/1CSRV-flat.vmdk

    Something seems wrong here. Look at the file size indicated by the file 1CSRV - flat hard: 54975581388800 bytes are 51200 GiB. I guess 7zip shows GiB 50 in the index of archives and the original vmdk was 50GiB as well?

    It is possible that it is a bug on the binary tar of busybox ESXi. Maybe you can test with smaller tarballs and others too big, I can at least "détarer" small files without problem on my hosts.

  • How to back up and restore the ESXi settings regularly?

    People,

    Can someone please let me know how and what is the best way to save the existing running 5.1 U3 regularly ESXi servers so that when the host has failed, I can restore of plain vanilla install of the ESXi server without having to worry about reconfiguring the Distributed Switch Settings & storage?

    If the process can be automated which would be awesome as well.

    Thank you.

    If you are running Enterprise vCenter Server so your best bet is probably using Host Profiles. You can create a profile to join a whole cluster (if your hosts are cookie-cutter) or create one for each host (if they are quite unique). You can export the profiles from the host to the files somewhere else for backup if you are afraid of losing the vCenter.

    These allow you to build a new host from scratch, attach to vCenter and configure everything (up to the vDS, domain join, politics of security/firewall, etc.). Very useful feature IMO.

  • VMware vSphere Hypervisor (ESXi 5) con ghettoVCB via nfs

    Hello to all,

    Ho da poco started due Server ESXi 5 free nel quale gireranno some virtual machine. Soluzione per I just backup ho scelto con ghettoVCB a montage non oocita di una risorsa che arrived da AIX nfs server.

    He problema che sorto sono e I backup di tempi. In prima battuta I wanted does it save in terms off line (poweroff prima della clonazione) my unfortunately no ho Così tanto tempo disponibile per lasciare spente vm. Ho quindi deciso di passare alla terms snapshot Reed is questo mi obbliga ad usare the ghettoVCB - restore.sh by disco script of it ricreare (corretto vero?).

    I have tempi che ottengo sono i seguenti:

    2012-03-06 08:14:37 - info: CONFIG - VERSION = 2011_11_19_1

    2012-03-06 08:14:37 - info: CONFIG - GHETTOVCB_PID = 370838
    2012-03-06 08:14:37 - info: CONFIG - VM_BACKUP_VOLUME = / vmfs/volumes/backup/ESX01
    2012-03-06 08:14:37 - info: CONFIG - ENABLE_NON_PERSISTENT_NFS = 1
    2012-03-06 08:14:37 - info: CONFIG - UNMOUNT_NFS = 1
    2012-03-06 08:14:37 - info: CONFIG - NFS_SERVER = 10.10.10.10
    2012-03-06 08:14:37 - info: CONFIG - NFS_MOUNT = /img_vmware
    2012-03-06 08:14:37 - info: CONFIG - VM_BACKUP_ROTATION_COUNT = 1
    2012-03-06 08:14:37 - info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2012-03-06_08-14-36
    2012-03-06 08:14:37 - info: CONFIG - DISK_BACKUP_FORMAT = thin
    2012-03-06 08:14:37 - info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
    2012-03-06 08:14:37 - info: CONFIG - ENABLE_HARD_POWER_OFF = 0
    2012-03-06 08:14:37 - info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
    2012-03-06 08:14:37 - info: CONFIG - POWER_DOWN_TIMEOUT = 5
    2012-03-06 08:14:37 - info: CONFIG - SNAPSHOT_TIMEOUT = 15
    2012-03-06 08:14:37 - info: CONFIG - LOG_LEVEL = info
    2012-03-06 08:14:37 - info: CONFIG - BACKUP_LOG_OUTPUT = /opt/ghettoVCB/esx01bk.log
    2012-03-06 08:14:37 - info: CONFIG - VM_SNAPSHOT_MEMORY = 0
    2012-03-06 08:14:37 - info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
    2012-03-06 08:14:37 - info: CONFIG - VMDK_FILES_TO_BACKUP = all
    2012-03-06 08:14:37 - info: CONFIG - EMAIL_LOG = 0
    2012-03-06 08:14:37 - info:
    2012-03-06 08:14:40 - info: start the backup for SRVPROVA
    2012-03-06 08:14:40 - info: creation of snapshot "ghettoVCB-snapshot-2012-03-06" for SRVPROVA
    Destination disk format: thin provisioned VMFS
    Cloning disk ' / vmfs/volumes/datastore1/SRVPROVA / SRVPROVA hard '...
    Clone: 96% in fact.
    2012-03-06 09:39:41 - info: Instant withdrawal of SRVPROVA...
    2012-03-06 09:39:41 - info: backup duration: Minutes 85,02
    2012-03-06 09:39:41 - info: backup to SRVPROVA!

    Ho anche tried a por knew una cartella del local datastore my went fine, tra clonazione e meeting via sftp not e che miglioro di tanto.

    Come da newspaper sia it vmdk della machine virtual applications (screenshot clonazione o) of the di quello che sono in formato thin-provision! It could essere anche questo un problema?

    Some dritta avete da darmi?

    Grazie 1000

    Absent, gli 85 minuti sono tempo it cui fa tutto Ghetto it backs up, no instant sola.

    Vedi capture instant nell 'activity di vCenter o dell' ESXi, secondo e some lasted.

    Luca.

  • Help with ESXi config backup and restore

    We have ESXi 4.1 vSphere (no vCenter) and try to test a back up and restore hypervisor configuration settings before going on the do an upgrade of update 1.

    Virtual Assistant Machine using, we can successfully export a .tgz file settings of ESXi config with the following command (from a previous post on this topic):

    vicfg-cfgbackup - < Server > s - configBundle - ESXix.x.x.x.tgz

    The config file is sent to/home/vi-admin. The problem is when I try to restore the configuration file for the ESXi server. I'm vMA and connected as a vi admin. Then type vifp addserver < Server >. Then check the target server is added by typing vifp mailing lists. I check that I can run vSphere orders CLI without authentication by typing vicfg-NIC - l. So far so good. Then when I try to restore the ESXi with the configuration by using the command file, below, I get an error of "command not found".

    vicfg-cfgbackup - < Server > | configBundle - ESXix.x.x.x.tgz

    The process of creating backups and restores to an ESXi Server seem to be rather complicated and not before right for someone of my level of experience. Basically what I need to be able to do is to check there is a process to recover from a failure of ESXi to restore its original configurations. Is there an easy, dumbed-down process for this?

    Thanks in advance.

    Is that a pipe in your order? It should be l as L for load

    also since your vifp presentation you could do

    vifptarget s esxi1

    Enter the credentials

    and then fire your order less - server part where you set this with vifptarget

    "vicfg-cfgbackup - configBundle - ESXix.x.x.x.tgz l.

  • Backup of ESXi host configurations

    When you use the host profiles, what is the best way to save specific ESXi hosts?  Your host profile standardizes the host configuration, but if you need to restore your ESXi host for a reason, even after the application of the host profile must be configured to the specific IP, hostname, etc of the host.

    Assume that you have an installation of VMware enterprise with 50 + guests.  Is there a good way to automate the backup and restoration of specific configurations of different ESXi hosts?  RCLI scripts? VMware Assistant management scripts? Some 3rd party management software tools?  Your ideas / popular experiences. (In this environment Auto-déployer has been dismissed as a management option)

    Thank you

    Yep, answer files are a feature of the host profile and do not depend on deploy Auto.

    Automatic deployment takes just left this feature also.

  • ESXi built-in backup config

    What is the best way to backup / restore and ESXi embedded machine configuration?  Can I run a script that could back up every day using a scheduled task?  Is it easy to restore it?  I Infrastructure 3.5 update 4 licensed as business.

    You can use the vCLI/RCLI esxcfg-cfgbackup/vicfg - cfgbackup.pl, take a look at the example on the site of Dave: http://www.vm-help.com/esx/esx3i/esx_3i_rcli/vicfg-cfgbackup.php

    • * This can be run on either a Windows/Linux machine installed with vCLI/RCLI or using VMware VIMA and can be programmed as a task.

    • * You will be able to backup/restore using the -Save and -load params

    • * As you are with a business license, you will have access full r/w to the VI API, which is necessary for any write operation that the vCLI/RCLI is to perform.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Registrar being laid of ESXi 3.5 u

    Hola a todos, tengo UN ESXi 3.5 u en UN HP wont, y todo works perfectly, pero still not registered VMWare Infrastructure Client he el, me like 11 dias para ello, y cuando lo intento clerk, me as soon as:

    Fix the error (s):

    Number of series/License Activation Code has already been registered.

    Tiendo Qué el number me ha generated are para mi license, no entiendo porque el me dice than el código is registered, if me ha dado a Código para mi.

    Could Yes alguna por Québec explicacion Alguien me error da este.

    Gracias por adelantado a todos.

    Hola

    No creo as tenga nada that worm, pero are muy raro

    Tienes muchas maquinas corriendo encima? you have possibility to restore el ESXi? Perhaps has the hora of realize el registro is ha been pillado en algun sitio... no to donde is guarda fired her: S

    Intentare can y you digo algo

    Saludos

  • Back up the file boot on a system running system.

    Recently, my server ESXi 5.5 showed an error:

    Lost connectivity to the mpx.vmhba32:C0:T0:L0 device support the start file vmfs/devices/disks/mpx.vmhba32:C0:T0:L0 system. As a result, the host configuration changes will not be saved in persistent storage.

    To give some basic information:

    The server is an HP ProLiant ML350 G6 2 x Xeon E5504 with 72 GB of RAM. I have a P410i Raid Controller with 8 disks (RAID-5 7 with 1 spare part) and an Areca ARC-1220 with 8 disks in RAID-5. The P410i RAID-table is used for Virtual Machines, while the table on the Areca is used for the storage of the largest. I got 5.5 ESXi (downloaded an image on the official site of HP - HP-ESXi-5.5.0-Update3-iso-550.9.3.26) installed on a USB key (Sandisk Extreme USB 3.0 16 GB) places in the internal USB slot on the motherboard.

    Nobody near the server at the time that that was the problem. So, I'm sure it's not because someone bumped into the USB or something.

    Of course, I looked around to see if anyone has exactly the same problem or knows how to solve it properly. So far, I have not found something I could use. I know now that once started, ESXi is completely loaded into RAM, so I could just plug it into the USB and examine it. I inspected the USB and found no problems when I put it in my office. To be sure I saved the USB while Paragon backup and restore. After you reconnect the server continues to display the error. When I start SSH and search for devices, ""mpx.vmhba32:C0:T0:L0 "does show, but I have no idea of what I can do with it to make sure that the current running configuration gets saved back to this USB and make sure that when the server is restarted, it will load my configuration. "

    I hope someone can help or tell me what I am doing wrong.

    Thank you

    Finally, I had enough time to close all VM and try a few things.

    For those interested, it was my job steps to restore my ESXi.

    1. ESXi set in maintenance mode
    2. Download VMware vSphere PowerCLI
    3. Run as administrator
    4. Connect to ESXi (Connect-VIServer-Server 0.0.0.0 - user user - pass pass) - where 0.0.0.0 = ESXi ip, user = user name for ESXi and pass = password for this connection.
    5. Save the current running configuration (Get-VMHost 0.0.0.0 |) Get - VMHostFirmware - BackupConfiguration - DestinationPath "D:\temp\") - where 0.0.0.0 = ip of ESXi, "D:\temp\" = destination for the backup folder (don't forget this folder exists on the PC that you run from)
    6. Stop your ESXi host

    Now at this stage, it proved there was nothing wrong with my USB key, for a reason any ESXi do not use it until I rebooted the system, of course the configuration that it charge was outdated, so I restored the configuration for the backup, I just do. It could also be that your USB key (or any other boot drive) is default and you must completely reinstall ESXi. However, after a clean installation, that you can also simply restore the backup configuration. To restore the backup, I used the following steps:

    1. You start ESXi host (make sure it is installed)
    2. Connect to ESXi (Connect-VIServer-Server 0.0.0.0 - user user - pass pass) - where 0.0.0.0 = ESXi ip, user = user name for ESXi and pass = password for this connection.
    3. Restore the backup configuration (Get-VMHost 0.0.0.0 |) Set - VMHostFirmware - restore - Force - SourcePath "D:\temp\configBundle-0.0.0.0.tgz") - where 0.0.0.0 = ip of ESXi, ' D:\temp\configBundle - 0.0.0.0.tgz' = the configuration file (make sure that this file exists on the PC that you run from)
    4. Wait a few seconds, if it does not automatically restart, do it manually
    5. The configuration should now be loaded again, and the missing boot drive error should be gone.

    I hope this helps someone else who has the same problem

  • Error while starting the machine upward

    Hello

    recently, I have reinstalled my ESX server with ESXI 5.5 test. Previously, I was running ESXI 5.0. I saved all the you VM on my PC. Then I restored the ESXI storage files. I added their return to inventory (right click on VMX file/add to the inventory), but one of the machines is not started. There is an error:

    Untitled.png

    Could you please advise me how to solve the problem?

    Thank you much in advance.


    If the problem has been resolved? Are you able to turn on the virtual machine?

  • Flash and RHEL6?

    All.

    A that someone managed to connect to a device to vcenter 5.5 with a workstation RHEL6?  If Yes, what is the magical incantations and rituals strikes?

    Made the mistake of upgrading to esxi 5.5 without fully researching the benefits.  My bad.  I know better, but anyway...

    Turn on she dislikes vcenter 5.1; He wants vcenter 5.5.  VCenter 5.5 requires flash, and not only that requires a version of flash that Redhat does not support (the unit wants to flash 11.5 or higher.)  RedHat deploys only 11.2).

    Workaround apparent of VMware is at 1.  Use windows on the desktop.  or 2.  Install google chrome.  (which, btw, google chrome is more supported RHEL6, well there are solutions)

    Catch 22.  I must love him.

    Completely ignoring the phenomenal BS, I'll have to pass through to get chrome ok'ed for all the technology, when I made workarounds and installed in any case, connect to vserver:9443 gives an error that says: "cannot load shockwave flash", as well as a puzzle piece bit in the middle of the window that says "could not load plugin".  chrome: plugins says "Adobe Flash Player" 'always allowed' is checked (I checked it.)

    Any suggestions?  Or just restore the esxi 5.1 system sauvegardΘ and stay there?

    Thank you!

    OK, here's what I did.  It works for the limited testing I did.  However, I decided to give up vcenter and stick with what works, which is two separate boxes with esxi 5.5 on them.

    http://chrome.richardlloyd.org.UK

    Thanks to Mr. Lloyd to step up to the plate and solve this issue.

  • Backup gets stuck on instant withdrawal

    Hello

    We have configured successfully ghettoVCB.sh on ESXi 4.1 U1 with a NFS datastore for backup images.

    Most of the time the script runs without any problems, but sometimes it seems it gets stuck at the stage now:

    2011-03-23 16:10:03 - info: start backup for srvwin

    2011-03-23 16:10:03 - info: creation of snapshot "ghettoVCB-snapshot-2011-03-23" to srvwin

    Destination disk format: thin provisioned VMFS

    Cloning disk ' / vmfs/volumes/datastore1/srvwin/srvwin.vmdk '...

    Clone: 100% done.

    2011-03-23 17:21:41 - info: Instant withdrawal of srvwin...

    After a bit of debug, we discovered that the script remains indefinitely waiting for "-delta.vmdk" files to disappear (line #785). If the command "vmsvc/snapshot.remove" seems not to be always successful in the consolidation and/or delete files.

    To resolve this situation, it must manually enter the VI client, create a new snapshot, and then delete it. Finally, the delta files disappear and the script will.

    Sometimes we get the same result by invoking "vim - cmd vmsvc/snapshot.remove" on the esxi console, but sometimes it fails with a strange "Segmentation fault".

    This problem occurs randomly on each virtual machine.

    As far as I remember he never saw on ESXi 4.0.

    Thanks in advance for your help,

    Nicola

    You are right, but I just wanted to put this thread there in case you saw questions perform deletions on volume NFS this is something users have hit in the past and it is related to the configuration of your data backup store. This also applies to local storage and ensure that you have sufficient spindles supporting your data store and runs not too much local storage space.

    Get bogged down about these shots, what size is the configured virtual machine memory at?

  • Transfer of ESX4 to ESXi4 VMS

    Hi, I hope this is an appropriate place for this question. I'm a complete noob and have been evaluate ESX Server for our Organization. I find that I have ESXi need at the moment. I would like now to transfer a couple of VMS in the evaluation of ESX4 ESXi4 production version I created. I thought I would just point power VRangerPro on the new server and do a restore but it says "restore network ESXi backups only is not currently supported."

    Then I tried to download and evaluation version of Backup Exec 12.5 and use it, but I can't even as the backup. It seems to need VMWare Consoldated backup installed and my trial account does not give me access to this piece of software.

    Is there a simple way to export and import virtual machines without all this fuss?

    Welcome to the Forums - I try to export virtual machines to the OVF of ESX server format and then import them into the server ESXi - departure from the administration of the base guide here - http://www.vmware.com/pdf/vsphere4/r40/vsp_40_admin_guide.pdf

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • How to restore the once installed ESXi patches

    How to restore the once installed ESXi patches

    If you have already updated, restore to the latest version:

    1. Restart the ESXi host
    2. Loading at startup the hypervisor progress bar, press SHIFT+R.
    3. The following warning is displayed: current hypervisor will be permanently replaced
      with the construction: XXXXXX - x.x.x. are you sure? [Y/n]
    4. Press SHIFT+is to roll back the build
    5. Press Enter to start

    @

Maybe you are looking for

  • Airport express - is no longer the network extension

    For six years, took the extreme of the airport, with two Airport express network expanded throughout the House provision. All are online and update - 7.6.7 is later / current version. Airport express kitchen spent all-day orange with the warning - "u

  • What HARD drive max can I use satellite 3000 514

    Hey all,. What is usable by the 3000-514 maximum capacity hard drive. It comes standard with 20 GB but I can't find anything online that gives this information. Kind regardsSamurai Sjakkie

  • Error reading using RS232

    Hello I found the problem when I want to record from a (22-168 a RadioShack) multimeter with RS 232. Two days, I tried, but I can't solve the problem. The serial port and the instrument work which had been verified by the Basic program. See below 10

  • HP Pavilion 17-e119wm: what to do after replacing hard drive

    Hello, I bought a laptop HP Pavilion year last for work or school. He perfectly managed until yesterday when it was freezing to close unexpectedly. Waited about half an hour to see if it would work himself, I had several programs running at the same

  • trying to rip a CD - R video and store it on my computer

    tried to download to Windows Live Photo Gallery, but do not work and have no idea what to try next... terminology may not reason... tried to rip a video on a CD - R and put it on my computer.