The error VERR_VD_VMDK_INVALID_FORMAT and solution are reported when virtualbox is imported to ova.

Source: Internet
Author: User

The error VERR_VD_VMDK_INVALID_FORMAT and solution are reported when virtualbox is imported to ova.

An error occurred while importing the original gentoo linux Virtual Machine in virtualbox.
You can only export the system data or reinstall it. After searching for some information on the Internet, I found that:
The ova file is actually a tar file, which contains ovf, vmdk, and mf. Ovf is a virtual machine definition file, vmdk is a virtual machine hard disk file, and mf is a validation file. An error is prompted during the unlocking process, but three files are still available.
Manually create a virtual machine according to the description of the ovf file, copy the vdmk file to the VirtualBox VMs directory, and add it to the created virtual machine to start. So I plan to create a new Virtual Machine hard disk and mirror the original system data to the new virtual hard disk. However, dd only processes more than 1 GB of data and stops. It seems that there is a problem with the file itself, the error occurs in the device file, but the file can still work. So we decided to use cp-.

Download the minimal CD and start the VM.
Repartition Based on the partition of the original hard disk. Here I am going to boot, root, and swap, and make filesystem.
[Plain]
Fdisk/dev/sdb (sdb1 256 M, all remaining sdb2)
Pvcreate/dev/sdb2
Vgcreate vg2/dev/sdb2
Lvcreate-nslash-L10G
Lcvreate-nswap-L1G
Mkfs. ext2/dev/sdb1
Mkfs. ext4/dev/vg2/slash
Mkswap/dev/vg2/swap
Mount the root partitions of the original and new hard disks to the gentoo and gentoo2 directories under/mnt/respectively.
[Plain]
Mount/dev/vg1/slash/mnt/gentoo
Mount/dev/vg2/slash/mnt/gentoo
Go to the/mnt/gentoo directory and copy (add parameter-a) All files to the/mnt/gentoo2 directory.
[Plain]
Cd/mnt/getoo
Cp-a./mnt/gentoo2
Mount the boot partition and copy (add the parameter-).
[Plain]
Mount/dev/sda1/mnt/gentoo/boot
Mount/dev/sdb1/mnt/gentoo2/boot
Cd/mnt/gentoo/boot
Cp-a./mnt/gentoo2/boot
Modify/etc/fstab and/boot/grub/menu. lst
[Plain]
Chroot/mnt/gentoo2/bin/bash
Vim/etc/fstab
Vim/boot/grub/menu. lst
Copy mbr
[Plain]
Dd if =/dev/sda of =/dev/sdb bs = 446 count = 1

Then export the virtual computer again to solve the problem.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.