Ask Your Question

Gigel's profile - activity

2020-01-07 07:34:04 -0500 received badge  Taxonomist
2019-05-02 22:02:31 -0500 received badge  Student (source)
2017-04-19 00:57:57 -0500 received badge  Notable Question (source)
2017-04-19 00:57:57 -0500 received badge  Famous Question (source)
2017-01-26 07:03:42 -0500 received badge  Popular Question (source)
2017-01-20 09:18:19 -0500 asked a question Error when booting instance created from vmdk file

I need to migrate a VM from VMWare to OpenStack, so I exported the VM and obtained a vmdk and an ovf file. I created an OpenStack image from the vmdk file:

openstack image create "h5nsn1_vmdk" \
  --file /openstack/images/h5nsn1/h5nsn1-disk1.vmdk \
  --disk-format vmdk --container-format bare \

and then I launched an instance from that image, but when I connected to the instance console I saw that there was a "Could not boot" error:

dracut-initqueue[238]: Warning: Could not boot.
dracut-initqueue[238]: Warning: /dev/disk/by-uuid/d8366f41-f65d-4034-9aa4-ab137c5c1f7f does not exist

This is the output of the blkid command run from the original VM:

/dev/sda1: UUID="c57bba3b-c004-46e9-87e0-632c7b9262fd" TYPE="swap"
/dev/sda2: UUID="d8366f41-f65d-4034-9aa4-ab137c5c1f7f" TYPE="xfs"

The same "Could not boot" problem appears when I convert the vmdk file to qcow2 format, load it as an image and launch an instance from that image:

qemu-img convert -f vmdk -O qcow2 -c h5nsn1-disk1.vmdk h5nsn1-disk1.qcow2

openstack image create "h5nsn1" \
  --file /openstack/images/h5nsn1/h5nsn1-disk1.qcow2 \
  --disk-format qcow2 --container-format bare \

Any idea on how to solve this problem?

I use a Newton release OpenStack installation and vSphere Client 6.0.0 VMWare ESXi 6.0.0.

Additional investigations:
I got the same error when trying to create a new VM in VirtualBox and selected the vmdk file for "Use an existing virtual hard disk file" option.
I saw that the new VM had a SATA controller for the disk image, so I created a SCSI controller and assigned that image to it, and after that the VM booted successfully in VirtualBox.

After that I tried to create the OpenStack image this way:

openstack image create "h5nsn1_vmdk_scsi_2" \
  --file /openstack/images/h5nsn1/h5nsn1-disk1.vmdk \
  --disk-format vmdk --container-format bare \
  --property hw_disk_bus=scsi \

but I got the same error when launching the instance.

This is the header of the vmdk file:

# Disk DescriptorFile

# Extent description
RDONLY 125829120 SPARSE "generated-stream.vmdk"

# The Disk Data Base

ddb.adapterType = "lsilogic"
ddb.geometry.cylinders = "7832"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "93fe0e05c26748dab064b879242212c9"
ddb.virtualHWVersion = "9"

Any help is appreciated. Thank you