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.
A picture speaks a 1000 words so here is my picture of what I am trying to achieve, Is it possible ? See attached picture.
I am able to ping my Guest's Hostonly adapter IP address when my host Ubuntu does not have a IP to it, however when I try to give it an IP using DHCP I lose the ability to ping my VirtualBox guest's hostonly IP address.
When host ubuntu does not have IP
bala@bala-laptop:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:12:de:cd:b0:af
inet6 addr: fe80::bbbb:aaaa:fe18:a94f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151981 errors:0 dropped:0 overruns:0 frame:0
TX packets:110240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192523623 (192.5 MB) TX bytes:13485268 (13.4 MB)
Interrupt:16
bala@bala-laptop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.56.0 * 255.255.255.0 U 0 0 0 vboxnet0
bala@bala-laptop:~$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101) 56(84) bytes of data.
64 bytes from 192.168.56.101: icmp_seq=6 ttl=64 time=11.1 ms
64 bytes from 192.168.56.101: icmp_seq=7 ttl=64 time=0.716 ms
64 bytes from 192.168.56.101: icmp_seq=8 ttl=64 time=0.661 ms
64 bytes from 192.168.56.101: icmp_seq=9 ttl=64 time=0.759 ms
64 bytes from 192.168.56.101: icmp_seq=10 ttl=64 time=0.617 ms
When host ubuntu does have IP
bala@bala-laptop:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:12:de:cd:b0:af
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bbbb:aaaa:fe18:a94f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151948 errors:0 dropped:0 overruns:0 frame:0
TX packets:110207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192517638 (192.5 MB) TX bytes:13479549 (13.4 MB)
Interrupt:16
bala@bala-laptop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
192.168.56.0 * 255.255.255.0 U 0 0 0 vboxnet0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
bala@bala-laptop:~$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
Is there any way by which I can get an IP to my host interface and still be able to ping my Guest OS's host only interface?
I have shown my problem in video format for better understanding. I don't see a way to attach an AVI file so giving the link here. I hope it does not violate the forum rules, if it does let me know I will remove it immediately.
Disabled Firestarter on base OS it fixed the issue. However I don't want my firewall to be completely down, I tried adding 192.168.56.0/24 to the allowed list. Still I am unable to ping. Any pointers as to what I should do ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.