Adding Windows7 to Eve

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
krunktor
Posts: 7
Joined: Thu Jun 15, 2017 3:19 pm

Adding Windows7 to Eve

Post by krunktor » 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:

ramindia
Posts: 409
Joined: Sun Mar 19, 2017 10:27 pm

Re: Adding Windows7 to Eve

Post by ramindia » Tue Jul 11, 2017 8:33 pm

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!

krunktor
Posts: 7
Joined: Thu Jun 15, 2017 3:19 pm

Re: Adding Windows7 to Eve

Post by krunktor » 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#

ramindia
Posts: 409
Joined: Sun Mar 19, 2017 10:27 pm

Re: Adding Windows7 to Eve

Post by ramindia » Wed Jul 12, 2017 6:26 am

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!

krunktor
Posts: 7
Joined: Thu Jun 15, 2017 3:19 pm

Re: Adding Windows7 to Eve

Post by krunktor » Wed Jul 12, 2017 2:09 pm

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#

denqyj
Posts: 33
Joined: Mon Apr 17, 2017 12:43 am

Re: Adding Windows7 to Eve

Post by denqyj » Wed Jul 12, 2017 3:19 pm

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.

Post Reply