Cannot convert ACS from .vmdk to qcow2

Here you can ask EVE-NG team to add new images to the list to play in lab.

Do not ask questions like "where I can get image x or Y" in that forum

Moderator: mike

Post Reply
mikelibero
Posts: 7
Joined: Wed Nov 22, 2017 3:41 pm

Cannot convert ACS from .vmdk to qcow2

Post by mikelibero » Fri Nov 24, 2017 4:04 pm

I'm installing ACS and I reached point 2.3 of the manual but cannot go further.
The instruction says " From EVE CLI go to your newly created ACS folder and convert uploaded vmdk file to qcow2 format" ... and than two commands:

cd /opt/unetlab/addons/qemu/acs-5.8.1.4/

with which I land in acs-.../ directory. Now shouId I execute the second part in this directory or how? Asking because it doesn't work and I have to deal with unix for the first time in my life :? My command looks like this:

/opt/qemu/bin/qemu-img convert -f vmdk -O qcow2 ACS-disk1.vmdk hda.qcow


please could you specify how it should be executed?
Thx

Uldis (UD)
Posts: 2557
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Cannot convert ACS from .vmdk to qcow2

Post by Uldis (UD) » Fri Nov 24, 2017 11:41 pm

you have to be sure in your command is right vmdk filename
in the how to are used my filename, marked in red.
you have yo use your own vmdk filename

mikelibero
Posts: 7
Joined: Wed Nov 22, 2017 3:41 pm

Re: Cannot convert ACS from .vmdk to qcow2

Post by mikelibero » Sat Nov 25, 2017 5:23 pm

I did this of course. My filename is ACS.vdmk. It is localized in /opt/unetlab/addons/qemu/acs-5.8.1.4 .
Now I go to this file folder using mobaXterm client with command:

cd /opt/unetlab/addons/qemu/acs-5.8.1.4/

and enter the command:

/opt/qemu/bin/qemu-img convert -f vmdk -O qcow2 ACS.vmdk hda.qcow2


Then after I get the following error:

qemu-img: Could not open 'ACS.vmdk': Invalid footer


Something's wrong with the syntax but what?

Uldis (UD)
Posts: 2557
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Cannot convert ACS from .vmdk to qcow2

Post by Uldis (UD) » Sat Nov 25, 2017 10:17 pm

type ls

after you are in that location, do you see that file at all

mikelibero
Posts: 7
Joined: Wed Nov 22, 2017 3:41 pm

Re: Cannot convert ACS from .vmdk to qcow2

Post by mikelibero » Sun Nov 26, 2017 4:52 am

Yes, the file is there:

root@eve-ng:/opt/unetlab/addons/qemu/acs-5.8.1.4# ls
ACS.vmdk
root@eve-ng:/opt/unetlab/addons/qemu/acs-5.8.1.4#

Uldis (UD)
Posts: 2557
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Cannot convert ACS from .vmdk to qcow2

Post by Uldis (UD) » Sun Nov 26, 2017 8:38 am

go to location where is ACS.vmdk file and run:

Code: Select all

/opt/qemu/bin/qemu-img convert -f vmdk -O qcow2 ACS.vmdk hda.qcow2
/opt/qemu/bin/qemu-img convert -f vmdk -O qcow2 ACS.vmdk hda.qcow2

if not working, then you did badly export from esxi

mikelibero
Posts: 7
Joined: Wed Nov 22, 2017 3:41 pm

Re: Cannot convert ACS from .vmdk to qcow2

Post by mikelibero » Sun Nov 26, 2017 8:53 am

Hm, could be....ok, I will read the manual and try to export one more time.
thx

Post Reply