Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Play with virtual machine

Hieu Pham
December 16, 2013

Play with virtual machine

A tour around popular Virtual Machine solutions for daily working.

Hieu Pham

December 16, 2013
Tweet

More Decks by Hieu Pham

Other Decks in Programming

Transcript

  1. My story ❖ Develop Ruby-on-Rails on Ubuntu 12.04 LTS. 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...???
  2. 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/
  3. WTH is Virtual Machine ? 2 types of VM: ❖

    System VM Virtualbox, VMWare Workstation ❖ Process VM Java VM “Limited performance” Ref:http://en.wikipedia.org/wiki/Virtual_machine
  4. Virtualbox - Free - Multi platform: Windows, Linux, Macintosh, and

    Solaris - Feature: (next slide) Ref: https://www.virtualbox.org/
  5. Cost: $249 Feature - Install Guest OS - Snapshot -

    Clone Ref: http://www.vmware.com/products/workstation/features.html VMWare Workstation
  6. Vagrant /veigrənt/ Free Why 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
  7. 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
  8. “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
  9. “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