Ask Your Question
0

Error when booting instance created from vmdk file

asked 2017-01-20 07:49:40 -0500

Gigel gravatar image

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 \
  --public

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 \
  --public

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 \
  --public

but I got the same error when launching the instance.

This is the header of the vmdk file:

# Disk DescriptorFile
version=1
CID=a73d90b3
parentCID=ffffffff
createType="streamOptimized"

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

# The Disk Data Base
#DDB

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-04-15 08:23:25 -0500

tanggc gravatar image

when you creat vm by vmware, you disk bus is IDE, but kvm default disk bus is virtio

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-01-20 07:49:40 -0500

Seen: 788 times

Last updated: Apr 15