Page 1 of 1

Console over Telnet not working for several images

Posted: Tue Aug 15, 2017 3:34 pm
by kluuter
Hi Guys,

Some Qemu images are not accessible via Telnet but are working perfectly fine using VNC.
These are for example images which are not working over Telnet:
- Radware Alteon
- Pfsense

These are images which work over Telnet and VNC:
- Fortigate Fortinet
- F5 Big-IP

I tried both the HTML5 and the Native console option, but no luck so far...
Someone who can point me in the right direction? Thanks in advance! :mrgreen:

Re: Console over Telnet not working for several images

Posted: Tue Aug 15, 2017 4:27 pm
by ecze
This is not a EVE-NG problem.

Indeed, image has to be be able to support serial console if you want to use 'telnet' console`.

We have in our test successfully deployed Pfsense with serial console previously.

E.

Re: Console over Telnet not working for several images

Posted: Wed Aug 16, 2017 1:36 pm
by kluuter
Thanks for the fast reply!
On the "how-to" page for the F5 Big IP (http://eve-ng.com/index.php/documentati ... d-f5-bigip)
The following steps should be taken in order to get telnet working towards the Big-IP appliance:

Code: Select all

cd /opt/unetlab/addons/qemu/bigip-xxxx

rmmod nbd
modprobe nbd max_part=16
/opt/qemu/bin/qemu-nbd -c /dev/nbd0 hda.qcow2
mount /dev/nbd0p1 /mnt/
sed -e 's/ \(console=tty0 \)\([^c]\)/ \1 console=ttyS0 \2/' -e 's/\(^splashimage.*\)/#\1\nserial --unit=0 --speed=9600\nterminal --timeout=8 console serial\n/' -i  /mnt/grub/grub.conf
umount /mnt/
/opt/qemu/bin/qemu-nbd -d /dev/nbd0
rmmod nbd
However Telnet to the Big-IP appliance is working right away, is there a simular fix for let's say the Radware Appliance?
I'm not very familiar with Linux... i'm not 100% sure what above is all about... :(. I think it's just a way to mount a Qemu image and adjust the grub.conf.
Is this also possible for nodes other then F5 Big-IP?

First things first, I'll start a LPIC-1 course in a few days... :geek:

Re: Console over Telnet not working for several images

Posted: Wed Aug 16, 2017 3:32 pm
by ecze
Alteon appliance doesn't handle correctly ttyS0.
But as it is not mandatory to get telnet for management, no issue here

Just use vnc to setup correctly mgmt interface

— In the Alteon VA console, enter /info/sys/mgmt.
2. To disable the DHCP, enter /cfg/sys/mmgmt/dhcp disable, and configure the management
network manually using the CLI as follows:
a. To configure the IP address, enter /cfg/sys/mmgmt/addr ip address
b. To configure the mask, enter /cfg/sys/mmgmt/mask mask
c. To configure the gateway, enter cfg/sys/mmgmt/gw default gw
d. To enable the configuration, enter /cfg/sys/mmgmt/ena
3. Enable the management interface access, as follows:
— To configure Telnet, enter /cfg/sys/access/tnet e — To configure SSH, enter /cfg/sys/access/ssh/on
— To configure HTTPS, enter /cfg/sys/access/https/e
4. To apply the configuration, enter apply.
5. To save the configuration, enter save.

The use a browser to continue with it :
Screen Shot 2017-08-16 at 17.32.04.png
E.

Re: Console over Telnet not working for several images

Posted: Fri Aug 18, 2017 8:46 am
by kluuter
I'd like to use the Alteon from command line, not all the functions are available in WebGui especially in version 30.2.2.3.
However it's indeed not necessary to use Telnet, I'll use VNC instead for time being.
I really appreciate your quick responses and help! :mrgreen: