Packer

1 - About

https://www.packer.io/

Ye !

virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: file:///C:/VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: file:///D:/VM/Iso/rhel-server-7.2-x86_64-dvd.iso
==> virtualbox-iso: Starting HTTP server on port 8289
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4438)
==> virtualbox-iso: Executing custom VBoxManage commands...
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --memory 4096
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --cpus 2
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --vram 16
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --ioapic on
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --pae on
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --rtcuseutc on
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --bioslogodisplaytime 1
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --vrde on
    virtualbox-iso: Executing: modifyvm rhel-7.2-vbox --vrdeport 5000
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 5s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Connected to SSH!
==> virtualbox-iso: Uploading VirtualBox version info (5.1.10)
==> virtualbox-iso: Uploading VirtualBox guest additions ISO...
==> virtualbox-iso: Provisioning with shell script: scripts/vagrant.sh
    virtualbox-iso: Adding the vagrant ssh public key...
    virtualbox-iso: + echo 'Adding the vagrant ssh public key...'
    virtualbox-iso: + mkdir /home/vagrant/.ssh
    virtualbox-iso: + curl -Lo /home/vagrant/.ssh/authorized_keys https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub
    virtualbox-iso: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    virtualbox-iso: Dload  Upload   Total   Spent    Left  Speed
    virtualbox-iso: 100   141  100   141    0     0    248      0 --:--:-- --:--:-- --:--:--   248
    virtualbox-iso: 100   409  100   409    0     0    630      0 --:--:-- --:--:-- --:--:--   630
    virtualbox-iso: + chown -R vagrant /home/vagrant/.ssh
    virtualbox-iso: + chmod -R go-rwsx /home/vagrant/.ssh
==> virtualbox-iso: Gracefully halting virtual machine...
==> virtualbox-iso: Preparing to export machine...
    virtualbox-iso: Deleting forwarded port mapping for the communicator (SSH, WinRM, etc) (host port 4438)
==> virtualbox-iso: Exporting virtual machine...
    virtualbox-iso: Executing: export rhel-7.2-vbox --output output-virtualbox-iso\rhel-7.2-vbox.ovf
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Running post-processor: vagrant
==> virtualbox-iso (vagrant): Creating Vagrant box for 'virtualbox' provider
    virtualbox-iso (vagrant): Copying from artifact: output-virtualbox-iso\rhel-7.2-vbox-disk1.vmdk
    virtualbox-iso (vagrant): Copying from artifact: output-virtualbox-iso\rhel-7.2-vbox.ovf
    virtualbox-iso (vagrant): Renaming the OVF to box.ovf...
    virtualbox-iso (vagrant): Compressing: Vagrantfile
    virtualbox-iso (vagrant): Compressing: box.ovf
    virtualbox-iso (vagrant): Compressing: metadata.json
    virtualbox-iso (vagrant): Compressing: rhel-7.2-vbox-disk1.vmdk
Build 'virtualbox-iso' finished.

==> Builds finished. The artifacts of successful builds are:
--> virtualbox-iso: VM files in directory: output-virtualbox-iso
--> virtualbox-iso: 'virtualbox' provider box: rhel-7.2-vbox.box
os/packer.txt ยท Last modified: 2016/12/06 11:13 by gerardnico