LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-23-2017, 05:42 PM   #1
timahe
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
Vmware ESXi recover .img backup


Hi,

I'm really straight on the hose and hope a clever head couldhelp me.
A backup was created from a VMware ESXi server using dd. Result: (large) .img file.
I need to get this restored in order to save the .vmdk files. At the disposal I have dedicated Ubuntu 16.04.
First I just tried to mount it (got offset number using parted)
Quote:
mount -o loop,ro,offset=123456 backup.img /mnt/root
Spits out the following error message:
Quote:
mount: unknown filesystem type 'VMFS_volume_member'
After that I came to vmfs-tools. Here, I can not mount an image (seems to work only with active disks, did not find anything via Google to get the image mounted).

Do you have an idea? In my despair, I've already try to do it using
Quote:
dd if=backup.img of=/dev/sdX
Shoot me the Filesystem.
How else could I proceed?

Would be very grateful for any advice.

Best regards
 
Old 10-23-2017, 09:00 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings,

I have hit a similar situation and found a way around it...

You have vmfs-tools... Good!

IIRC, the correct mount command was something to the effect of:
Code:
 # vmfs-fuse backup.img /mnt/root/
HTH. Let us know.
 
Old 10-24-2017, 03:45 AM   #3
timahe
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,
thanks for you answer!!
Already tried that but I think it would be the same as mounting: I would need to determine where the offset/partition I want to mount to is.
Quote:
vmfs-fuse backup.img /mnt/root/
VMFS VolInfo: invalid magic number 0x00000000
VMFS: Unable to read volume information
Trying to find partitions
Unable to open device/file "backup.img".
Unable to open filesystem
 
Old 10-31-2017, 08:50 PM   #4
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings again,

How about running parted against the image file?

Don't forget to set the Units to "B" (e.g. bytes) to get your proper offsets. For example:
Code:
# parted /opt/pub/images/testing/2012-10-28-wheezy-raspbian.img
GNU Parted 3.2
Using /opt/pub/images/testing/2012-10-28-wheezy-raspbian.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model:  (file)
Disk /opt/pub/images/testing/2012-10-28-wheezy-raspbian.img: 1940MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  62.9MB  58.7MB  primary  fat16        lba
 2      62.9MB  1940MB  1877MB  primary  ext4

(parted) unit                                                             
Unit?  [compact]? B                                                       
(parted) print                                                            
Model:  (file)
Disk /opt/pub/images/testing/2012-10-28-wheezy-raspbian.img: 1939865600B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start      End          Size         Type     File system  Flags
 1      4194304B   62914559B    58720256B    primary  fat16        lba
 2      62914560B  1939865599B  1876951040B  primary  ext4

(parted)
HTH. Let us know.

Last edited by ShadowCat8; 11-03-2017 at 08:30 PM. Reason: Proper example of using parted against a file
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Upgrade/Migrate VMware ESX/ESXi 4.x To ESXi 5.0 LXer Syndicated Linux News 0 09-11-2011 03:10 PM
Switching From VMware ESXi to KVM? carlosinfl Linux - Virtualization and Cloud 5 04-20-2011 05:23 AM
Sources of entropy in VMWare ESXi johnxcitizen Linux - Virtualization and Cloud 2 09-04-2010 05:04 PM
RAID card for vmware esxi, and some other esxi questions JustinHoMi Linux - Enterprise 1 06-04-2010 03:57 PM
vmware esxi benefits salimshahzad Linux - Virtualization and Cloud 3 05-12-2010 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration