ESOS-Lab / VSSIM

Virtual Machine based SSD Simulator
60 stars 50 forks source link

qemu can not connect the monitor #16

Open MrCoderK opened 6 years ago

MrCoderK commented 6 years ago

I use the host sysyem 16.04 and guest system 16.04. I installed the QEMU, but QEMU can not connnect the MONITOR_PM, the ssd monitor only show time,why? and i checked "thesocket->connetToHost(“127.0.0.1”, 9995)" and " serverAddr.sin_port = htons(9995);",there is no error. default

jedisty commented 6 years ago

Please install the following library and try again.

From: MrCoderK notifications@github.com Sent: Saturday, April 14, 2018 8:26 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

I use the host sysyem 16.04 and guest system 16.04. I installed the QEMU, but QEMU can not connnect the MONITOR_PM, the ssd monitor only show time,why? and i checked "thesocket->connetToHost(“127.0.0.1”, 9995)" and " serverAddr.sin_port = htons(9995);",there is no error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DSPSTQlvVE8h-e5sZ__mmbK7bYN1ks5todyygaJpZM4TVCDY .


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

should i install the library on qemu or host? thanks

jedisty commented 6 years ago

The library should be installed on host.

From: MrCoderK notifications@github.com Sent: Saturday, April 14, 2018 9:27 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

should i install the library on qemu or host? thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-381325700 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DdbqRWSLo0GcriVHoSp_Sbs4-1-mks5toesogaJpZM4TVCDY .


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

i install the library both on host and guest system, and i test the VVSSIM with "dd if=/dev/zero of=test bs=8k count=10000 oflag=direct", however the monitor still show nothing . default

jedisty commented 6 years ago

Please send me the screen shot of the execution message of the VSSIM (after executing the run.sh script).

Thank you

Jinsoo Yoo

From: MrCoderK notifications@github.com Sent: Saturday, April 14, 2018 10:23 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

i install the library both on host and guest system, and i test the VVSSIM with "dd if=/dev/zero of=test bs=8k count=10000 oflag=direct", however the monitor still show nothing . https://user-images.githubusercontent.com/28532998/38768679-0a177de4-402a-11e8-8709-c7d80dbe9572.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-381328975 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DQjq4CsOtUEImP0sAJ-NY9LhYsIuks5tofhMgaJpZM4TVCDY .


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

these are my screen shots,thank you; I comletely installed the qemu,

  1. $ cd VSSIM/MONITOR/SSD_MONITOR_PM/ $ qmake $ make /home/kzw/截图/MONITOR_qmake.png default

/home/kzw/截图/MONITOR_make.png default

  1. $ cd VSSIM/CONFIG/FTL_SETTING/ $ ./unlink_pm $ ./link_pm

  2. $ cd VSSIM/QEMU/ $ make clean $ ./configure $ make /home/kzw/截图/QEMU-compile_configure.png default

/home/kzw/截图/QEMU-compile_make.png default

4,$ cd VSSIM/RAMDISK/ $ mkdir rd $ chmod 0755 rd $ sudo mount -t tmpfs -o size=8g tmpfs ./rd

5, $ cd VSSIM/QEMU/x86_64-softmmu $./run.sh /home/kzw/截图/After_run.sh.png default

jedisty commented 6 years ago

I can’t see your screenshot (After_run.sh.png).

Please attach it again.

Thank you

Jinsoo Yoo

From: MrCoderK notifications@github.com Sent: Monday, April 16, 2018 3:18 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

these are my screen shots,thank you; I comletely installed the qemu,

  1. $ cd VSSIM/MONITOR/SSD_MONITOR_PM/ $ qmake $ make /home/kzw/截图/MONITOR_qmake.png /home/kzw/截图/MONITOR_make.png
  2. $ cd VSSIM/CONFIG/FTL_SETTING/ $ ./unlink_pm $ ./link_pm
  3. $ cd VSSIM/QEMU/ $ make clean $ ./configure $ make /home/kzw/截图/QEMU-compile_configure.png /home/kzw/截图/QEMU-compile_make.png 4,$ cd VSSIM/RAMDISK/ $ mkdir rd $ chmod 0755 rd $ sudo mount -t tmpfs -o size=8g tmpfs ./rd

5, $ cd VSSIM/QEMU/x86_64-softmmu $./run.sh /home/kzw/截图/After_run.sh.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-381491164 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DRuvHqnKHbBDMYSw9sKIDyy7Iv_sks5tpDeYgaJpZM4TVCDY . https://github.com/notifications/beacon/ACK7DZp2hNBSNJAdh4ilRyZfU0CEjRcFks5tpDeYgaJpZM4TVCDY.gif


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

I have send the SCREEN shot again above,
thanks so much!!!!!

MrCoderK commented 6 years ago

these are my screen shots,thank you; I comletely installed the qemu,

  1. $ cd VSSIM/MONITOR/SSD_MONITOR_PM/ $ qmake $ make /home/kzw/截图/MONITOR_qmake.png

default

/home/kzw/截图/MONITOR_make.png default

  1. $ cd VSSIM/CONFIG/FTL_SETTING/ $ ./unlink_pm $ ./link_pm

  2. $ cd VSSIM/QEMU/ $ make clean $ ./configure $ make /home/kzw/截图/QEMU-compile_configure.png

default

/home/kzw/截图/QEMU-compile_make.png default

4,$ cd VSSIM/RAMDISK/ $ mkdir rd $ chmod 0755 rd $ sudo mount -t tmpfs -o size=20g tmpfs ./rd default

5, $ cd VSSIM/QEMU/x86_64-softmmu $./run.sh /home/kzw/截图/After_run.sh.png default

jedisty commented 6 years ago

Thank you for attachments.

However, I need to check the execution messages after formatting the qemu disk image.

The following image is the sample screenshot (The messages in the screen shot can be different from yours.).

Thank you.

Jinsoo Yoo

From: MrCoderK notifications@github.com Sent: Monday, April 16, 2018 3:59 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

these are my screen shots,thank you; I comletely installed the qemu,

  1. $ cd VSSIM/MONITOR/SSD_MONITOR_PM/ $ qmake $ make /home/kzw/截图/MONITOR_qmake.png

    https://user-images.githubusercontent.com/28532998/38794019-30f06680-4186-11e8-8da0-89883a7047a4.png

/home/kzw/截图/MONITOR_make.png https://user-images.githubusercontent.com/28532998/38794039-444ef52a-4186-11e8-8d96-8ba436a1707a.png

  1. $ cd VSSIM/CONFIG/FTL_SETTING/ $ ./unlink_pm $ ./link_pm
  2. $ cd VSSIM/QEMU/ $ make clean $ ./configure $ make /home/kzw/截图/QEMU-compile_configure.png

    https://user-images.githubusercontent.com/28532998/38794055-5425b024-4186-11e8-91cd-d50dc5568ceb.png

/home/kzw/截图/QEMU-compile_make.png https://user-images.githubusercontent.com/28532998/38794070-61b6a1c6-4186-11e8-9488-c40b1e78e1bd.png

4,$ cd VSSIM/RAMDISK/ $ mkdir rd $ chmod 0755 rd $ sudo mount -t tmpfs -o size=8g tmpfs ./rd https://user-images.githubusercontent.com/28532998/38794104-8163e434-4186-11e8-8ac7-6a729000e198.png

5, $ cd VSSIM/QEMU/x86_64-softmmu $./run.sh /home/kzw/截图/After_run.sh.png https://user-images.githubusercontent.com/28532998/38794118-904de5da-4186-11e8-8d96-08c7893d1300.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-381498725 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7Dcknu8cVF6JUdkfgD54Ub9XJxWFeks5tpEFHgaJpZM4TVCDY . https://github.com/notifications/beacon/ACK7DcmBaHGE1of066-ZRTWvoERVZie0ks5tpEFHgaJpZM4TVCDY.gif


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

yeah, thank you .now i use the win7_64.iso as guest system, and i added "printf("the test had be builded:9995")" in front of "serverAddr.sin_port = htons(9995)" in ssd_log_manager.c, and I found that it did not execute. default default default

jedisty commented 6 years ago

I think FTL_INIT() was not called in your simulation.

Can you install 32-bit iso image in the same simulation environment?

Because I want to check whether it is matter of OS image.

Thank you.

Jinsoo Yoo

From: MrCoderK notifications@github.com Sent: Monday, April 16, 2018 10:11 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

yeah, thank you .now i use the win7_64.iso as guest system, and i added "printf("the test had be builded:9995")" in front of "serverAddr.sin_port = htons(9995)" in ssd_log_manager.c, and I found that it did not execute. https://user-images.githubusercontent.com/28532998/38810852-921d056a-41ba-11e8-8d84-ffb02fe2e852.png https://user-images.githubusercontent.com/28532998/38810867-9e017154-41ba-11e8-9560-64c4a26285bd.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-381593823 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DS2XAf99pzRkl5Zh937r-ASziphHks5tpJhqgaJpZM4TVCDY . https://github.com/notifications/beacon/ACK7Dc6Eg1XfcMV2W8PpuY02aZSlP4rTks5tpJhqgaJpZM4TVCDY.gif


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.

MrCoderK commented 6 years ago

thanks for your answer!
run there is error NO .[4] in the screen shot, but i can not find the in all the files so that i do not konw what cause the error,after installing the guest, the monitor still show nothing!

shehbazj commented 6 years ago

I would like to point out that I get the same error no (error number 4). We can get the cause for the error by printing the errorcode using strerror(). error code 4 corresponds to "Interrupted System Call". However, I am unable to understand what causes this error.

jedisty commented 6 years ago

Before checking the error number[4], you need to resolve the connection error.

Connected[-1] means that building the connection between server (SSD Monitor) and the client (QEMU) is failed.

Please change the port number of QEMU and SSD_MONITOR and re-compile both source codes (README describes how change the port number).

Thank you

Jinsoo Yoo

From: MrCoderK notifications@github.com Sent: Wednesday, April 18, 2018 7:51 PM To: ESOS-Lab/VSSIM VSSIM@noreply.github.com Cc: JSYoo jedisty@hanyang.ac.kr; Comment comment@noreply.github.com Subject: Re: [ESOS-Lab/VSSIM] qemu can not connect the monitor (#16)

thanks for your answer! https://user-images.githubusercontent.com/28532998/38927592-ce2b4760-42f5-11e8-8944-f537f9262300.png there is error NO .[4] in the screen shot, but i can not find the in all the files so that i do not konw what cause the error,after installing the guest, the monitor still show nothing!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ESOS-Lab/VSSIM/issues/16#issuecomment-382346451 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACK7DSFXGoRXRWqiUhctX6wKCXvvGruyks5tpxp8gaJpZM4TVCDY . https://github.com/notifications/beacon/ACK7DfOmx4BldDzKpNWQZCLcRAET9FVzks5tpxp8gaJpZM4TVCDY.gif


This e-mail is intended only for the named recipient. Dissemination, distribution, forwarding, or copying of this e-mail by anyone other than the intended recipient is prohibited. If you have received it in error, please notify the sender by e-mail and completely delete it. Thank you for your cooperation.

The phrase above is the same as the Korean contents below.

위 전자우편에 포함된 정보는 지정된 수신인에게만 발송되는 것으로 보안을 유지해야 하는 정보와 법률상 및 기타 사유로 공개가 금지된 정보가 포함돼 있을 수 있습니다. 귀하가 이 전자우편의 지정 수신인이 아니라면 본 메일에 포함된 정보의 전부 또는 일부를 무단으로 보유, 사용하거나 제3자에게 공개, 복사, 전송, 배포해서는 안 됩니다. 본 메일이 잘못 전송되었다면, 전자우편 혹은 전화로 연락해주시고, 메일을 즉시 삭제해 주시기 바랍니다. 협조해 주셔서 감사합니다.