Page 1 of 1

Adding Windows7 to Eve

Posted: Tue Jul 11, 2017 7:37 pm
by krunktor
Hello Everyone
I need some help getting Win7 on my lab.

I've folloed the tutorial posted here : http://www.eve-ng.net/index.php/documen ... on-the-eve

and I am stuck on Step 13 : IMPORTANT: Convert your installed tmp image:

When I paste the command
qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/4b3e0c93-78aa-4287-bcf3-88fb1ab94f02/1/hda.qcow2 /tmp/hda.qcow2
into the console it out puts : -bash: qemu-img: command not found


I 've tried running the command in several locations with the same results

I am running : x 4.4.14-eve-ng-ukms+ x86_64

please help! :oops:

Re: Adding Windows7 to Eve

Posted: Tue Jul 11, 2017 8:33 pm
by ramindia
krunktor wrote:
Tue Jul 11, 2017 7:37 pm
Hello Everyone
I need some help getting Win7 on my lab.

I've folloed the tutorial posted here : http://www.eve-ng.net/index.php/documen ... on-the-eve

and I am stuck on Step 13 : IMPORTANT: Convert your installed tmp image:

When I paste the command
qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/4b3e0c93-78aa-4287-bcf3-88fb1ab94f02/1/hda.qcow2 /tmp/hda.qcow2
into the console it out puts : -bash: qemu-img: command not found


I 've tried running the command in several locations with the same results

I am running : x 4.4.14-eve-ng-ukms+ x86_64

please help! :oops:
Looks like qemu-img is not found in the folder you executing.


try below command and show the output.


root@eve-ng:~# find / -name qemu-img -print


you see results like below .

/opt/qemu/bin/qemu-img
/opt/qemu-2.0.2/bin/qemu-img
/opt/qemu-2.2.0/bin/qemu-img
/opt/qemu-1.3.1/bin/qemu-img
/usr/bin/qemu-img


R!

Re: Adding Windows7 to Eve

Posted: Wed Jul 12, 2017 2:25 am
by krunktor
thanks


root@eve-ng:/opt/qemu-2.2.0/bin# find / -name qemu-img -print
/opt/qemu-1.3.1/bin/qemu-img
/opt/qemu-2.2.0/bin/qemu-img
/opt/qemu/bin/qemu-img
/opt/qemu-2.0.2/bin/qemu-img


I've located the file qemu-img

root@eve-ng:/opt/qemu-2.2.0/bin# ls
qemu-ga qemu-img qemu-io qemu-nbd qemu-system-i386 qemu-system-x86_64 virtfs-proxy-helper vscclient
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin# qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0-4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2
bash: qemu-img: command not found
root@eve-ng:/opt/qemu-2.2.0/bin#

Re: Adding Windows7 to Eve

Posted: Wed Jul 12, 2017 6:26 am
by ramindia
krunktor wrote:
Wed Jul 12, 2017 2:25 am
thanks


root@eve-ng:/opt/qemu-2.2.0/bin# find / -name qemu-img -print
/opt/qemu-1.3.1/bin/qemu-img
/opt/qemu-2.2.0/bin/qemu-img
/opt/qemu/bin/qemu-img
/opt/qemu-2.0.2/bin/qemu-img


I've located the file qemu-img

root@eve-ng:/opt/qemu-2.2.0/bin# ls
qemu-ga qemu-img qemu-io qemu-nbd qemu-system-i386 qemu-system-x86_64 virtfs-proxy-helper vscclient
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin#
root@eve-ng:/opt/qemu-2.2.0/bin# qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0-4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2
bash: qemu-img: command not found
root@eve-ng:/opt/qemu-2.2.0/bin#
what is eve-ng version, if you installed correctly all the files should be install /usr/bin/qemu-img ( this where default path commands execute)

Try below full path

/opt/qemu/bin/qemu-img -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0-4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2 ---this should works for you.

R!

Re: Adding Windows7 to Eve

Posted: Wed Jul 12, 2017 2:09 pm
by krunktor
Hello, I installed Eve-ng from the iso downloaded.
not sure why qemu isnt working, should i re-install the whole os?
Here's what I tried

root@eve-ng:~# cd /opt/
root@eve-ng:/opt# cd qemu
root@eve-ng:/opt/qemu# cd bin/
root@eve-ng:/opt/qemu/bin# qemu-img -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0 -4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2
-bash: qemu-img: command not found
root@eve-ng:/opt/qemu/bin# dir
ivshmem-client qemu-ga qemu-io qemu-system-i386 virtfs-proxy-helper
ivshmem-server qemu-img qemu-nbd qemu-system-x86_64 vscclient
root@eve-ng:/opt/qemu/bin# gemu-img
-bash: gemu-img: command not found
root@eve-ng:/opt/qemu/bin# qemu-img
-bash: qemu-img: command not found
root@eve-ng:/opt/qemu/bin#

Re: Adding Windows7 to Eve

Posted: Wed Jul 12, 2017 3:19 pm
by denqyj
As ramindia posted previously, please just use the absolute path like:

/opt/qemu/bin/qemu-img -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0-4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2

or use the relative path like:

root@eve-ng:/opt/qemu/bin# ./qemu-img -c -O qcow2 /opt/unetlab/tmp/0/a2cc606e-98d0-4495-a9fb-848de12dbe75/1/hda.qcow2 /tmp/hda.qcow2

That is just linux's rule.