linka-cloud / d2vm

Build Virtual Machine Image from Dockerfile or Docker image
Apache License 2.0
208 stars 31 forks source link

Ubuntu 18.04: Loading /boot/vmlinuz... failed: No such file or directory #3

Closed sanketIntel closed 1 year ago

sanketIntel commented 1 year ago

I am trying to convert docker image of my application but my VM is unable to boot. can someone please specify if this tool will convert any docker image or only OS docker image?

Adphi commented 1 year ago

Hi @sanketIntel !

Can you please share your Dockerfile ?

sanketIntel commented 1 year ago

I am converting a docker image not using docker file.

Adphi commented 1 year ago

If the docker image is based on supported os (ubuntu/debian/alpine/centos) it should be able to run. Can you share the image you are trying to convert ?

sanketIntel commented 1 year ago

https://hub.docker.com/r/openvisualcloud/xeon-ubuntu1804-service-owt/tags

the latest tag I am trying.

Adphi commented 1 year ago

Ok, there seems to be a problem with the vmlinux path:

SeaBIOS (version 1.13.0-1ubuntu1.1)
Machine UUID 19f07ce7-b65a-4e17-994d-cee9301db875

iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+3FF8C740+3FECC740 CA00

Booting from Hard Disk...

SYSLINUX 6.04 EDD 20191223 Copyright (C) 1994-2015 H. Peter Anvin et al
Now booting the kernel from SYSLINUX...
Loading /boot/vmlinuz... failed: No such file or directory
boot:

I did not test with Ubuntu 18.04.6 LTS, I will take a look.

Adphi commented 1 year ago

I got it... on ubuntu 18.04 the vmlinuz and initrd.img symlinks are not created at the same location... they are created the debian way: at the file system root.

I tried with the ubuntu 20.04 based image version, it works:

d2vm convert openvisualcloud/xeon-ubuntu2004-service-owt -o service-owt.qcow2 -d
Adphi commented 1 year ago

I just pushed a fix that solves the problem. Can you give it a try ?

sanketIntel commented 1 year ago

Yes, It is booting now. Thank you.