no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | virtualbox [2015/12/09 20:45] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VirtualBox ====== | ||
+ | * [[Gentoo]] | ||
+ | * [[Networking]] | ||
+ | * [[VBoxManage]] | ||
+ | |||
+ | ==== Shortcuts ==== | ||
+ | |||
+ | ** Switch to/from scale mode: ** | ||
+ | |||
+ | < | ||
+ | <Host Key> + c | ||
+ | </ | ||
+ | |||
+ | ==== Networking ==== | ||
+ | |||
+ | Setting up a bridged apater is simplest if you can directly get an IP address from your current network' | ||
+ | |||
+ | However, if you want / need to only have the server accessible locally, you can setup a NAT and then give it a local IP address that you can remote into from there. | ||
+ | |||
+ | First, you'll need to setup the Virtual Box local network. This is done in '' | ||
+ | |||
+ | In the individual Virtual Box server, go to '' | ||
+ | |||
+ | For '' | ||
+ | |||
+ | 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: | ||
+ | |||
+ | < | ||
+ | ifconfig vboxnet0 | ||
+ | </ | ||
+ | |||
+ | 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 '' | ||
+ | |||
+ | < | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.56.10 | ||
+ | netmask 255.255.255.0 | ||
+ | </ | ||
+ | |||
+ | Also, an example for '' | ||
+ | |||
+ | < | ||
+ | config_enp0s8=" | ||
+ | </ | ||
+ | ==== Gentoo ==== | ||
+ | |||
+ | Install the '' | ||
+ | |||
+ | < | ||
+ | modules=" | ||
+ | </ | ||
+ | |||
+ | Load the new modules: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Setup the network address manually for the local vboxnet0 network. | ||
+ | |||
+ | Add to ''/ | ||
+ | |||
+ | < | ||
+ | config_enp0s8=" | ||
+ | </ |