jadoba on 24 Mar 2007 00:47:46 -0000 |
I just finished installing and testing a VMware image with two nics on the host bridged to two virtual nics in the guest. I am using vmware server (newest version). the host is debian etch and the guest is sarge. The host's eth0 is hooked into my d-link router (only temporarily) which is connected to the Internet. eth1 is hooked into a switch, which also has another machine connected to it. eth0 on the host is bridged to /dev/vmnet0 and eth1 is bridged to /dev/vmnet2 (i did this when I ran vmware-config.pl after installing vmware server) Before installing sarge, I opened up Virtual Machine Settings in vmware server and set "Ethernet 1" to custom, pointed it to /dev/vmnet0 and set "Ethernet 2" to custom, pointing it to /dev/vmnet2 After installing sarge, editing /etc/network/interfaces to my liking and running an appropriate iptables shell script, the virtual machine is now a NAT router. I am successfully sending this message from the other machine hooked into eth1 through the switch. In my virtual machine's .vmx I see these four lines: Ethernet0.connectionType = "custom" Ethernet0.vmnet = "/dev/vmnet0" Ethernet1.connectionType = "custom" Ethernet1.vmnet = "/dev/vmnet2" Also, in case you're wondering, I plan on plugging eth0 directly into my cable modem and setting this up as a router appliance. HTH (if not, my guess is you probably have a routing issue) -jim > Date: Fri, 23 Mar 2007 11:59:16 -0400 > From: "Lee Fisher" > Subject: Re: [PLUG] Debian Virtual Machine with dual NICs? > To: "Philadelphia Linux User's Group Discussion List" > > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I am also running under VMWare. > Lee > > > On 3/23/07, K.S. Bhaskar wrote: > > > > A virtual machine under VMware, QEMU, or ...? It probably makes a > > difference. > > > > I have had little success creating virtual machines with VMware that > > have two NICs. So, I'll be watching responses. > > > > -- Bhaskar > > > > On 3/23/07, Lee Fisher wrote: > > > Has anyone done anything with running Debian as a virtual machine > with > > Dual > > > NICs? > > > > > > We have a machine running redhat which has multiple network cards. > Both > > > cards are working fine on that machine. On that machine we are > running > > a > > > virtual machine with Debian. On that machine we also want it to have > > too > > > network interfaces, an internal interface and an external one > going to > > our > > > DMZ. So far we've gotten the internal one to work, but aren't > able to > > > access anything or even visibly see an IP address for the other > > NIC. Let me > > > know if you have any ideas of what to look at to analyze this. > > > Thanks, > > > Lee ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|