EFW Support
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Thursday 12 December 2024, 07:12:37 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Visit the Official Endian Bug tracker
HERE
14261
Posts in
4377
Topics by
6517
Members
Latest Member:
Sandro
Search:
Advanced search
EFW Support
Support
Installation Support
Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
0 Members and 2 Guests are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide (Read 53737 times)
50chickens
Jr. Member
Offline
Posts: 1
Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
on:
Tuesday 29 October 2013, 01:33:49 pm »
endian custom kernel howto (used for hyper-v but could be used for anything else where you need to recompile your linux kernel).
this will allow you to run the native hyper-v NIC instead of only the legacy network adapter in hyper-v. It also enables hyper-v guest support inside endian.
taken from vmware thread in the support forums and updated with hyper-v specific instructions.
Getting Started
Download the Endian 2.5.1 Source Code package, you only need the kernel source code (kernel-2.6.32.43-57.e43.src.rpm).
Extract kernel-2.6.32.43-57.e43.src.rpm from the downloaded source tgz and place it in your home directory.
You must have a valid Endian development account. If you don't have one, sort it out before you begin.
1. create a new vm in hyper-v. remove the default nic added to the vm and replace it with 2 legacy nic's - these will be your green & red zone's.
2. install endian 2.5.1 from .iso.
3. do basic install & config of efw with ip addresses & zones. make sure your internet access is working as normal (albeit with the legacy nic @ 100mbit).
4. enable ssh via gui.
get these files and upload them to your endian fw -
from updates.endian.org/2.5.1/pool/ (login/password = your@email.com:community)
10/09/2013 09:57 PM 2,152,258 binutils-2.15.92.0.2-25.endian2.i586.rpm
10/09/2013 09:57 PM 2,166,244 cpp-3.4.6-10.endian8.i586.rpm
10/09/2013 09:57 PM 4,683,037 gcc-3.4.6-10.endian8.i586.rpm
10/09/2013 09:57 PM 2,945,712 gcc-c++-3.4.6-10.endian8.i586.rpm
10/09/2013 09:57 PM 5,200,313 gcc4-4.1.2-14.endian1.i586.rpm
10/09/2013 09:57 PM 3,601,569 gcc4-c++-4.1.2-14.endian1.i586.rpm
10/09/2013 09:57 PM 603,154 glibc-headers-2.3.4-2.41.endian9.i386.rpm
10/09/2013 09:57 PM 751,632 kernel-headers-2.6.32.43-57.e43.i686.rpm
10/09/2013 09:57 PM 82,417 libgomp-4.1.2-14.endian1.i586.rpm
10/09/2013 09:57 PM 82,035 m4-1.4.3-0.endian0.i386.rpm
10/09/2013 09:57 PM 471,047 make-3.81-3.endian0.i586.rpm
10/09/2013 09:57 PM 52,114 patch-2.5.4-20.endian0.i586.rpm
10/09/2013 09:57 PM 301,456 rpm-build-4.4.2.3-9.endian8.i586.rpm
from the endian srpm package - sourceforge.net/projects/efw/files/Development/EFW-2.5.1/
20/08/2013 05:03 AM 65,871,281 kernel-2.6.32.43-57.e50.src.rpm
others (you need to find these elsewhere)
curl -O autoinstall.plesk.com/PSA_9.2.2/update-rpm-RedHat-el4-i386/glibc-devel-2.3.4-2.41.i386.rpm
curl -O vault.centos.org/4.6/apt/i386/RPMS.os/ncurses-devel-5.4-15.el4.i386.rpm
10/09/2013 09:57 PM 2,022,441 glibc-devel-2.3.4-2.41.i386.rpm
10/09/2013 09:57 PM 1,494,717 ncurses-devel-5.4-15.el4.i386.rpm
from sourceforge.net/projects/addonsefw/files/PACOTES-EXTRAS/efw-rpms-compilacao/efw-pacotes-compiladores.rar/download
10/09/2013 09:57 PM 9,156,156 libstdc++-devel-3.4.6-10.endian8.i586.rpm
whichever kernel you want from kernel.org (i used 3.11.6 - the hyper-v support seems in this one).
kernel.org/pub/linux/kernel/v3.0/
6. create /usr/src/redhat structure
mkdir -p /usr/src/redhat/SOURCES
mkdir -p /usr/src/redhat/BUILD
mkdir -p /usr/src/redhat/RPMS/i386
mkdir -p /usr/src/redhat/SRPMS/
7. rpm -ivh --nodeps *.rpm
8. set gcc4 as your compiler
cd /usr/bin/
mv gcc gcc3
ln -s gcc4 gcc
9. prepare kernel source tree (to get .config file).
cd /usr/src/redhat/SPECS/
rpmbuild -bp --target=$(uname -m) kernel.spec
ln -s /usr/src/redhat/BUILD/kernel-2.6.32/linux-2.6.32.i686 /usr/src/linux
10. untar your new kernel source
cd /usr/src
tar -zxf ~/kernel/linux-3.11.6.tar.gz
11. copy your .config file from /usr/src/linux to /usr/src/linux-3.11.6 folder.
eg cp /usr/src/linux/.config /usr/src/linux-3.11.6/.config
12. add various flags for hyper-v support.
added guest support (you can go through and add these through make menuconfig but you can just add these to your .config file - note these are for 3.11.6 - if you use a different kernel these might be different).
CONFIG_HYPERVISOR_GUEST=y
CONFIG_HYPERV_STORAGE=y (optional).
CONFIG_HYPERV_NET=y
CONFIG_HID_HYPERV_MOUSE=y
CONFIG_HYPERV=y
CONFIG_HYPERV_UTILS=y
CONFIG_HYPERV_BALLOON=y
you can also add this one but video was not right when it booted. didnt look at it too much.
CONFIG_FB_HYPERV=y
13. compile your kernel -
make -j4 all ; make modules_install ; make install
at this point, check your /boot/grub/grub.conf and check to see if your new kernel will the default one. If it is you can shutdown your endian firewall and then remove the two legacy network adapters and replace them with the hyper-v native ones.
reboot and then check dmesg for the correct hyper-v related entries. note you might need to rerun the endian first time setup at this point to reset your network config. (or factory reset it)
then, lastly, efw-upgrade -s to upgrade your endian to either 2.5.2 or 3.0 beta. 2.5.2 worked fine (i needed to reset the boot order in /boot/grub/grub.conf) but i don't know if it will work with 3.0 beta.
Logged
marceloleaes
Jr. Member
Offline
Posts: 2
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #1 on:
Thursday 07 August 2014, 04:17:24 am »
Good afternoon
you can provide the rpm of this kernel that you compiled?
Logged
Timmeh
Full Member
Offline
Posts: 34
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #2 on:
Tuesday 30 December 2014, 11:25:50 am »
Thank you for the information.
I have successfully followed you guide and now running the Hyper-V integration within endian 2.5.1
Next steps will be to upgrade kernel to higher than 3.11.6 as suggested in your guide.
Also to upgrade to version 3 of endian, although the last time I did that I lost all red connectivity.
When I get it all working I will upload the vhd for people to download.
Cheers
Logged
giroinformatico
Jr. Member
Offline
Posts: 3
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #3 on:
Tuesday 06 January 2015, 04:07:51 am »
Hello!
Is this guide Applicable for Endian 3.0?
Logged
Timmeh
Full Member
Offline
Posts: 34
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #4 on:
Thursday 08 January 2015, 03:39:07 am »
I followed the guide on 2.5.1 - upgrading the kernel and finally upgrading endian to version 3
Logged
nacionalinfo
Jr. Member
Offline
Posts: 2
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #5 on:
Tuesday 03 May 2016, 12:46:06 am »
Good morning Timmeh . I'm trying to make a Endian 2.5.1 work with Hyper-V , but it is not easy. Next step by step you published , I had some difficulties, but I resolved most of them. Finally , I stopped in step 9 and have the attachment error.
Another question is the .config file, it will be generated after a command ? because I did not find and did not see you report it in previous steps .
I thank the help .
Logged
nacionalinfo
Jr. Member
Offline
Posts: 2
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #6 on:
Tuesday 03 May 2016, 01:57:55 am »
Good morning Timmeh . I'm trying to make a Endian 2.5.1 work with Hyper-V , but it is not easy. Next step by step you published , I had some difficulties, but I resolved most of them. Finally , I stopped in step 9 and have the attachment error.
Another question is the .config file, it will be generated after a command ? because I did not find and did not see you report it in previous steps .
Error in step 9:
Building target platforms: i686
Building for target i686
sh: line 0: test: too many arguments
sh: line 0: test: too many arguments
error: Failed build dependencies:
patch >= 2.5.4 is needed by kernel-2.6.32.43-57.e43.i686
m4 is needed by kernel-2.6.32.43-57.e43.i686
make >= 3.78 is needed by kernel-2.6.32.43-57.e43.i686
gcc >= 3.4.2 is needed by kernel-2.6.32.43-57.e43.i686
I thank the help .
Logged
Timmeh
Full Member
Offline
Posts: 34
Re: Endian EFW 2.5.1 hyper-v support + Custom Kernel Guide
«
Reply #7 on:
Thursday 07 July 2016, 08:17:07 am »
Download the VHD in this post:
http://www.efwsupport.com/index.php/topic,4219.0.html
I did not create the kernel rebuild guide but I did create the above post ^^^
Quote from: nacionalinfo on Tuesday 03 May 2016, 01:57:55 am
Good morning Timmeh . I'm trying to make a Endian 2.5.1 work with Hyper-V , but it is not easy. Next step by step you published , I had some difficulties, but I resolved most of them. Finally , I stopped in step 9 and have the attachment error.
Another question is the .config file, it will be generated after a command ? because I did not find and did not see you report it in previous steps .
Error in step 9:
Building target platforms: i686
Building for target i686
sh: line 0: test: too many arguments
sh: line 0: test: too many arguments
error: Failed build dependencies:
patch >= 2.5.4 is needed by kernel-2.6.32.43-57.e43.i686
m4 is needed by kernel-2.6.32.43-57.e43.i686
make >= 3.78 is needed by kernel-2.6.32.43-57.e43.i686
gcc >= 3.4.2 is needed by kernel-2.6.32.43-57.e43.i686
I thank the help .
Logged
inimennast
Jr. Member
Offline
Gender:
Posts: 4
Endian EFW 2 5 1 hyper v support Custom Kernel Guide
«
Reply #8 on:
Friday 08 September 2017, 12:16:08 am »
Hi
thanks to nice advice but when run my update virtuemart lost any data possible??
thanks
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Project News
=> Latest News and Updates
-----------------------------
Support
-----------------------------
=> General Support
=> Installation Support
=> EFW SMTP, HTTP, SIP, FTP Proxy Support
=> VPN Support
=> Hardware Support
-----------------------------
Development
-----------------------------
=> EFW Wishlist
=> Contribute Your Customisations & Modifications
Page created in 0.125 seconds with 18 queries.
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
Design by
7dana.com