Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualbox [2015/07/28 11:05] steve |
virtualbox [2015/12/09 13:45] steve |
||
---|---|---|---|
Line 27: | Line 27: | ||
Once the server is started, send a DHCP request for the second Ethernet device, and it will give a local IP address (fex: 192.168.56.101) that you can use to remote into the guest directly from your host box. | Once the server is started, send a DHCP request for the second Ethernet device, and it will give a local IP address (fex: 192.168.56.101) that you can use to remote into the guest directly from your host box. | ||
+ | Get the IP address for your Local Network on the host: | ||
+ | |||
+ | <code> | ||
+ | ifconfig vboxnet0 | ||
+ | </code> | ||
+ | |||
+ | This will give the IP address (should end with .1), the broadcast and netmask as well. On the guest, set the configuration for the local network IP address to something in that same subdomain, and you should be able to log in just fine. | ||
+ | |||
+ | Here's an example on Ubuntu for ''eth1'' in ''/etc/network/interfaces'': | ||
+ | |||
+ | <code> | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.56.10 | ||
+ | netmask 255.255.255.0 | ||
+ | </code> | ||
+ | |||
+ | Also, an example for ''enp0s8'' in ''/etc/conf.d/net'': | ||
+ | |||
+ | <code> | ||
+ | config_enp0s8="192.168.56.20 netmask 255.255.255.0" | ||
+ | </code> | ||
==== Gentoo ==== | ==== Gentoo ==== | ||
Line 39: | Line 61: | ||
<code> | <code> | ||
/etc/init.d/modules restart | /etc/init.d/modules restart | ||
+ | </code> | ||
+ | |||
+ | Setup the network address manually for the local vboxnet0 network. | ||
+ | |||
+ | Add to ''/etc/conf.d/net'': | ||
+ | |||
+ | <code> | ||
+ | config_enp0s8="192.168.56.2 netmask 255.255.255.0" | ||
</code> | </code> |