Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like the ability to share /var/www/ on Virtual Box CentOS 6.3 VM with Windows 7 so I can:

  • Browse file tree's in my IDE.
  • Save changes without permissions conflicts during development.

I understand a place to start is in the VM's Shared Folders tab in Virtual Box. I have not been much further than that nor understand how to build the bridge I am looking for.

Also note that I do not have a desktop environment set up on my CentOS guest. I would need to do everthing from shell. This is part of the difficulty that I am having becuase several guides I've consulted are using GUI applications.

share|improve this question

migrated from serverfault.com Jan 14 '13 at 6:37

This question came from our site for system and network administrators.

1 Answer 1

Windows 7:

  1. Start -> Run -> compmgmt.msc
  2. Shares -> Make New Share

CentOS 6.3

# yum install samba-client
# yum install cifs-utils
# nano /etc/fstab

Add

\\192.168.1.1\nameOfWindowsShare /var/www/html cifs username=myWindowsUsername,password=myWindowsPassword 0 0

Restart

# mount -a
share|improve this answer
    
Althoguh this share works initially, after abotu 30 minuts I am getting hangs. At this point I am unable to access the folder via Windows or CentOS and the process hangs. –  Dan Kanze Jan 14 '13 at 3:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.