VirtualBox, vagrant on redhat6 server 본문

Programming

VirtualBox, vagrant on redhat6 server

halatha 2013. 1. 31. 14:22

http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/


# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo # yum update # yum install VirtualBox-4.2.6 # usermod -a -G vboxusers [user id]

# yum install ruby rubygems ruby-devel # dependencies for vagrant # gem install vagrant # chmod 644 /usr/lib64/ruby/gems/1.8/gems/vagrant-1.0.6/keys/vagrant # permission denied


$ VBoxManage --type headless&


* dependencies for vagrant

http://stackoverflow.com/questions/5135421/bundle-error-in-ruby-on-rails

ruby-devel이 없으면 'mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h' 메시지 출력

http://www.metallic-badger.com/wordpress/articles/installing-ruby-and-gems-for-vagrantopscodechef-on-osx-10-6-6/

http://blog.robinwinslow.co.uk/post/27370485407/installing-vagrant-on-centos-the-more-reliable-way


* permission denied

문제 발생시 /usr/lib/ruby/1.8/fileutils.rb:1268:in `initialize': Permission denied -... 메시지≈

https://community.jboss.org/thread/177814?_sscc=t


- NAT, host-only, bridged network

http://answers.yahoo.com/question/index?qid=20110117043642AA5N7Rn

in host only mode, the virtual machine will be directly networked to your host pc. this is communicated via one of the additional adapters that is created. this also typically means that the virtual machine cannot connect (via network) to anything else except the host pc.

NAT means that any IP connection to the outside world will look like it came from the host PC (same MAC and IP as the host). this is useful for environments where you are mac locked or authenticated. This also uses a network adapter that vmware creates.

bridged means that the virtual machine will have it's own MAC address and separate IP on the network and can be seen as a unique machine. This does NOT use any of the additional network adapters, just the adapter that you bridge to (a physical connection).

Comments