My job is almost completely reliant upon my ability to perform work in lab of virtual machines. Almost every action plan I write is tested locally. When I need to troubleshoot an issue for a client one of the most common first steps I’ll perform is attempting to recreate the issue in a virtual environment so I can work on it there without the risk of impacting client data.
I believe that having a place to test and grow your skills is an absolute necessity for anyone working in the IT field today regardless of your specialization, even if you’re an IT generalist. But every now and then I hear about individuals who have issues with their virtual machines or with the virtual environment provided by their employer, so I figured this was a good time to share my method of creating a virtual lab. More specifically, one that allows you to do virtual work on a commodity laptop, one that won’t break down if you lose connectivity, one that won’t be interfered with if you connect to a restrictive VPN.
We’re going to build 2 CentOS 6 virtual machines on a virtual NAT network using Oracle VirtualBox. Before you begin, all you’re going to need is the installer for VirtualBox for your host machine and an ISO of CentOS 6 (64 bit).
The first thing we’re going to do once VirtualBox is installed is setup a NAT network. The most common application of NAT networking is likely the usage of home broadband internet ‘routers’. This takes the single IP you get from your ISP and allows multiple machines to interface with it.
We’re going to use this concept to build a NAT network in your virtual environment that your virtual machines will connect to. By internalizing the network structure I will be able to interact with my virtual machines and allow my virtual machines to interact with one another regardless of whether my PC is connected to a network or not. This can be really handy if you’re having a networking problem, if you’re traveling, or if you’re inheriting a restrictive networking policy from a client’s soft VPN connection, etc. Regardless of what happens, if you can turn on your machine you can work in your lab of virtual machines.
SETTING UP YOUR NAT NETWORK
For this tutorial I’ve installed VirtualBox version 5.0.4 on my local machine. A Nat Network is already setup by default, but you can verify this by going to File -> Preferences -> Network (on the left menu bar). On the Nat Networks tab you will likely see an network called ‘LocalNat’. You can click on the edit button (the little screwdriver icon) to see the network configuration. If you don’t have a Nat Network by default, create one by hitting the icon that looks like a network card with a ‘+’ symbol over it, then select it and click the edit button.
You will see the following options in the Nat Network Details window:
(Checkbox) Enable Network: Make sure this is checked.
Network Name: I’ve decided to stay with the name ‘LocalNat’.
Network CCIDR: This is the IP/Netmask of the Nat Network. For this tutorial I’ve chosen to stay with the default option of 10.0.2.0/24. For those of you unfamiliar with slash subnet notation, /24 translates to 255.255.255.0, or rather a class ‘C’ network. This means all devices (or in this case, virtual machines) that connect to this network must have an IP starting with 10.0.2.XX, but the XX can be anything you want it to be above the number 3. The reason for this the first IP (1) is reserved for the host resolution and the second IP (2) is reserved for the network gateway.
(Checkbox) Support DHCP: Leave this unchecked. We will be assigning static IPs.
(Checkbox) Support IPv6: Leave this unchecked. We only need Ipv4.
There will also be a button for port forwarding. We will come back to that later after our first virtual machine has been created. Keep clicking OK until you’re back to VM VirtualBox Manager, as any networking configuration changes you have made will not be applied until you have done so.
CREATING THE FIRST VIRTUAL MACHINE
The network is setup and we’re ready to create our first virtual machine! Click on new and this will take you to the ‘Create Virtual Machine’ window. The first option will be to name your virtual machine. In this case I am going to name my first virtual machine ‘CentVM1’ and, will use type ‘Linux’ and Version ‘Red Hat (64-Bit)’.
NOTE: Often I hear about people having issues with the 64-bit options not being available in the version menu. If you only see 32 bit versions, learn how to enable the 64 bit options.
The next option will be to set the amount of memory that your virtual machine will use. Bare in mind that the amount of virtual memory you set will be used on your local machine whenever the virtual machine is turned on. For this tutorial I have set the memory to 1024MB (1G), meaning whenever the virtual machine is on, 1G of memory will be used on the local machine to support it.
The next step will give you the option to create a virtual hard disk for your virtual machine. Select ‘create a virtual hard disk now’ and click ‘create’.
The next option will allow you to select a hard disk type. In this example I will use a VDI (VirtualBox Disk Image).
The next option will allow you to choose whether you want the virtual hard disk to be dynamically allocated or a fixed size.
Dynamically allocated means that the file on your machine that represents the virtual hard disk will start at a small size, but will grow as needed until it meets the cap designated by the size of the drive. For example, if you specify for the drive to be 20G in size it will appear as 20G in the virtual machine, but the file that represents this on your host machine will be much smaller until the disk space is actually used. The advantage to this is that you save space initially until you actually use the hard disk space in the virtual machine. The downside to this is if you need to use more space, you may incur I/O overhead to allow your host machine to expand the size of the file on demand. The file can also easily become fragmented and distributed on the physical drive platter.
Fixed size is just what it sounds like. If you specify that the virtual machine is going to have a 20G hard disk, a 20G file is going to be created on the host machine and will likely not experience any expansion beyond that. The downside is that the file that represents the disk on your host machine will be 20G regardless of how much of the disk is actually being used. The upside is that you don’t have to worry about losing track of how much your virtual machine disk files may expand.
In this case I find dynamic allocation to be acceptable as I’m only going to use this VM for testing and development. However, you can use whichever you feel comfortable with using.
The next option allows you to set the size of the virtual hard disk. For a MySQL lab virtual machine I would recommend no less than 10G. In this case, I’m going to use 20G in case I need the extra space.
After clicking ‘create’ you will be brought back to the VM VirtualBox Manager. You will see the VM you just created, but we can’t start it up just yet! We need to attach it to the Nat Network we setup earlier and we need to load the CentOS 6 ISO. Right click on your new virtual machine (CentosVM1) and click Settings.
In the settings window for you virtual machine, click ‘Storage’ on the left menu, in the storage tree section click the ’empty’ CD-ROM designation under the IDE controller, and then to the right click in the attributes section click on the icon that looks like a CD next to the optical drive drop down menu. Then click ‘Choose Virtual Optical Disk File’
Browse to and select the CentOS 6 iso. When you return to the Virtual machines setting window you will see that the iso has been loaded into the virtual optical drive on the IDE controller.
Next, on the left menu section, click ‘Network’. Here you will see that you have a network adapter that is enabled and is attached to NAT by default. Use the ‘Attached to’ drop down menu and select ‘Nat Network’, then on the ‘Name’ drop down menu, select the Nat Network we created earlier (LocalNat). This will attach this network controller to your Nat Network.
Click OK to go back to the VM VirtualBox Manager. We are now ready to start up the virtual machine! I know we said earlier we were going to create 2 virtual machines, but we’ll take care of the second one later using cloning. For now, select your first virtual machine (CentVM1) and click start.
Install OS / Configure networking
You should install CentOS as you normally would in any other circumstance. However, I would suggest that you consider a minimal installation when given the option of what installation you would like to use. You don’t know what you will or won’t have available to you on a client system, so I strongly prefer to have a virtual machine where I can’t assume anything and will need to install packages on an as needed basis. This will allow you to troubleshoot and be ready for issues you may face on a client system.
The only other thing to note is that during the installation I selected to use the hostname cent1.localhost.
Once the installation is complete we are going to have to use the virtualbox virtual machine terminal until we have connectivity established. We can start by setting up networking. You’ll notice that if you run ‘ifconfig’ there isn’t any network controllers enabled beyond the virtual machine’s loopback (127.0.0.1). Let’s enable the controller by editing it’s config file. You can edit the file with vi by using the following command:
> vi /etc/sysconfig/network-scripts/ifcfg-eth0
You will want the file to contain the following:
DEVICE="eth0" #this is the default, do not change
HWADDR="08:00:27:F6:B3:84" #this is going to be the mac address of the VM's network interface, do not change
NM_CONTROLLED="yes" #this is the default, do not change
ONBOOT="yes" #set to yes. This is what sets the network interface to start at boot
BOOTPROTO="none" #Since we are using a static IP, we don't want any boot networking protocol like dhcp or bootp to run
IPADDR=10.0.2.6 #The IP address of your virtual machine. I typically start my first machine with 6 and then move up from there. This is a matter of personal preference
NETMASK=255.255.255.0 #This netmask matches the /24 subnet notation we set for the Nat Network earlier
GATEWAY=10.0.2.2 #As stated earlier, VirtualBow reserves the .2 IP in the subnet for gateway
DNS1=8.8.8.8 #The DNS server you want to use. Personal preference.
Once you’re done modifying the configuration file for adapter eth0, you will want to restart networking with the following command:
> /etc/init.d/network restart
You should now see your static IP when running ifconfig and should be able to ping out.
Snapshots
At this point the machine is able to perform its basic functions. Note that you can’t SSH to the server yet, we’ll get to that. This is where you will want to put any finishing touches on the virtual machine and create your first snapshot. Before creating my first snapshot I will typically take the following steps.
- Stop iptables and remove it entirely from chkconfig so it doesn’t start at boot. This is the linux software firewall and hasn’t been needed for any work I’ve ever had to do in a lab. This is typically one of the big things that throws people off when they’re trying to establish inbound connectivity for the first time so I recommend disabling it.
- Disable SELINUX.
- Update the OS by running yum update.
Note that I did not install MySQL. The reason for this is I want a snapshot of just the operating system load and nothing else. I utilize snapshots a lot to quickly spin up different types of working environments and I find it’s easier to restore an OS load to create a new environment then to deal with uninstalling and reinstalling packages.
For example. If I have an Oracle MySQL 5.6 VM installed and I want to switch to Percona 5.6, I would stop the VM, take a snapshot of my Oracle load for future reference, restore the OS Load snapshot, start the VM, and now I have a freshly installed CentOS VM where I can install Percona 5.6 and then create a new snapshot for it. This way if I ever need to use Oracle or Percona I can just load the appropriate snapshot and start the VM. No need to have more than 1 VM unless you’re emulating a replication or clustering environment.
So now that we have our first VM configured. Let’s shut it down and snapshot it. Shutdown your VM using the following command.
> shutdown -h now
Once shut down, go back to the VM VirtualBox Manager. Click on your VM and then click on snapshots.
Right now the only thing that you should see is the current state. No other states have been saved at this point, so create a new snapshot by clicking the menu icon that looks like a camera. This will take you to the option to create a snapshot of your virtual machine. When naming your snapshot and creating the snapshot description BE DESCRIPTIVE. You are going to want to know what is the state of the snapshot without having to load it. Once done, click ok and you will see that the new snapshot is created.
Setting up port forwarding
The last thing you need to do for this VM is make it accessible. You’ll notice that if you try to SSH to the machine at 10.0.2.6 you’re not going to get very far. The reason for this is because that IP is sitting behind a NAT network, just like your machine does if you are using a router between yourself and your ISP. If your local machine on your local network is 192.168.1.20, no one outside your network is going to be able to ping your machine from the internet, they would have to connect to you using your public facing IP address with a port that you have designated to forward from your router to your local machine. Remember how we mentioned NAT Network port forwarding earlier? We’re going to configure that now.
Click on File -> Preferences -> Network (on the left menu bar), select your NAT network (LocalNat) and click the screwdriver icon to the right to edit like we did before when confirming the networking settings for the NAT network. This will bring you back to the NAT networking details window, click on the ‘port forwarding’ button.
You’ll need to setup a rule to forward a port on your local machine to the port of your virtual machine. In this example we’re going to setup an SSH port forward. We’ll use the following options…
Name: CentVM1SSH
Protocol: TCP
Host IP: <blank>
Host Port: 61022
Guest IP: 10.0.2.6
Guest Port: 22
What we have done is created a port forwarding rule called ‘CentVM1SSH’ that has stated that any inbound connectivity on port 61022 on your local machine should be forwarded to port 22 on the virtual machine we just created. Now we should be able to SSH from our local machine to our VM using 127.0.0.1:61022. Don’t forget to turn your virtual machine back on before you try this! Also, be sure that you have clicked okay on all preferences windows and are back to the VirtualBox VM Manager before attempting as new networking port forward rules will not be applied until you have done so.
Cool! As you can see from the example images above we can SSH directly to our VM using the ports we have forwarded.
Having 1 virtual machine is nice, but it’s not going to be enough. How often do you see single server solutions? We need another! However, I don’t want to go through all that configuration again, so let’s just clone this virtual machine. Make sure your first virtual machine is shut down and then follow these steps.
Cloning your virtual machine
In the VM VirtualBox Manager, right click on your first virtual machine and click on clone.
This will bring up the ‘Clone Virtual Machine’ window. Enter the name for your second virtual machine (CentVM2), MAKE SURE ‘Reinitialize the MAC address of all network cards’ IS CHECKED and then click next. If you do not reinitialize the MAC address, it means that the network card on your new virtual machine will have the same MAC address as the first one. This is bad.
The next options will be to either create a full clone or a linked clone. A linked clone is like a snapshot. I prefer to go with full clones so long as I have the disk space to support them.
The next option will ask if you want the a clone of the machine in just it’s current state, or everything including the existing snapshots. I would suggest cloning the machine in it’s current state. We are going to have to update some networking settings on the new virtual machine and create a new OS load snapshot for it later.
After you click on the clone button, you’ll see a progress bar come up. On average the cloning process of a small VM with just an OS load typically takes about 5 minutes. Once it’s done you will see that you have 2 virtual machines at your disposal. However there are going to be some issues with the second virtual machine that we will need to fix. Specifically it has the hostname, IP, and MAC address of the first virtual machine in it’s configuration files. Let’s fix that!
First, we need to know what the MAC address of the new virtual machine is. We can get that by right clicking on the second virtual machine, click on settings and then select network from the menu on the left. Drop down the advanced options and note the MAC address.
Go back to the VM VirtualBox Manager and start up your second virtual machine.
You will want to edit the following files….
/etc/sysconfig/network
Change the ‘HOSTNAME’ entry to whatever you would like your new virtual machine host name to be.
/etc/sysconfig/network-scripts/ifcfg-eth0
Change the ‘HWADDR’ entry to the MAC address that was reinitialized for this virtual machine. This is the MAC address you noted earlier.
Change the ‘IPADDR’ entry to the IP address you would like for this machine.
/etc/udev/rules.d/70-persistent-net.rules
Delete everything that comes below the comments at the top of the file. This file is used to store information to tie network adapters to their MAC addresses and will be repopulated on the next reboot.
One this is done, reboot your virtual machine. The following is output that shows what the contents look like on my second virtual machine after it was rebooted.
[[email protected] ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=cent2.localhost
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="08:00:27:7E:A7:A5"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR=10.0.2.7
NETMASK=255.255.255.0
GATEWAY=10.0.2.2
DNS1=8.8.8.8
[[email protected] ~]# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key. #Delete below this line before reboot
# PCI device 0x8086:0x100e (e1000) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:7e:a7:a5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
At this point you’re good to go. Shut down your second virtual machine. Take an OS load snapshot of it and you’re all set. You can power on both virtual machines and they should be able to communicate with one another with no additional configuration. Don’t forget to set up another port forward so you can SSH directly to your second virtual machine, and additional ports as needed to connect to services like MySQL.
This virtual machine setup is as compact as you would like it to be, while being effective and will remain available to you so long as you can power your machine on. Enjoy! Oh, and also, everything written in this tutorial was tested using virtual machines.
Good day!
Discover more about Pythian and our technical expertise.
31 Comments. Leave new
Thanks for writing this. I’m trying to do the same thing, but with the following environment:
Mac OS X El Capitan 10.11.2 (Mid-2015 15″ Retina MBP, 16GB, quad i7, 1TB SSD)
VirtualBox 5.0.12 with VBoxGuestAdditions 5.0.12 and Oracle_VM_VirtualBox_Extension_Pack 5.0.12
CentOS 6.7 with kernel and updates as of 25 December 2015
CentOS is installed as a development workstation with gcc and kernel-devel
How my VirtualBox is configured:
NAT Network
Network name: NatNetwork (default)
Network CIDR: 192.168.100.0/24 (chosen by me)
Supports DHCP: NO
Supports IPV6: NO
Port Forwarding:
Protocol: TCP
Host Port: 61022
Guest IP: 192.168.100.100
Guest Port: 22
The CentOS 6.7 has eth0 configured as:
Manual IP 192.168.100.100/24
Gateway 192.168.100.2
DNS1 8.8.8.8
DNS2 8.8.4.4
Here’s what ifconfig shows:
eth0 Link encap:Ethernet HWaddr 08:00:27:5B:C3:18
inet addr:192.168.100.100 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe5b:c318/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5486 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:329268 (321.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5459 errors:0 dropped:0 overruns:0 frame:0
TX packets:5459 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:481556 (470.2 KiB) TX bytes:481556 (470.2 KiB)
If I try to ping out of the VM I get Destination Host Unreachable. If I try to ssh into the VM using the configuration in the port forward rule, ssh just hangs. All of this works with just regular NAT, and in the past if I wanted to network into the VM I selected internal network and a fixed IP. I wanted to use NAT Network so that I could combine the two, but apparently it’s not working for me in this configuration. Any suggestions would be appreciated.
Further working: disabling the firewall on the Mac OS X side allows me to network out of the VM. Trying to ssh into the VM at the specified port still hangs. I need to figure out how to configure the OS X firewall, as leaving it disabled isn’t ideal.
Bill , I have made a small slide-show in May 2016 (I did not know the existence of this article then , only today I discovered this nice article) , that addresses a similar issue of what you want to do. Instead of ssh service , it shows how to do things for accessing a MySQL virtual server. My difference with the article of Peter Sylvester , is that I used a specific Host IP in the NAT forwarding rules , because I did not know if I could leave it empty as Peter shows in this article! And also I keep the virtual-server IPtables operating. I hope you can get some ideas. https://www.youtube.com/watch?v=ktEUAkc4Rjw
Thanks for your marvelous posting! I really enjoyed reading it,
you can be a great author. I will make sure to bookmark your blog and may come back sometime soon. I want
to encourage one to continue your great job, have a nice holiday weekend!
thanks for the info
Great article! It works well !
It’s really time fo me to reach all this new things about configuring network under Vbox.
Thanks.
I’ll surly bookmark your blog to visit it frequently.
tried to do almost the exact same thing on a win7 (telent, not ssh) and nothing, it won`t work
host ip:
host port: 61022
guest ip: 10.0.2.15
guest port: 23
>telnet 127.0.0.1:61022
nada :(
any ideas?
Willow,
I have a Win7 machine on my host as well. In order for port forwarding to work you need to ensure that you have something actively listening on the port you’re forwarding to. On your Win7 VM you can do so by issuing the following command…
netstat -an | find “{port number}”
If you don’t see anything listening on that port, then any request will be denied/timeout. On my Win7 VM I did not have anything listening on port 23. However, port 3389 was listening as a way to establish new RDP sessions, so I did a quick test by port forwarding 61022 to the guest VM on port 3389 and was able to establish an RDP session with no issues.
One other thing you may have to check is Windows Firewall on the VM to ensure that it’s not blocking any connection attempts on the port you’re trying to connect to.
Hope that helps!
Amazing article, exactly what I was looking for..
Thanks for the detailed setup explanation, it does work :)
However, I have a question: https://serverfault.com/questions/778265/virtualbox-nat-network-proxying-a-port-for-ssh-is-inconvenient
Thought I’d post it over there for the broader exposure / incentive ;)
Cheers,
Martin
Martin,
Due to the nature of NAT I don’t think there is a way that you can access your VM guests without using the port forward option. Another option to consider would be to use bridged adapters, but that means that the VMs are using the same networking path as the host and as soon as you lose connectivity to your network you’ll lose connectivity to your VMs. If the system hosting the VMs has a reliable network and isn’t mobile this may be an acceptable option for you, but technically falls outside the scope of the topic at hand as I originally wanted to explore a solution for lightweight VMs that could be hosted on commodity portable hardware.
Hi,
I have a requirement. I have two servers(server1 and server2). Each server has three virtual servers in a virtual box(total of six virtual servers). I want to create separate network for these two servers(server1 and server2) and want all six virtual servers to talk to each other). Howe this can be done. I can connect server1 and server2 through a switch or if needed can connect them with cross over cable.
Excellent post, quick question I have a laptop running already two VMs with “Internal Network” adapter, they can communicate with each other fine. But I am wondering if it’s possible to communicate these 2 VMs with an external physical laptop (Acer)? I am thinking to connect both laptops the Acer and the host running Virtualbox to the same wireless network, then change the adapter in the guess VMs to “Bridged Adapter” so they can receive also an IP from the wireless network…… does this make sense? Suggestions?
The reason I am trying to do this is because my host laptop is not powerful enough to run multiple VMs at the same time, let me know what you think.
If you switch your VMs to use bridged adapters, they will establish a connection to whatever device is connecting your laptop to your network. For example, take this topology with Nat networking…
Router (192.168.1.0/24)
– Laptop (192.168.1.20) (Host NatNetwork: 10.0.2.0/24)
— VM1 (10.0.2.3)
— VM2 (10.0.2.4)
And then if you change the NatNetwork adapter you should be able to connect the VM to your router just like you do with your laptop
Router (192.168.1.0/24)
– Laptop (192.168.1.20)
– VM1 (192.168.1.21)
– VM2 (192.168.1.22)
Just be sure to configure the IP change on your VMs to match the network they’re connecting to. Also, take a snapshot before you change the networking configuration, the snapshot will contain the settings for NatNetwork as well as any changes you make the VM itself. That way you can reload your NatNetwork snapshot when you take your laptop out on the road and still want to use your VMs.
Thanks for your reply Peter.
So as a summary: Using bridged adapter in the VMs and this topology:
Router (192.168.1.0/24)
– Laptop (192.168.1.20)
– VM1 (192.168.1.21)
– VM2 (192.168.1.22)
– LAPTOP2(192.168.1.23)
– LAPTOP3(192.168.1.24)
– LAPTOPX(192.168.1.2X)
We can say that all these network devices should be able to communicate with each other right?
For example from VM1 I should be able to ping LAPTOP2 and LAPTOP3 should be able to ping VM2 as well, LAPTOPX could ping the host/VMs right?
This is really helpful; thanks!
Oh my goodness! Impressive article dude! Thanks, However I am going through troubles with your RSS.
I don’t understand the reason why I am unable to subscribe to it.
Is there anybody getting isentical RSS issues?
Anybody who knows the solution can you kindly respond?
Thanks!!
Hi there,
Are you having trouble receiving the RSS emails? We do not have a static RSS page, but do send out a weekly email with all the RSS links. Kindly email me at [email protected] if you need further help. We’d love to ensure you’re receiving Pythian updates!
Cheers,
Andrea
Currently it looks like Drual is the top blogging platform out there right now.
(from what I’ve read) Is that what you’re using on your
blog?
Hi Marcus,
We use WordPress, not Drupal. Thanks!
Great write up. I am currently using VB for my computer lab. I have run into some issues. I am trying to get an app on Red Hat 7.2 to send data to an app on Windows 7. The ports that are used are 5519, 5504, and 5503. Most of it is UDP. Each machine can ping each other and the app on Linux box is multicast. I am using Wireshark on the Win7 VM and it starts that 102 Destination Unreachable (Port Unreachable). It is stating the RH VM can’t get out, I have stuck down all ports on RH and turned off firewall, but still having issues. Is VB limited on ports? Is there another solution to this? Everything works on real machines, but not VB/VMs
Great article. Worked like a charm. Gave me a greatly enhanced knowledge of VirtualBox.
Thanks for taking the time to share your knowledge.
Glenn.
Thank you for your comment! Glad we could help.
I’d like to find out more? I’d care to find out more details.
Thank you for your comment. As this post is a from a few years back, the author has moved on. Do you have a specific question that I can ask someone to get back to you on? Thanks!
Hi, for a reason unknown to me the global “NAT Network” settings called “LocalNat” are not taking effect for me. No ping works inside VM, no SSH from outside. As a workaround I remove LocalNat then in the global settings then I choose “NAT” network under the virtual machine network settings, where a “Port Forwarding” button will appear under it’s advanced settings. Put there the same settings you use for LocalNat, then network will work proprely.
I have recently bought this device but I didn’t set up it properly. You have guided us very nicely. Thanks for your proper guidance. Hope we will get more useful ideas in the future.
thank you
Thank you very much for this great and complete blog post.
Special thanks for explaining important and/or good-to-know details as for example why virtual machines in the NAT network lab must not have an IP ending with 1 or 2!
Keep up the good work, it’s a joy to read your blog posts!
perfect post