mukodo debian/jessie64 vbox - vagrant ala

Fórumok

Sziasztok,

letezik a https://atlas.hashicorp.com/ oldalan egy olyan vbox debian/jessie64, amely mukodik is 'vagrant up' utan?

Eddig ugyanis az www.vagrantbox.es oldalrol lehuzva a

trusty-server-cloudimg-amd64-vagrant-disk1.box
Official Ubuntu 14.04 daily Cloud Image amd64 (Development release, No Guest Additions)
https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cl…

boxot hasznaltam kezdetnek.

Most azonban hasznalva a kovetkezo parancsot:

vagrant init jessie64 https://atlas.hashicorp.com/debian/boxes/jessie64/versions/8.5.0/provid…

es

'vagrant up' utan hibat kapok:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'jessie64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: https://atlas.hashicorp.com/debian/boxes/jessie64/versions/8.5.0/provid…
Extracting box...te: 963k/s, Estimated time remaining: --:--:--)
Successfully added box 'jessie64' with provider 'virtualbox'!
[default] Importing base box 'jessie64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2204.
[default] Destroying VM and associated drives...
/usr/lib/ruby/vendor_ruby/vagrant/action/builtin/mixin_synced_folders.rb:71:in `block in synced_folders': Internal error. Report this as a bug. Invalid: rsync (RuntimeError)
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/mixin_synced_folders.rb:59:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/mixin_synced_folders.rb:59:in `synced_folders'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/synced_folder_cleanup.rb:19:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/prepare_nfs_valid_ids.rb:12:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provisioner_cleanup.rb:24:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/destroy_unused_network_interfaces.rb:18:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/destroy.rb:14:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:57:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/env_set.rb:19:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/config_validate.rb:25:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:51:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:51:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
from /usr/share/vagrant/plugins/providers/virtualbox/action/import.rb:48:in `recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:67:in `block in recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:64:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:64:in `recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:62:in `recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:67:in `block in recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:64:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:64:in `recover'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:53:in `rescue in call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:28:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/config_validate.rb:25:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:57:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/config_validate.rb:25:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:57:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
from /usr/lib/ruby/vendor_ruby/vagrant/machine.rb:147:in `action'
from /usr/lib/ruby/vendor_ruby/vagrant/batch_action.rb:63:in `block (2 levels) in run'

Koszonom elore a segitseget.
Ardi

Hozzászólások

Én úgy nézem egy régebbi (8.4.0, nálad 8.5.0-t látok) verziót használok már jó ideje, gond nélkül:

# https://vagrantcloud.com/api/v1/box/debian/jessie64
config.vm.box_url = "https://atlas.hashicorp.com/debian/boxes/jessie64/versions/8.4.0/providers/virtualbox.box"

UP: esetleg néha nekem az szokott gondot okozni, ha a rendszerből települő vagrant-ot használom,
érdemes mindig az up-to-date vagrantot telepíteni innen: https://www.vagrantup.com/downloads.html

koszonom a valaszt.

probaltakoztam ezzel:

vagrant init contrib-jessie64 https://atlas.hashicorp.com/debian/boxes/contrib-jessie64/versions/8.5…

mukodik a 'vagrant up', viszont root jelszavat nem ismerem.

vagrant ssh

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
vagrant@debiancontrib-jessie:~$su -
Password: vagrant #<---ezzel probalkoztam, de nem mukodik...
su: Authentication failure
vagrant@debiancontrib-jessie:~$

UPDATE:
---
a jelszavat sikerult megoldanom:
'sudo passwd root' paranccsal a boxon uj jelszot adtam meg 2x.
---
Mi a kulonbseg a jessie64 es a contrib-jessie64 kozott?
Talalhato vmi leiras az adott verziokra?
A fenti contrib-jessie64 linket is csak veletlenul talaltam meg - letezik erre valamilyen sablon, mely szerint megtalalom a vbox-ra a linket?

Ardi

> Mi a kulonbseg a jessie64 es a contrib-jessie64 kozott?

Jó kérdés, a contrib-jessie64 úgynézem az open-source (GPL)-es vbox modulokat tartalmazzák ennyi:

https://atlas.hashicorp.com/debian/

debian/jessie64 -Vanilla Debian 8 "Jessie
debian/contrib-jessie64 - Vanilla Debian 8 "Jessie" build with contrib vboxsf kernel module

Ennél többet én se találtam... esetleg itt https://wiki.debian.org/Teams/Cloud/VagrantBaseBoxes

UPDATE:
Aha! itt packer forrása mindkettő vagrant box-nak, tehát a különbség az csak a virtual box guest modules (a contrib-osban ez benne van a másikba nincs):

http://anonscm.debian.org/cgit/cloud/debian-vm-templates.git/tree/packe…
vs
http://anonscm.debian.org/cgit/cloud/debian-vm-templates.git/tree/packe…

Koszi az infot.
Ezek szerint a "virtual box guest modules", melyek azert kerulte a contrib-jessie64-be, hogy a vagrant-ot virtualbox-szal egyutt lehessen hasznalni?
Ha peldaul massal szeretnem - pl. AWS, akkor

https://www.vagrantup.com/docs/boxes/base.html szerint nem szukseges:

---
What's in a Base Box?

A base box typically consists of only a bare minimum set of software for Vagrant to function. As an example, a Linux box may contain only the following:

Package manager
SSH
SSH user so Vagrant can connect
Perhaps Chef, Puppet, etc. but not strictly required.

In addition to this, each provider may require additional software. For example, if you are making a base box for VirtualBox, you will want to include the VirtualBox guest additions so that shared folders work properly. But if you are making an AWS base box, this is not required.
---

Jol ertettem?
Ardi

Hello kedz,

ezt irtad:

---
UP: esetleg néha nekem az szokott gondot okozni, ha a rendszerből települő vagrant-ot használom,
érdemes mindig az up-to-date vagrantot telepíteni innen: https://www.vagrantup.com/downloads.html
---

Ma felraktam az ujitast a vagrant-ra: (az osszes vbox halt allapotban)

# vagrant --version
Vagrant 1.4.3

#dpkg -l|grep vagrant
ii vagrant 1.4.3-1 all Tool for building and distributing virtualized development environments
#

#dpkg -i vagrant_1.8.5_x86_64.deb
(Reading database ... 102890 files and directories currently installed.)
Preparing to unpack vagrant_1.8.5_x86_64.deb ...
Unpacking vagrant (1:1.8.5) over (1:1.8.5) ...
Setting up vagrant (1:1.8.5) ...
#

#vagrant --version
Vagrant 1.8.5

#dpkg -l|grep vagrant
ii vagrant 1:1.8.5 amd64 no description given

Azonban ezt kapom, ha inditom a vagrantot:

#vagrant
Vagrant is upgrading some internal state for the latest version.
Please do not quit Vagrant at this time. While upgrading, Vagrant
will need to copy all your boxes, so it will use a considerable
amount of disk space. After it is done upgrading, the temporary disk
space will be freed.

Press ctrl-c now to exit if you want to remove some boxes or free
up some disk space.

Press the Enter or Return key to continue.^C#

Mit kell ilyenkor csinalnom?
Elvesznek a mar letrehozott vbox-ok?
Hol latom, hogy ez az "upgrading" me'g folyamaban van vagy mar befejezodott?

UPDATE: 2016-julius-28, 08:57 CET:
Most mar mukodik a vagrant up a mar letezo boxokra.
A kerdeseim azonban meeg aktualisak... :-)

Ardi