playing with virtual machine

23
Playing with Virtual Machine by Hieupv2 Team Ferotec@LTT (#5)

Upload: hieu-van

Post on 04-Jul-2015

109 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Playing with virtual machine

Playing with Virtual Machine

by Hieupv2Team Ferotec@LTT (#5)

Page 2: Playing with virtual machine

@mrhieu @mrhieu

[email protected]

PHP developerFront-end developerRuby On Rails beginner

Contact

About Me

Page 3: Playing with virtual machine

START

Page 4: Playing with virtual machine

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
Page 6: Playing with virtual machine

OK, here’s my dream

Linuxon

my fav OS

Page 7: Playing with virtual machine

Oh no, too big...

Linux Rubyon

my fav OS

Page 8: Playing with virtual machine

What we got

Cr#cked

Cygwin

Page 9: Playing with virtual machine

OR

Another OS

Page 10: Playing with virtual machine

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

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

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

Virtualbox

- Free- Multi platform: Windows, Linux, Macintosh, and Solaris- Feature: (next slide)

Ref: https://www.virtualbox.org/

Page 14: Playing with virtual machine

Cost: $249Feature- Install Guest OS- Snapshot- Clone

Ref: http://www.vmware.com/products/workstation/features.html

VMWare Workstation

Page 15: Playing with virtual machine

Show time

VMWare Workstation

Page 16: Playing with virtual machine

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

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 18: Playing with virtual machine

Vagrant /veigrənt/

Show time

Ref: http://docs.vagrantup.com

Page 19: Playing with virtual machine

❖ Back to Virtualbox, VMWare: Synced folder❖ Provision❖ Puppet /pʌpit/

And Moreeee

Page 20: Playing with virtual machine

“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

“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

Q&Aphew...almost done

Page 23: Playing with virtual machine

ありがとMerci

GraciasWatch this at http://goo.gl/dSOCe0