You are here
Submitted by syaman on Tue, 2009/07/07 - 15:47
Hello all
I've installed a Turnkey LAMP Appliance into a VMWare Fusion virtual machine (VM) and it works great.
However, when I copy it to another computer (with the same version of VMWare Fusion installed) in the same local network and launch the VM, the Turnkey appliance is not able to obtain an IP address via DHCP.
I tried to set the static IP address manually, but it also would not save.
What do I need to do to resolve this?
Thanks in advance
Forum:
more information
Just to add a bit more detail, it seems that that no network interface can be found.
When I key in
# ifconfig eth0
I get the output
# eth0: error fetching interface information: Device not found
How can I "force" the appliance to re-detect and reconfigure the network interface? Thank you
The solution
After googling around in various forums, I've pieced together the solution.
Hope this is useful for whomever is configuring and re-deploying Turnkey Linux in Virtual Machines.
--
Important: You must log in to the console / terminal as root or as a sudo user.
If you are in Turnkey Linux Configuration Console, you need to Quit it first.
1. Open the following file in nano
2. You will see lines that look like the following. There may be more than 1 set. Delete them all to remove existing network interface mappings.
# PCI device xxxxxxxxxxx (modulename)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0"
3. Restart udev to make the changes come into effect
4. Open the previous file again
5. You should see a new set of lines for network interface mappings. Do these 2 things
a) take note of the module name at the end of the line that starts with PCI device
e.g. PCI device 0x1022:0x2000 (pcnet32)
b) scroll to the end of the line that starts with SUBSYSTEM
Make sure it reads NAME="eth0" (and NOT eth3 or any other number)
6. Now we load and reload the module. In this example, pcnet32 is the module name (use the name of the module you noted in Step 5a)
7. Ok reboot and you're good to go!
Thanks!
Thanks for diagnosing the issue, I'm sure it will help others with similar problems.
Doc: Virtualization networking issues
We have fixed this issue in all VM builds, and have documented the issue in Virtualization networking issues (udev persistent net generation), linking to this post as well.
Your post fell through the gaps...
Anyway, it took a while to replicate the described issue, figure out what was causing it and how to solve it. The fix is described here, and you should be able fix networking in your VM in a snap.
We have patched all VM builds and re-uploaded.
Thanks for bearing with our first batch of VM builds, and helping to identify issues.
Add new comment