ESOS-Lab / VSSIM

Virtual Machine based SSD Simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qemu can not connect the monitor

MrCoderK opened this issue · comments

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

commented

should i install the library on qemu or host? thanks

commented

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

commented

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

commented

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

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

commented

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

commented

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

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.

commented