Re: [Freepto] [RFT] freepto-vagrant

Üzenet törlése

Válasz az üzenetre
Szerző: vinc3nt
Dátum:  
Címzett: freepto
Tárgy: Re: [Freepto] [RFT] freepto-vagrant
On 01/06/14 21:47, vinc3nt wrote:
> If someone could test it on different OS, it will be better.


Below some freepto-vagrant output as example:

# VirtualBox

$ vagrant up vbox --provider=virtualbox
Bringing machine 'vbox' up with 'virtualbox' provider...
==> vbox: Importing base box 'freepto-vbox'...
==> vbox: Matching MAC address for NAT networking...
==> vbox: Setting the name of the VM:
freepto-vagrant_vbox_1401645726955_47358
==> vbox: Clearing any previously set network interfaces...
==> vbox: Preparing network interfaces based on configuration...
    vbox: Adapter 1: nat
==> vbox: Forwarding ports...
    vbox: 22 => 2222 (adapter 1)
==> vbox: Running 'pre-boot' VM customizations...
==> vbox: Booting VM...
==> vbox: Waiting for machine to boot. This may take a few minutes...
    vbox: SSH address: 127.0.0.1:2222
    vbox: SSH username: vagrant
    vbox: SSH auth method: private key
    vbox: Warning: Connection timeout. Retrying...
==> vbox: Machine booted and ready!
==> vbox: Checking for guest additions in VM...
==> vbox: Mounting shared folders...
    vbox: /vagrant =>
/home/vinc3nt/Documents/code/project/freepto/freepto-vagrant/sync
==> vbox: Running provisioner: shell...
    vbox: Running: inline script
==> vbox: Running provisioner: shell...
    vbox: Running: /tmp/vagrant-shell20140601-483-1ixnp5.sh
==> vbox: ==> freepto: installing freeptobuild tool...
==> vbox: ==> freepto: installing custom configuration file...
==> vbox: Reloading OpenBSD Secure Shell server's configuration: sshd
==> vbox: .
==> vbox: ==> freepto: cloning AvANa git repository...
==> vbox: Cloning into '/home/vagrant/freepto-lb'...
==> vbox: freepto-dev is ready


# KVM/libvirt

$ vagrant up kvm --provider=libvirt
Bringing machine 'kvm' up with 'libvirt' provider...
==> kvm: Creating image (snapshot of base box volume).
==> kvm: Creating domain with the following settings...
==> kvm:  -- Name:          freepto-vagrant_kvm
==> kvm:  -- Domain type:   kvm
==> kvm:  -- Cpus:          1
==> kvm:  -- Memory:        2048M
==> kvm:  -- Base box:      freepto-libvirt
==> kvm:  -- Storage pool:  default
==> kvm:  -- Image:         /var/lib/libvirt/images/freepto-vagrant_kvm.img
==> kvm:  -- Volume Cache:  none
==> kvm:  -- Kernel:
==> kvm:  -- Initrd:
==> kvm:  -- Command line :
==> kvm: Starting domain.
==> kvm: Waiting for domain to get an IP address...
==> kvm: Waiting for SSH to become available...
==> kvm: Starting domain.
==> kvm: Waiting for domain to get an IP address...
==> kvm: Waiting for SSH to become available...
==> kvm: Creating shared folders metadata...
network name = vagrant-libvirt
==> kvm: Exporting NFS shared folders...
==> kvm: Preparing to edit /etc/exports. Administrator privileges will
be required...
[sudo] password for vinc3nt:
nfsd not running
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.
==> kvm: Mounting NFS shared folders...
==> kvm: Configuring and enabling network interfaces...
==> kvm: Running provisioner: shell...
    kvm: Running: inline script
==> kvm: Running provisioner: shell...
    kvm: Running: /tmp/vagrant-shell20140601-11197-b91a6v.sh
==> kvm: ==> freepto: installing freeptobuild tool...
==> kvm: ==> freepto: installing custom configuration file...
==> kvm: Reloading OpenBSD Secure Shell server's configuration: sshd
==> kvm: .
==> kvm: ==> freepto: cloning AvANa git repository...
==> kvm: Cloning into '/home/vagrant/freepto-lb'...
==> kvm: freepto-dev is ready


# freeptobuild:

$ vagrant ssh vbox
Linux freepto-dev 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64

Freepto Development VM

        user: vagrant
        pass: vagrant


Quick start:

        $ sudo vim /etc/freeptobuild.conf
        $ sudo freeptobuild /home/vagrant/freepto-lb


vagrant@freepto-dev ~ % sudo freeptobuild /home/vagrant/freepto-lb

================== FREEPTO BUILD INFO =====================
BUILD TYPE: disk
HTTP PROXY: http://localhost:3142/
REPOSITORY: /home/vagrant/freepto-lb
GIT HEAD: cccbbb
GIT DESCRIPTION: 2014-06-01_18.05_v1.0alpha1-0-gcccbbbd-it_IT.UTF-8
IMAGE NAME:
/vagrant/freepto-lb/2014-06-01_18.05_v1.0alpha1-0-gcccbbbd-it_IT.UTF-8/2014-06-01_18.05_v1.0alpha1-0-gcccbbbd-it_IT.UTF-8.img
===========================================================

Do you want to continue? [Y/n]




--
vinc3nt

+-------------------------------------------------------------+
|GPG Id key: 4096R/DAA26AC4 2012-12-07                        |
|GPG Fingerprint: 19D8011C 81891778 7A1986DC 28E8567F DAA26AC4|
|OTR Fingerprint: 86F3EE43 8A9340D2 FF92A828 81C84DC2 FEDD839E|
+-------------------------------------------------------------+