Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi friends its been long since i came back here...but now i missed u all and so i am posting another query
I am using win XP as host and ubuntu 9.10 as guest
i am running a PCMCIA card and a ethernet cable on win XP
i need both them on virtual box from where i can do an ip forward from one adapter to the other..
its mainly i want to go in for a router using virtual box so that all data is routed via virtual box and not via the host os which is XP in my case..
router laptop has ethernet connection in the address range of 10.22.xx.xx subnet 255.255.0.0 and
pcmcia network card wireless supporting 802.16 with ip range of 192.168.xx.xxx subnet 255.255.0.0
i want to make the 192 network talk to 10 network using virtual box as a router...no involvement of win XP
the pcmcia card has its own dhcp server and is capable of supporting a mesh architecture....
the host has the driver enabled for the card and hence card works fine on the host
pcmcia card and ethernet card are connected in a bridged mode to the virtualbox.....
i disabled the tcp/ip on the host in the case of pcmcia card..
in the guest pcmcia is not getting any ip address..whereas ethernet is getting some address but i am unable to access the internet from the guest ...the internet is connected via ethernet cable on the host......
subsequently i managed eth4(pcmcia) and eth5(cable) in bridged mode and i also enabled ip fwd =1
here is my routing table
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.22.0.0 * 255.255.0.0 U 0 0 0 eth5
link-local * 255.255.0.0 U 1000 0 0 eth4
192.168.0.0 10.22.1.1 255.255.0.0 UG 0 0 0 eth5
192.168.0.0 192.168.5.34 255.255.0.0 UG 0 0 0 eth4
192.168.0.0 * 255.255.0.0 U 0 0 0 eth4
default 10.22.1.1 0.0.0.0 UG 100 0 0 eth5
the clients on 192 network still cant access internet..
they cant ping the static ip of the card
they can ping the inbuilt dhcp server ip of this card..
gateway address is the address of the ethernet cable which is eth5 on virtual box
scenario is that i have 2 machines one virtual box and the other windows
the virtual box has 2 bridged adapters one is a cable and the other is a pcmcia card. pcmcia card is used to connect to the windows machine which is also having a pcmcia card..both cards have been given static ip addresses
these cards have inbuilt dhcp server with ip address
the windows machine is able to ping the virtual box dhcp server address inbuilt in the card but cannot ping the ip address..however when virtual box tries to ping windows dhcp ip address it returns destination unreachable
when i added a unicast entry in the routing table i got this error for the same ping from vb to windows
Code:
connect: Network is unreachable
when i tried to bring my windows machine in the VB then also it was unable to ping the ip it was pinging earlier and also behaved in the same manner as the VB
please someone any suggestions
When running a virtual machine, host and guest communicate using NAT. When your on the guest machine, it doesn't know about the host ip. I remember reading the Virtual Box manual about it.
The Virtual Box manuals have secret commands and you just have to search the manual. Its all NAT when dealing with host and guest communications. Oh, don't forget about ports.
The physical router has something to do with ports too. If I get this right, your trying to get two guest machines to communicate with each other. NAT and ports may be it.
Oh, don't forget to check your firewall as well.
Last edited by kuyalfinator; 03-02-2011 at 08:13 AM.
Reason: NATs, Ports, Firewall
I cannot guarantee this will work, using a type 1 virtualization solution like XEN that can do PCI passthrough would be better as you could give full control of the PCMCIA card to the VM, but I digress.
First put both virtual network adapters in the VM in bridged mode, do this in the virtual machine properties while the machine is turned off. Select one virtual adapter bridged to the built in network device and the second one to the PCMCIA wireless card.
This will pull an address from DHCP on the 10 network (if it's setup that way, otherwise you will need to set up static settings) On the wireless adapter the VM won't see it as a wireless adapter, so you will need to set up the ad hoc network broadcast in Windows. Theoretically this will work. I have bridged put a VB VM in bridged mode to a wireless card before but never trying to broadcast it as an AP but to be used as a client. I authenticated to the AP in the host and even though the host didn't pull an address I could pull on in the VM. I don't think this will work because Linux really needs control of the wireless adapter to put it in master mode which is what allows it to be used as an AP or wireless router. As another side note not all wireless adapters can be put in "Master Mode" and depending on the driver the card may support it, but the driver doesn't
You must tell the virtual machine to open ports to communicate with the host and other systems that is seperate from the host.
please amplify
scheidel i am using it in bridged mode and ip is set to static and from there the issues are of communication from vb to winxp which is not on the same machine but on a different machine which is totally a different set of hardware
Can you ping out from the VM to the 192 network? It seems like it is either not bridging properly or perhaps the DHCP server on the card is screwing things up. Can you tell us hat card it is model, brand etc...
scheidel i am using it in bridged mode and ip is set to static and from there the issues are of communication from vb to winxp which is not on the same machine but on a different machine which is totally a different set of hardware
Check the Sun Virtual Box manual under the docs directory of your virtual box installatin. Its titled "Virtual Network - Network Address Translation (NAT)" You are going to do a port forwarding going through NAT. You are going to specify what the guest port will using and match it with what the host port will communicate with. The example they provide is as follows:
What I did to save myself retyping it is place the command in a batch file and would call it the service I am using following the guest and host ports. So, for example, this is the SSH_GuestPort_HostPort = SSH_port22_port222.
Last edited by kuyalfinator; 03-02-2011 at 10:52 PM.
Reason: Added example code from Sun Virtual Box Manual and batch file naming example
r perhaps the DHCP server on the card is screwing things up.
I agree here...but once i have provided static ip is the DHCP server still screwing?
Quote:
Check the Sun Virtual Box manual under the docs directory of your virtual box installatin. Its titled "Virtual Network - Network Address Translation (NAT)" You are going to do a port forwarding going through NAT. You are going to specify what the guest port will using and match it with what the host port will communicate with. The example they provide is as follows:
thanks today i will test this i suppose...however i am in a bridged mode and not NAT mode
Did you check if the router your using isn't blocking NAT?
this is a nice suggestion..router i am assuming ur referring to the router on the virtual machine..the interfaces on the virtual maachine are in bridged mode..now where do i check for the NAT? secondly the iptables rules are also in place..thirdly i am only using the virtual machine tcp/ip stack as i have disabled the tcp/ip on the host
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.