7200emu.hacki.at Forum Index 7200emu.hacki.at
Dynamips, Dynagen and all that stuff
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
7200emu.hacki.at Forum Index

hackibr>

running IPSv5 on VMWare
Goto page Previous  1, 2, 3, ... 11, 12, 13  Next
 
Post new topic   Reply to topic    7200emu.hacki.at Forum Index -> PEMU News
View previous topic :: View next topic  
Author Message
kicay



Joined: 12 Apr 2007
Posts: 2

PostPosted: Tue Jul 17, 2007 8:42 pm    Post subject: Reply with quote

I did everything like in README but i have problem with communication with ips. I configure Ethernet 1 (in VM machine) to bridge with real ethernet interface, assigned them addres from the same subnet and ping/telnet/ssh didn't work.

Ifconfig (form service IPS mode) shows that interface ma0_0 is up.
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 7:42 am    Post subject: Reply with quote

Hi kicay,

this can be related to two problems:

1. VMWAre

There is a problem with VMWare in combination with IPS - at least on my system. When the you have started the IPS completely and made all the interface configuration, disconnect/connect all the VMWare network adapters by right-clicking on the network interface symbols in the VMWare status area (at the bottom to the right).

Check teh arp table on both the IPS and the other host to see if ARP works.

2. access-list

IPS will create iptables rules (look at iptables -L -v n) for ptotecting itself, based on the access-list definitions you made in the cli. Can you check if you acl is defined and if the iptables rules are there?
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 8:34 am    Post subject: Reply with quote

Disappointed by the results I've seen yesterday when testing IPSv6 in VMWare I made some additional research. I cannot accept that this dam^H^H^Hnice piece of sh^H^H software is so bullish Twisted Evil

I made a test wih qemu by compiling the latest snapshot with e100 network card support, booted the recovery CD, reimaged the sensor and voila, the e100-cids driver loads.

After applying some modifications the software recognizes the VM as a IDS-4215. The only thing that is left are the BIOS modifications, because the software still checks DMI strings reported by the BIOS.

After a short look at the Bochs BIOS sources I gave up - it was late in the evenning and it seems that advanced programming skills are needed. I will see what I can do - but no promises.
Back to top
View user's profile Send private message
mmm123



Joined: 05 Apr 2007
Posts: 302

PostPosted: Wed Jul 18, 2007 9:15 am    Post subject: Reply with quote

IDS BIOS can be downloaded from cisco software center as BIOS upgrade. Unfortunately it doesn't work without some modifications. For obvious reasons I can't publish modified version, but still if you want to use BIOS just for identification (not for loading image from tftp server in monitor mode), it might help.
I did some test several months ago with pemu. By just replacing mybios_d800 with IDS bios, it startst as IDS, loads recovery image from tftp server. Unfortunately I removed IDE driver prom pemu in way that it is not easy to restore. But still You could try fresh qemu source, by just implementing i82559 net driver instead or ne2000 (there are several post about juniper support, that might help) and IDS BIOS for identification.
Back to top
View user's profile Send private message
james5299



Joined: 18 Jul 2007
Posts: 2

PostPosted: Wed Jul 18, 2007 10:06 am    Post subject: Reply with quote

hi einval

thanks for such a great post. i tried using ur instructions. it went well . i reached to the point where it ask to login into the sensor. which means i am very close to get it working. i need little help from you. can you please tell me how to configure the BIOS parameters ? i need help on that.
[b][b]modified VMWare BIOS (CISCO_IDS4215_440.BIOS.ROM)
This file should be in the archive from where you extracted this Howto
[/b][/b]

please tell me if possible from where to get this file. and how to configure the VM bios file.

regards
james
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 10:14 am    Post subject: Reply with quote

thanks, mmm123.

qemu seems to be the correct way of doing things, because everything the IPS software needs (hdd and e100 support) is already there. The other path - modifying pemu source in a way that it supports hard disk support and the intel nic - seems to be much harder.

I did some tests with the Cisco BIOS loading by qemu, but without success. I tried the complete BIOS file (downloaded .bin) as well with extracted parts (according to the locations inside the .bin file mentioned in the old thread).

Can you say what part of the original .bin file is loadable by qemu and where to hook it in (replacement for bios.bin or option ROM?

I think this will be the easiest and most accurate way of doing things - relying on the vendor distributed BIOS code. I dont want to modify the cisco BIOS. If this will not workl I have to look at Bochs BIOS again, but modifying this is not a simple task for me as compared to modifying the VMWare BIOS Very Happy
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 10:17 am    Post subject: Reply with quote

james5299 wrote:

[b][b]modified VMWare BIOS (CISCO_IDS4215_440.BIOS.ROM)
This file should be in the archive from where you extracted this Howto
[/b][/b]

please tell me if possible from where to get this file. and how to configure the VM bios file.


Its attached to the article (scroll down to the end - its after the readme text). Ah and make sure you are logged to the forum - only registered users will enjoy attachments Very Happy

If you want to do the modifications for yourself, extract the bios440 part from the vmware BIOS and use a BIOS editor to modify the DMI strings.
Back to top
View user's profile Send private message
james5299



Joined: 18 Jul 2007
Posts: 2

PostPosted: Wed Jul 18, 2007 12:18 pm    Post subject: Reply with quote

hi Einval,

can you please throw some extra light on how to change the DMI string to get the serial number of device.

regards
james
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 3:11 pm    Post subject: Reply with quote

Its not that hard. Make yourself familiar with

http://www.vmware.com/community/thread.jspa?threadID=28149

Then modify the BIOS with a hex editor or a BIOS editor. The DMI strings that should contain serial number information will hold a dummy serial numer of 12345678901 - you dont have to use a valid one, product codes will read "IDS-4215" and vendor information will be "Cisco Systems".

Thats all.
Back to top
View user's profile Send private message
pgtedy



Joined: 20 May 2007
Posts: 10

PostPosted: Wed Jul 18, 2007 3:57 pm    Post subject: Reply with quote

Hi einval,

Do you know from where is read the serial number and why IPS v5 on vmware does not show a serial?
I ask because i want to use a valid license on IPS vmware to make it fully functional....similar to using a valid license of PIX on pemu.

Thanks.
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Wed Jul 18, 2007 4:58 pm    Post subject: Reply with quote

Hi,

according to what I discovered so far, IPS looks at the DMI strings for serial number and perhaps UUID too.

I wasnt able to trick the IPS into accepting the script output from the smbios_bios_info file. mainApp will query the DMI variables too.

The problem with VMWare is that it patches the SMBIOS everytime you start the VM with its own string, making any changes to the UUID string I made in the BIOS useless. The VMWare inserted serial number starts with "VMWare-...". I didnt looked into the details, because I dont need a woking serial number.

To fix this problem you can start looking at the uuid.* options in the VM config file by changing them and then tell VWare to keep them.

Good luck!
Back to top
View user's profile Send private message
kicay



Joined: 12 Apr 2007
Posts: 2

PostPosted: Sun Jul 22, 2007 8:34 am    Post subject: Reply with quote

Hello
IPS 5.0 works great on VMware. I used IPS-K9-cd-1.1-a-5.1-4.iso and IPS-K9-cd-1.1-a-5.1-5-E1.iso - both work ok.
In my last post I sad that interface didn't work. It was my problem - I didn't read README carfully - I should Disable/Enable vm network interface cards. Smile.

Thanx to enival Smile.
Back to top
View user's profile Send private message
sebastan_bach



Joined: 14 Feb 2007
Posts: 35

PostPosted: Sun Jul 22, 2007 3:35 pm    Post subject: Reply with quote

hi is 5.1 ips image is also supported on this.
Back to top
View user's profile Send private message
einval



Joined: 16 Jul 2007
Posts: 33

PostPosted: Sun Jul 22, 2007 5:08 pm    Post subject: Reply with quote

Quote:

hi is 5.1 ips image is also supported on this.


Sure, I wrote the readme with 5.1.4,. From what I've seen so far, any 5.x software should work, only 6.x cannot be used.
Back to top
View user's profile Send private message
mek



Joined: 14 Apr 2007
Posts: 5

PostPosted: Mon Jul 23, 2007 8:50 am    Post subject: I try on Windows VMware Workstation 5.5 Reply with quote

Hello at all.
I'm trying on Windows but it does not pass the model check!
Any ideas?
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    7200emu.hacki.at Forum Index -> PEMU News All times are GMT
Goto page Previous  1, 2, 3, ... 11, 12, 13  Next
Page 2 of 13

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 

Cisco Training Course partner | Boot Camps | Cisco Certification Courses
http://www.coursefox.co.uk



Powered by phpBB © 2001, 2005 phpBB Group