Playing with virtual machine
-
Upload
hieu-van -
Category
Technology
-
view
110 -
download
2
Transcript of Playing with virtual machine
Playing with Virtual Machine
by Hieupv2Team Ferotec@LTT (#5)
@mrhieu @mrhieu
PHP developerFront-end developerRuby On Rails beginner
Contact
About Me
START
My story
❖ Develop Ruby-on-Rails on Ubuntu 12.04LTS. On a “quite powerful” PC.
Unfortunately...❖ Unstable, laggy, suddenly hang up, kidding
me :(❖ ONLY happens to ME :(((❖ What about: Photoshop, Skype, Facebook
Messenger, IE, Safari, Opera, PRINTER...???
OK, here’s my dream
Linuxon
my fav OS
Oh no, too big...
Linux Rubyon
my fav OS
What we got
Cr#cked
Cygwin
OR
Another OS
Ruby on Windows
http://rubyinstaller.org/downloads/
Not sure if Rails and Bundles can run properly(Tried and disappointed)
Cygwin
“a collection of tools which provide a Linux look and feel environment for Windows.”
“not a way to run native Linux apps on Windows.”
Ref: http://www.cygwin.com/
WTH is Virtual Machine ?
2 types of VM:❖ System VMVirtualbox, VMWare Workstation
❖ Process VMJava VM
“Limited performance”Ref:http://en.wikipedia.org/wiki/Virtual_machine
Virtualbox
- Free- Multi platform: Windows, Linux, Macintosh, and Solaris- Feature: (next slide)
Ref: https://www.virtualbox.org/
Cost: $249Feature- Install Guest OS- Snapshot- Clone
Ref: http://www.vmware.com/products/workstation/features.html
VMWare Workstation
Show time
VMWare Workstation
Vagrant /veigrənt/
FreeWhy Vagrant ?● portable work environments ● configurable, reproducible● stands on the shoulders of giants● industry-standard provisioning tools● isolation
Ref: http://net.tutsplus.com/tutorials/php/vagrant-what-why-and-how/http://docs.vagrantup.com/v2/getting-started/index.html
Vagrant /veigrənt/
NO MORE “But it works on my computer !”= NO MORE TEARS :’(
Ex: case-sensitive in naming
Ref: http://net.tutsplus.com/tutorials/php/vagrant-what-why-and-how/http://docs.vagrantup.com/v2/getting-started/index.html
❖ Back to Virtualbox, VMWare: Synced folder❖ Provision❖ Puppet /pʌpit/
And Moreeee
“A provisioning tool”package { 'build-essential':
ensure => installed
}
package { 'git-core':
ensure => installed
}
http://docs.puppetlabs.com/learning/http://www.puppetcookbook.com/posts/install-package.html
Puppet with Vagrant
$ sudo apt-get install build-essential git-core
“A provisioning tool”$ sudo apt-get update
$ sudo apt-get install git vim
$ sudo apt-get install puppet-common
$ cd /etc/puppet/
Copy manifests/ and modules/ from https://github.com/mrhieu/puppet-for-ubuntu$ sudo puppet apply manifests/default.pp
--> Coffee time
http://docs.puppetlabs.com/learning/http://www.puppetcookbook.com/posts/install-package.html
Puppet with Machine
Q&Aphew...almost done