Vagrant Base Box setup using CentOS

Prerequisite for VM :

  1. VirtualBox Guest Additions(VirtualBox installed) or VMWare tool(VMWare installed).
  2. SSH with key-based auth support for the vagrant user.
  3. Vagrant user settings

Conventions over configuration if you plan to distribute this box
Hostname: vagrant-[os-name], e.g. vagrant-debian-lenny
Domain: vagrantup.com
Root Password: vagrant
Main account login: vagrant
Main account password: vagrant

OS: CentOS-6.2-i386-netinstall




Disable iPv6 support


URL setup

image file link


Set vagrant as the root password


export KERN_DIR=/usr/src/kernels/`uname -r`
yum install -y gcc make perl kernel-devel kernel-headers
yum update kernel* -u
shutdown -r now
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

install the VirtualBox Guest Additions

set vagrant user

groupadd admin
useradd -G admin vagrant

SSH configuration and user permission

echo "%admin ALL=NOPASSWD: ALL" >> /etc/sudoers
echo 'Defaults env_keep="SSH_AUTH_SOCK"' >> /etc/sudoers
vi /etc/sudoers

Add ! to the requiretty line. This enables vagrant to sudo remotely.

Default !requiretty

Add ssh public key

mkdir -m 0755 /home/vagrant/.ssh
$ curl -s https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub > \> /home/vagrant/.ssh/authorized_keys
chmod 0644 /home/vagrant/.ssh/authorized_keys

Setup base box

cd ~/Documents/Virtual\ Machines.localized/.localized/
vagrant package --base Vagrant_Box_setup

[Vagrant_Box_setup] Clearing any previously set forwarded ports…
[Vagrant_Box_setup] Creating temporary directory for export…
[Vagrant_Box_setup] Exporting VM…
[Vagrant_Box_setup] Compressing package to: /Users/yoyo_chen/VirtualBox VMs/Vagrant_Box_setup/package.box
Vagrant_Box_setup yoyo_chen$ vagrant box add test_box package.box
Downloading or copying the box…
Extracting box…te: 17.2M/s, Estimated time remaining: 0:00:01)
Successfully added box ‘test_box’ with provider ‘virtualbox’!

Ref:

Anyone who is interented in other OS platform can refer this
Debian
Debian OS iso
Building your own Base Box for Vagrant
Ubuntu
vanilla-boxes
Creating a vagrant base box for ubuntu 12.04 32bit server
CentOS
Creating a CentOS 6.2 base box for Vagrant
Creating a CentOS 6.2 Base Box for Vagrant 1.1

Vagrant Official Doc
Base Box

將VMWare格式檔案匯入Citrix的XenServer

Installation file:

conversion tool

http://www.citrix.com/downloads/xenserver/tools/conversion.html

Xenserver

http://www.citrix.com/go/xenserver/download.html


Conversion SOP:

Conversion:  2 methods

(1)XenConvert:

http://support.citrix.com/servlet/KbServlet/download/32316-102-691307/XenConvertGuide.pdf

Known Limitations

Windows Disk Type – XenConvert can only convert volumes from primary partitions
on a disk

configured as a Windows Basic Disk – not a Windows Dynamic Disk.

Firmware Type – XenConvert can only convert from a host machine with BIOS firmware
– not

Extensible Firmware Interface (EFI).

Disk Partition Type – XenConvert can only convert a Windows System Volume from
a disk with

MBR style partitions – not GPT style

(2)Citrix XenServer Conversion Manager

Citrix XenServer Conversion Manager 1.0 Guide: Converting  from VMware to XenServer

http://support.citrix.com/servlet/KbServlet/download/32320-102-691310/xcm-10-guide.pdf

How to Convert VMware Virtual Machines to XenServer 6.0 and later 

http://support.citrix.com/article/CTX133505

Installation SOP

1.Citrix XenServer Quick Installation and Licensing Guide

Install from USB

USB key  not work in my Mac

http://www.citrix.com/content/dam/citrix/en_us/documents/products/xenserverquickinstallationguide.pdf