Dear gem5 community,

I have connected successfully two gem5s through e1000 ethernet card. You can see the terminal output in the following commands:

1st GEM5:

root@aarch64-gem5:/# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 00:90:00:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@aarch64-gem5:/# ping -c 1 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=192 ms

--- 192.168.0.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 192.857/192.857/192.857/0.000 ms
root@aarch64-gem5:/# ssh [email protected]
[    2.784304] random: ssh: uninitialized urandom read (32 bytes read)
ssh: connect to host 192.168.0.3 port 22: Connection refused
root@aarch64-gem5:/#


2nd gem5:

root@aarch64-gem5:/# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 00:90:00:00:00:01  txqueuelen 1000  (Ethernet)
        RX packets 2  bytes 158 (158.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 158 (158.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@aarch64-gem5:/# ping -c 1 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=97.7 ms

--- 192.168.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 97.758/97.758/97.758/0.000 ms
root@aarch64-gem5:/# ssh [email protected]
[    3.187606] random: ssh: uninitialized urandom read (32 bytes read)
ssh: connect to host 192.168.0.2 port 22: Connection refused
root@aarch64-gem5:/#



I have used this gem5 configuration:

$GEM5/build/ARM/gem5.opt -d $GEM5/node0 $GEM5/configs/example/arm/starter_fs.py --kernel=vmlinux.arm64 --num-cores=2 --disk-image=ubuntu-18.04-arm64-docker.img --node=0

and

$GEM5/build/ARM/gem5.opt -d $GEM5/node0 $GEM5/configs/example/arm/starter_fs.py --kernel=vmlinux.arm64 --num-cores=2 --disk-image=ubuntu-18.04-arm64-docker.img --node=1

I would like to connect one gem5 to another through ssh (because I would like to use MPI).

I have installed the openssh-client packet through qemu but I get the above connection refused. After that, I installed the openssh-server through qemu, but it is not booted after 2 hours (it installed a number of packets):

"The following NEW packages will be installed:
  ca-certificates dbus dmsetup gir1.2-glib-2.0 libapparmor1 libargon2-0
  libcryptsetup12 libdbus-1-3 libdevmapper1.02.1 libgirepository-1.0-1
  libglib2.0-0 libglib2.0-data libip4tc0 libjson-c3 libkmod2 libmpdec2
  libnss-systemd libpam-systemd libpsl5 libpython3-stdlib libpython3.6-minimal
  libpython3.6-stdlib libwrap0 mime-support ncurses-term networkd-dispatcher
  openssh-server openssh-sftp-server openssl publicsuffix python3
  python3-certifi python3-chardet python3-dbus python3-gi python3-idna
  python3-minimal python3-pkg-resources python3-requests python3-six
  python3-urllib3 python3.6 python3.6-minimal shared-mime-info ssh-import-id
  systemd systemd-sysv ucf wget xdg-user-dirs"

I appreciate it if someone knows how to speed up the boot time or how can I connect two gem5s through ssh, please. Following is the gem5 terminal output after openssh-server installation (but it is not finished yet).



[    0.460103] systemd[1]: System time before build time, advancing clock.
[ 0.460256] systemd[1]: Failed to insert module 'autofs4': No such file or directory [ 0.461222] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    0.461283] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 18.04.2 LTS!

[ 0.472880] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 0.472885] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    0.482445] random: systemd: uninitialized urandom read (16 bytes read)
[    0.482493] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    0.482580] random: systemd: uninitialized urandom read (16 bytes read)
[    0.482627] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    0.482648] random: systemd: uninitialized urandom read (16 bytes read)
[    0.482695] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[ 0.482752] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    0.482777] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    0.482835] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
         Starting Journal Service...
         Mounting POSIX Message Queue File System...
         Starting Remount Root and Kernel File Systems...
         Mounting Kernel Debug File System...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Paths.
         Starting Create Static Device Nodes in /dev...
         Mounting Huge Pages File System...
         Starting Load Kernel Modules...
[  OK  ] Reached target Slices.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Journal Service.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Network Name Resolution...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Message of the Day.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Login Service...
         Starting OpenBSD Secure Shell server...
         Starting Dispatcher daemon for systemd-networkd...
[  OK  ] Started Set the CPU Frequency Scaling governor.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Login Service.
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[ TIME ] Timed out waiting for device dev-ttyAMA0.device.
[DEPEND] Dependency failed for Serial Getty on ttyAMA0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.


Please help me!

Best regrads,
Nikolaos




_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
  • [gem5-users] SSH ... Νικόλαος Ταμπουρατζής via gem5-users

Reply via email to