Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-04-2013, 06:51 PM
|
#1
|
Member
Registered: Oct 2003
Posts: 156
Rep:
|
Setting up a Virtual Box environment
Anyone have any experience or good links they've used to setup a vitrual box environment
need to configure
Windows 7
RHEL App Node
RHEL DB Node
DNS Server (thinking RHEL)
all the vms need to be able to talk to one another. Not sure how complex this is -
|
|
|
12-04-2013, 10:23 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,661
|
To get the VMs to talk to each other, give them bridged adapters, rather than using the NAT adapter that VB defaults to. By using bridged adapters, they can be assigned or receive DHCP addresses within your network.
Look under Settings-->Network for each virtual machine, then click "Advanced" to choose the specific device. If several network "Adapter Types" are listed under "Advanced," you may have to test them one by one to find the one that works.
Other points: Set the RAM for each VM yourself. VB defaults to lower RAM settings than I like, especially if you are planning to use a GUI. Also, unless you have a compelling reason not to, use the dynamic virtual hardrive--that means that, even if you specify an eight GB HDD, VB will only use the amount of disk space actually required, dynamically resizing the HDD footprint as needed.
If you are setting these up on Linux, depending on your distro, you may need to download and install the kernel headers and possibly sources (it's been a while) in order to use "Guest Additions"; "Guest Additions" are not required, but they make life easier. Not all distros include kernel headers in a default install.
It's probably worth your while to download the VB User's Manual. VirtualBox also has a set of how-to articles on its wiki.
This looks like a pretty good tutorial: http://www.makeuseof.com/pages/how-to-use-virtualbox
After you set up your first VM, you will find that VirtualBox is pretty easy to use.
Good luck.
Last edited by frankbell; 12-04-2013 at 10:25 PM.
|
|
1 members found this post helpful.
|
12-04-2013, 10:31 PM
|
#3
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by frankbell
use the dynamic virtual hardrive--that means that, even if you specify an eight GB HDD, VB will only use the amount of disk space actually required, dynamically resizing the HDD footprint as needed.
|
Just remember that VB will ONLY expand the virtual hard drive, it will not shrink it. So if you load the VM up with 10 GB of installation or data files, the virtual drive will expand by 10 GB to hold them, but it will never shrink back to its previous size, even if you delete the files.
I'm just throwing that out there so you stay aware of what you load onto the VM's drive. It's often a good idea to set up a shared folder with the host OS and access any big files you need directly from there, rather than copying them into the VM, to keep the virtual drive from permanently growing when you don't actually need that extra space on a long-term basis.
Last edited by suicidaleggroll; 12-04-2013 at 10:32 PM.
|
|
1 members found this post helpful.
|
12-04-2013, 11:03 PM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,661
|
Quote:
Just remember that VB will ONLY expand the virtual hard drive, it will not shrink it. So if you load the VM up with 10 GB of installation or data files, the virtual drive will expand by 10 GB to hold them, but it will never shrink back to its previous size, even if you delete the files.
|
Thanks. I've never shrunk a virtual HDD, so I've never noticed this.
If I recall correctly, Guest Additions are needed to set up a shared directory between the host and guest.
|
|
|
12-05-2013, 06:51 PM
|
#5
|
Member
Registered: Sep 2010
Location: Washington state, USA
Distribution: Ubuntu among others
Posts: 75
Rep:
|
You can also set up an internal network where the VMs are all talking to each other - and not on the external physical network. If you have concerns about 'exposing' a development server that may be a viable solution. The only real catch is that you may need an additional VM running as a gateway/firewall/dhcp server with one 'interface' in the internal network and one either bridged or NAT'd to the outside world - this would allow your 'isolated' VMs to interact with one another, and still be able to connect to the Interweb for things like software updates, etc.
|
|
|
All times are GMT -5. The time now is 06:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|