Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.