LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-21-2017, 04:53 AM   #1
fwagemakers
LQ Newbie
 
Registered: Jan 2017
Posts: 16

Rep: Reputation: Disabled
Smile approach Vbox from host


hello
i have a centos guest on VM virtual box on Windows. i can configure a eth0 network connection. But how can i connect to the filesystems of this centos guest.
hope anyone has a gues.
 
Old 09-21-2017, 05:06 AM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
samba maybe (so M$Win can see your CentOS fs on .vdi)
bridged vbox net (nat would req port forwarding)

Last edited by !!!; 09-21-2017 at 05:09 AM.
 
Old 09-21-2017, 05:18 AM   #3
fwagemakers
LQ Newbie
 
Registered: Jan 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
hi

Quote:
Originally Posted by !!! View Post
samba maybe (so M$Win can see your CentOS fs on .vdi)
bridged vbox net (nat would req port forwarding)
thanks but i cannot even ping this vbox.
 
Old 09-21-2017, 05:22 AM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Don't use nat; do you know how to change it to bridged? http://catlingmindswipe.blogspot.com...Box+Networking

Samba "option two" here.

Oh, and you may need some specific CentOS fw/SEL stuff (Idk)

1 more thot: get putty (Win ssh) into vbox working 1st. There's sshfs but Idk it.

Last edited by !!!; 09-21-2017 at 05:42 AM.
 
Old 09-21-2017, 05:34 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,615

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by !!! View Post
Don't use nat; do you know how to change it to bridged? http://catlingmindswipe.blogspot.com...Box+Networking

Samba "option two" here.

Oh, and you may need some specific CentOS fw/SEL stuff (Idk)
Just add another virtual interface, perhaps a host only interface, for communication between host and guest.

There are other ways, but the host-only network is easy and built into VBOX, you only have to turn it on.
 
1 members found this post helpful.
Old 09-22-2017, 06:01 PM   #6
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
What is it exactly that you want to be able to do to the guest from the host?
 
Old 09-22-2017, 08:44 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
By default, VBox will use a NAT adapter. In order to ge the VM on your LAN, you will need to switch to using a "bridged" adapter, which will require shutting down the VM and making the appropriate changes in VM--Settings-->Network-->Adapter. Once the VM in within your LAN, you can connect to it just as if it were a distinct computer.

As a caution, be sure to configure the VM security settings (firewall, etc.) just as if the VM were its own computer; otherwise it can become a vector for intrusion.

You can also create a shared folder between the host and the VM within VBox, if you have VB Guest Additions installed. https://www.virtualbox.org/manual/ch...#sharedfolders
 
Old 09-25-2017, 02:37 AM   #8
fwagemakers
LQ Newbie
 
Registered: Jan 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by wpeckham View Post
Just add another virtual interface, perhaps a host only interface, for communication between host and guest.

There are other ways, but the host-only network is easy and built into VBOX, you only have to turn it on.

thanks but when is select "host only adapter" , i need to select a name, and nothing popsup.
i have a "virtual" eth0 running on that linux machine.
 
Old 09-25-2017, 02:39 AM   #9
fwagemakers
LQ Newbie
 
Registered: Jan 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by DVOM View Post
What is it exactly that you want to be able to do to the guest from the host?

to see if you can connect it to transfer files and install some packages.
 
Old 09-25-2017, 04:23 AM   #10
fwagemakers
LQ Newbie
 
Registered: Jan 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by frankbell View Post
By default, VBox will use a NAT adapter. In order to ge the VM on your LAN, you will need to switch to using a "bridged" adapter, which will require shutting down the VM and making the appropriate changes in VM--Settings-->Network-->Adapter. Once the VM in within your LAN, you can connect to it just as if it were a distinct computer.

As a caution, be sure to configure the VM security settings (firewall, etc.) just as if the VM were its own computer; otherwise it can become a vector for intrusion.

You can also create a shared folder between the host and the VM within VBox, if you have VB Guest Additions installed. https://www.virtualbox.org/manual/ch...#sharedfolders
hi Frank thanks for your information.
when i try to switch to a "bridged adapter , the linux server claims that there is no adapter configured. There is a ethernet eth0 running but that is not what it should be?
reg Frans-jan
 
Old 09-27-2017, 03:23 PM   #11
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
Quote:
Originally Posted by fwagemakers View Post
to see if you can connect it to transfer files and install some packages.
It's easy to get into the host from the guest. Just create a "shared folder" to the host partition. My preferred method is to have all my data on a separate data partition. That way all my OSs (I've got 5 installed) and all my VMs can access all the data. And if I have to reinstall or restore a Clonezilla image, I don't have to worry about data.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
share internet from vbox vm back to its ubuntu host tsh3po Linux - Newbie 2 03-11-2012 11:44 AM
Linux guest on Windows XP host, security-wise which preferred - vbox or vmware? php5er Linux - Virtualization and Cloud 3 04-18-2011 02:50 AM
VBOX Gentoo Host Additions Mouse Issues tompickles Gentoo 0 09-09-2009 09:31 AM
How to share files/folders between VBox Mint and Vista host? jgolab Linux - Newbie 4 09-08-2009 08:43 AM
Install of openSUSE hangs under vbox on Windows host. hsjames Linux - Laptop and Netbook 0 08-17-2008 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration