Sample Exchange

 View Only

vagrant-xvm 

Dec 26, 2017 09:32 AM

Quickly setup an Vagrant's Ubuntu box with the VMware Cross vCenter Workload Migration Utility installed.

vagrant-xvm

This Vagrantfile purpose is to quickly setup an Ubuntu box with the VMware Cross vCenter Workload Migration Utility installed.

Prerequisites

Usage

  1. Download or clone this repository
  2. Extract the utility and put it in the Vagrant folder (default folder name is xvm. Can be tweaked if needed. See point 3). The folder tree should looks like this:
├───xvm
│   └xvm-1.0.jar
├─.gitignore
├─LICENSE
├─README.md
├─Vagrantfile
  1. Change the variables in the Vagrantfile according to your needs
## Infrastructure
$box_image = "ubuntu/xenial64"

## XVM folder and file names
$xvm_folder = "./xvm"
$xvm_jar = "xvm-1.0.jar"

## XVM port
$xvm_port = 8080
  1. Launch the VM build with the command vagrant up
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/xenial64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: Setting the name of the VM: vagrant-xvm_default_1508399698618_92030
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 8080 (guest) => 8080 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
...
  1. Check that everything goes well by connecting to the web interface at the url http://localhost:8080 (modify the port according to your setup)
  2. Migrate your VM !

Author

Erwan Quélin

License

Copyright 2017 Erwan Quelin and the community.

Licensed under Apache License Version 2.0.


#Apache2.0
#xvm
#xvmotion
#OtherPlatform
#vagrant
#OtherLanguage
#ubuntu

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
rb file
Vagrantfile.rb   1 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.