We help IT Professionals succeed at work.

Linux - OpenSUSE to OpenSUSE VirtualBox

Hi Experts,

I'm a learner/hobbyist to Linux and I've just installed x2 images of OpenSUSE 12.1 onto VirtualBox.

The idea is to learn more about networking these together... fileshare, etc.

I've successfully got XP to XP (workgroup) talking in the past on virtualBOX. I want to explore Linux now.

Can anyone please point me in the right direction?

Thanks,
Roberto
Comment
Watch Question

Author

Commented:
The idea eventually will be to network two computers, both is running OpenSUSE 12.1 with a crossover cable. I need to practice on virtual first.
nociSoftware Engineer
Distinguished Expert 2019

Commented:
The right answer probably is ..... 42

Seriously, the questions is a bit broad...
On your host create a bridge with virtual adapters on it, connect those to the virtual box environments and install your software.

During install you can configure the intended addresses etc.
Is there a reason why you're trying to network two computers together using a crossover cable?  The virtual environment isn't a great place to simulate that, as there's not really anywhere to say, "I've got two computers connected with a crossover."  There's not even really a way to tell it that they're on a network with a switch (or router, or hub, or anything like that).

VirtualBox, like other virtual software systems, allows you to configure one or more network cards on each machine.  There's bridged, NAT, internal, and host-only configuration types.  The host acts like a firewall.

Anyway, I agree with Ray: it's a pretty broad question.  What are you hoping to learn from this setup?

Author

Commented:
Hey Guys,

Thank you so much for your reply. You're right, both systems are different specs, so the NIC is also going to be different from the VM.... basically, I want to network both systems so I can do 3d modelling on one system and pass it over to the next system to render in the background. There's no need to internet connect on these machines, so this is why i thought crossover would be best.

I chose OpenSUSE to experiment with as I didn't like ubuntu 11.10's look. I do still like ubuntu 10.10

Hope this makes sense...
Setting up a network over a crossover cable basically (from what I remember) boils down to setting some arbitrary IP's and routes so each computer knows how to talk to the other... anyway, you should take a look at the "internal network" option for the network cards of the VMs.  More info: [http://www.virtualbox.org/manual/ch06.html#networkingmodes].

Author

Commented:
Thanks crazedsanity,

which Distro do you use?
I prefer Ubuntu for desktop (you can switch to "Ubuntu Classic" for the old Gnome desktop) and straight Debian for servers.  I believe all my servers are running Debian 5; my laptop is running 11.04, and my wife's is (I think) running 10.10.

Author

Commented:
I've created a workgroup in VirtualBox using XP... and wonder how I do this in Linux? I now have Ubuntu 10.10 VMs and trying to connect them to fileshare?

Author

Commented:
I've created a workgroup in VirtualBox using XP. in the past using "internal network".. and wonder how I do this in Linux? I now have Ubuntu 10.10 VMs and trying to connect them to fileshare?
Creating a workgroup for fileshare isn't as straightforward in Linux (Windows does a lot of magic to make it seem simple): you'll have to configure Samba and setup the shares & workgroup name in there.  In Gnome, go to "System" -> "Administration" -> "Samba".  That seems to provide everything necessary to setup Samba (look under preferences for workgroup & such).

Author

Commented:
I've gone to Network Connecitons/Wired... it shows Auto eth0... both VMs have different MAC addresses (obviously)... sorry, networking isn't my strong point.

Do I need to Add and new Wired Connection or can I use eth0?

Author

Commented:
Hi crazedsanity,

I don't see SAMBA anywhere... do I need to install it?
In VirtualBox, make sure both of the VM's have a network card set to "internal network" (possibly try "host-only network", as long as both VM's have the same setting).  Once the VM is up, go into a terminal & run "/sbin/ifconfig", that'll tell you the machine's IP (if there's not one listed, it's not connected).  Do the same on the other machine.

In all my test environments, Ubuntu immediately connects when there's a wired connection available & active.  There should be nothing more that needs to be done to get them connected, except figuring out which network option to use.

Author

Commented:
Hi crazedsanity,

I have slightly different IP addresses on each VM -  "host-only network"; after I had to enable Sharing-Services... and now,  if I goto network... I get a new icon BOB-DELL-XPS420 as well as Windows Network icon... i cannot see any shared resources.

on VM#2 - I created a folder in MyDocs and enabled Share - but i get error "Failed to execute child process "testparm"(No such file or directory)

:(
I must be doing something wrong!!!!!!
You'll need to verify that the VM's can communicate.  Something as simple as a ping would work: ping VM#2's IP from VM#1... if it works, then you can go about dealing with sharing; if not, you'll need to figure out the networking part first.

Author

Commented:
Can i ping the other VM - yes I think so - yes

Author

Commented:
Desktop Remote viewer seems to work ;)
At this point, you should take a look at the Samba documentation at [http://www.samba.org/samba/docs/] for information on how to get it running properly.  I personally haven't read the documentation in quite some time, but I know getting some of those settings right are a real pain, like the authentication mode (user vs. server vs. ?).

Author

Commented:
Thanks crazedsanity,

I will look more into Samba ;)

Thanks again!