OpenWrt Forum Archive

Topic: [howto] Running Kamikaze (x86-2.6) on VMware

The content of this topic has been archived between 16 Apr 2018 and 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

You are missing reading http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo - especially the part that tells you to use qemu-img to convert the bootable image into VMware format. The OpenWrt build system can't build VMware images by itself.

No, I didn't miss that. You first have to compile the image. When I run make menuconfig a target profile for vmware isn't listed.

From the wiki:
After applying the patches run 'make menuconfig' and select:
Target System (x86 [2.6])
Target Profile (VMware image)

I'm using the Kamikaze trunk for the svn and only "Generic & Soecris" are listed as target profiles.

Rob

I don't know what "the patches" are, but I'd guess somebody made some patches to the build system so that a vmware target profile would be provided. The wiki is clearly not up to date, it mentions 7.06 for example.

If I were you, I'd just build the Generic target - or just download a ready-made binary for 7.09 - and use qemu-img yourself to convert it.

Thanks for the help candlerb,

I'll give the generic target a shot. With VMWare being such a sweet system it would be great if the openwrt developers could add it as a build target.

Rob

I built a generic x86 image and followed the directions on the wiki, but when booting in the vmware player I get these error messages:

Warning: unable to open an initial console
Failed to execute /etc/preinit
Kernal panic: No init found

Any suggestions for a fix.

Rob

Hello everyone,

I followed instructions on http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo and was able to boot OpenWrt in VMware. But I cannot find any network interfaces ("ifconfig -a" only shows "lo0").

Does anyone have any hints on how to configure network interfaces for OpenWrt in VMware?

Thanks,
Ron

Do you have the kmod-e1000 package included in your image?

Ah, thanks for the hint. That helped!

Ron

pier11 wrote:

hi nightingale,
I shared my experience with original compiled VMWare image as mentioned in Wiki:
http://www2.informatik.hu-berlin.de/~na … config.zip

Many thanks!!!
At me it has not turned out building opemwrt for vmware :-(
Describe in detail process building, please
(forgive for bad english)

hi georglk,

Have you tried to build your own image with generic x-86 platform ?

Don't forget to add network support for e1000 (it is required for vmware).

I personally was successful in creating an openwrt for vmware.

Here are the steps I followed :

1- install a development environment to compile kamikaze:
              http://forum.openwrt.org/viewtopic.php?id=8410 explains how to do it for whiterussian but you can adapt it to kamikaze.

2- compile a generic x-86 image with e1000 network support.

3- follow http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo
              - to create the vmdk file
              - to create the vmx file

4- copy the two files to your VMware environment and open them as an existing Virtual-Machine

That did it.

(Last edited by slash on 3 Jan 2008, 15:26)

Is there a ready build Kamikaze 7.09 for VMWare out there?

I can`t get the image on WIKI get run http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo

Maybe someone can build a new working one?
Would need a *.vmdk and a *.vmx

It would be great if it would be a fully working build with WebInterface 2 and all other tools like vpn, torrent,...

Greet`s Erich

eriche wrote:

Is there a ready build Kamikaze 7.09 for VMWare out there?

I can`t get the image on WIKI get run http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo

Maybe someone can build a new working one?
Would need a *.vmdk and a *.vmx

It would be great if it would be a fully working build with WebInterface 2 and all other tools like vpn, torrent,...

Greet`s Erich

This would be nice.

The wiki says:

After applying the patches run 'make menuconfig' and select:

    * Target System (x86 [2.6])
    * Target Profile (VMware image)

I don't have VMware image Target Profile. What are the patches I have to apply ?

Thanks.

(Last edited by Tex-Twil on 28 Jan 2008, 22:18)

I've tested the "ESX Method" and recognized the following:

You also have to add (in target/linux/x86-2.6/config/default)
CONFIG_BLK_DEV_SD=y
And for support of the LSI controller:
CONFIG_FUSION=y
CONFIG_FUSION_SPI=y

The "missing" VMWare Target Profile is not needed, Generic works fine.

You also have to add (in target/linux/x86-2.6/config/default)
CONFIG_BLK_DEV_SD=y
And for support of the LSI controller:
CONFIG_FUSION=y
CONFIG_FUSION_SPI=y

I have no glue what you are talking about?

Just wanna get an VMWare Image I can add to my VMWare and press play to let it run smile
All the other stuff is too eXtreme for me!

Greet`s erich

PLEASE CAN ANYBODY POST HIS RUNNING VMWARE IMAGE with newest Kamikaze Version

up!

I realy would love to test OpenWRT first in VMWare before flashing smile

Greet`s Erich

Hello,
I will compile a vmware version of openwrt and give you the vm machine.
Tex

1000 Thanx man smile
hope you can do this before the weekend ;P

Greet`s erich

The very best thing would be if you document your steps - then I would be able to do this too ^^

Ok,
I have a vmware image with kamikaze and webif² on it. I actually followed the steps described on the wiki : http://wiki.openwrt.org/RunningKamikazeOnVMwareHowTo to build it. I used the provided VM config file.

Anyway, you can download it from here http://www.megaupload.com/?d=0AFC10MA
If it works fine, maybe someone could host it on a server instead of using the megaupload.

Btw, the password for root is toor

Tex

(Last edited by Tex-Twil on 29 Feb 2008, 14:23)

Tex-Twil many ThanX tongue

I changed the IP-Adress of the Router in the VMWare 192.168.1.1 isn`t a good idea wink

Webinterface works fine - B U T
I can not TELNET the OpenWRT Router in the VMWare sad

How did u manage to access it with command shell?

GreeT`s Erich

You are damn good my friend smile

Maybe you also can help me with my NFS-Server Problem wink

http://forum.openwrt.org/viewtopic.php?id=14713

BusyBox v1.4.2 (2008-02-29 13:21:38 CET) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (7.06) -----------------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:~# ls
TZ                log               resolv.conf.auto  usr
dhcp.leases       preinit.log       run
lock              resolv.conf       spool
root@OpenWrt:~#

hi all
is it possible to secure console with something more the just pressing enter to login?

type
passwd root

then you enter 2 times the new password smile

GreeT`s Erich

sioux wrote:

hi all
is it possible to secure console with something more the just pressing enter to login?

You would have to install a getty.

When you compile Kamikaze, during the "make menuconfig" step, go to "Base system", highlight busybox and press Enter.  Go to "Configuration", then "Login/Password Management Utilities" and select "getty" and "login".

NB!:
1.) I have not tried this.
2.) There is already a /bin/login included with OpenWrt.  This is a shell script that prints the message to tell you to set the passwd when you telnet in for the first time after flashing.  I haven't checked where this comes from and I don't know if replacing it with the busybox /bin/login will cause trouble.

sioux wrote:

hi all
is it possible to secure console with something more the just pressing enter to login?

What do you mean exactly ? I don't really understand. Don't forget that if you run openwrt on a ream hardware, there is no "screen". The only way to log in to it is ssh, telnet .. where you have a password.

Tex