ksauzz weblog

technical note....

Vagrantメモ

create vagrant box using veewee.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ vagrant basebox templates
The following templates are available:
vagrant basebox define '<boxname>' 'CentOS-4.8-i386'
vagrant basebox define '<boxname>' 'CentOS-5.5-i386-netboot'
vagrant basebox define '<boxname>' 'CentOS-5.5-x86_64-netboot'
vagrant basebox define '<boxname>' 'CentOS-5.6-i386'
vagrant basebox define '<boxname>' 'CentOS-5.6-i386-netboot'
...
$ vagrant basebox define 'CentOS-6.2-x86_64-minimal'  'CentOS-6.2-x86_64-minimal'

  *customizing definitions*

$ vagrant basebox build CentOS-6.2-x86_64-minimal
$ vagrant basebox export CentOS-6.2-x86_64-minimal
$ vagrant box add CentOS-6.2-x86_64-minimal CentOS-6.2-x86_64-minimal.box

create and connect to VM.

1
2
3
$ vagrant init CentOS-6.2-x86_64-minimal
$ vagrant up
$ vagrant ssh

no-provision

1
vagrant up --no-provision

debugging

verbose logging.

1
VAGRANT_LOG=INFO vagrant up

check console with gui mode.

1
config.vm.boot_mode = :gui

default account

id/pass

1
2
vagrant/vagrant
root/vagrant

Comments