Console over Telnet not working for several images

Moderator: mike

Post Reply
kluuter
Posts: 11
Joined: Tue Mar 21, 2017 7:27 am

Console over Telnet not working for several images

Post by kluuter » Tue Aug 15, 2017 3:34 pm

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:

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Console over Telnet not working for several images

Post by ecze » Tue Aug 15, 2017 4:27 pm

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.

kluuter
Posts: 11
Joined: Tue Mar 21, 2017 7:27 am

Re: Console over Telnet not working for several images

Post by kluuter » Wed Aug 16, 2017 1:36 pm

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:

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Console over Telnet not working for several images

Post by ecze » Wed Aug 16, 2017 3:32 pm

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.
You do not have the required permissions to view the files attached to this post.

kluuter
Posts: 11
Joined: Tue Mar 21, 2017 7:27 am

Re: Console over Telnet not working for several images

Post by kluuter » Fri Aug 18, 2017 8:46 am

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:

Post Reply