This took me a while to figure out, so I decided to write this post to share it with the world.
Since VirtualBox gives you the ability to attach a virtual ethernet adapter on Host to one of the ethernet adapters on the guest machine, it means that these two interfaces have a direct connection to each other. In other words, it's like plugging a crossover ethernet cable between 2 computers. All you have to do is statically assign IP address to each machine and it will work.
In summary, in your guest settings, create a new adapter and attached it to "Host Interface", then select the host interface you want to attach to. If you do not have any, you can add one through the interface. So it should look like the image below
Then start the virtual machine, if running Linux use
ifconfig eth1 192.168.1.2 netmask 255.255.255.0 up
for Windows use
netsh interface ip set address name="VirtualBox Host Interface 1" static 192.168.0.1 255.255.255.0
Once you have set static for both machines, you should be able to connect to your guest machine. Hope this helps.
I do not have the plus/minus icons in my window to add interfaces. I'm running version 2.1.0. You?
ReplyDeleteJJ
Thanks for the information. Do you set the same Satic IP on both machines? (Very new to this thanks for the help)
ReplyDeleteYes, you have to set static IP on both machines.
ReplyDeleteI was running an older viersion, I have not tried with newer version yet.
ReplyDeleteДля тех кто хочет дать рекламу в интернете или сделать продвижение своего сайта предлагаю
ReplyDeleteразместить Ваши рекламные объявления на разных сайтах:
- Рзместить вручную на 3тысячи интернет-досок 100$, после рассылки пришлю базу ссылок куда
разместил рекламу. Если требуется активировать по email это тоже делается.Размещаю в
соответствующие разделы с выбором на какой срок.
- Рзместить вручную на любых сайтах под заказ 100$ за 1000 отчет и базу предоставлю.
- Рзместить на сайтах с высоким тиц 100$ за сколько получится с 1 ПС базу предоставлю
- Разместить в автоматическом режиме на 20тыс.досок 100$ .Ссылок в Яндекс-каталоге появится
около 10тысяч это дополнительно дает посетителей из каталога Яндекс и по
большему количеству ключевых слов что дает еще больший эффект.
- Автоматическое размещение на 150тысяч форумов 50$
указаное Количество сайтов имеется в виду количество успешных регистраций, а не вся база.
e-mail: rew8@inbox.ru
Not the same IP, though. It needs to be unique in the network, so try changing just the last number.
ReplyDelete[...] TomWij Try a host-only connection: The fastest way to create a host-only network with virtualbox. July 16, 2010 12:49 pm steve.lippert You can install a Loopback adapter on the laptop [...]
ReplyDelete