Download - Playing with virtual machine
![Page 1: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/1.jpg)
Playing with Virtual Machine
by Hieupv2Team Ferotec@LTT (#5)
![Page 2: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/2.jpg)
@mrhieu @mrhieu
PHP developerFront-end developerRuby On Rails beginner
Contact
About Me
![Page 3: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/3.jpg)
START
![Page 4: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/4.jpg)
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...???
![Page 5: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/5.jpg)
![Page 6: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/6.jpg)
OK, here’s my dream
Linuxon
my fav OS
![Page 7: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/7.jpg)
Oh no, too big...
Linux Rubyon
my fav OS
![Page 8: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/8.jpg)
What we got
Cr#cked
Cygwin
![Page 9: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/9.jpg)
OR
Another OS
![Page 10: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/10.jpg)
Ruby on Windows
http://rubyinstaller.org/downloads/
Not sure if Rails and Bundles can run properly(Tried and disappointed)
![Page 11: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/11.jpg)
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/
![Page 12: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/12.jpg)
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
![Page 13: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/13.jpg)
Virtualbox
- Free- Multi platform: Windows, Linux, Macintosh, and Solaris- Feature: (next slide)
Ref: https://www.virtualbox.org/
![Page 14: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/14.jpg)
Cost: $249Feature- Install Guest OS- Snapshot- Clone
Ref: http://www.vmware.com/products/workstation/features.html
VMWare Workstation
![Page 15: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/15.jpg)
Show time
VMWare Workstation
![Page 16: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/16.jpg)
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
![Page 17: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/17.jpg)
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
![Page 19: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/19.jpg)
❖ Back to Virtualbox, VMWare: Synced folder❖ Provision❖ Puppet /pʌpit/
And Moreeee
![Page 20: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/20.jpg)
“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
![Page 21: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/21.jpg)
“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
![Page 22: Playing with virtual machine](https://reader033.vdocument.in/reader033/viewer/2022042700/5597409e1a28ab09678b4801/html5/thumbnails/22.jpg)
Q&Aphew...almost done