Commit Graph

1193 Commits

Author SHA1 Message Date
Darragh Bailey
30abb74440
Merge pull request #1055 from vhaidamaka/update-doc-build-deps
docs: update build dependencies for newer Debian-based distros
2019-10-21 09:40:45 +01:00
Vadym Haidamaka
2947a1d52c docs: update build dependencies for newer Debian-based distros
See https://lists.debian.org/debian-user/2016/11/msg00518.html
2019-10-20 15:36:06 +03:00
Jeff Welling
1739809a12 Update readme doc howto troubleshoot (#1052)
Note common troubleshooting tools/steps in README
2019-10-10 20:39:58 +01:00
Katherine Pata
330b0f83cd Added more details on how to use vagrant-libvirt with QEMU user sessions 2019-08-30 11:02:16 +02:00
Tadej Janež
f8eae9984d Use fetch to obtain environment variable value in package_domain (#1035)
ENV is a Ruby Hash which doesn't have a get method but the fetch method.
2019-08-13 12:06:19 +01:00
Vít Ondruch
608037c15c Use fog-libvirt facilities to create volumes for QEMU session.
This is supported since fog-libvirt 0.6.0 via https://github.com/fog/fog-libvirt/pull/60
2019-07-17 18:27:00 +02:00
Darragh Bailey
c3af181c83
Merge pull request #1022 from MalloZup/MalloZup-patch-2
Update readme with openSUSE installation
2019-07-10 17:19:26 +01:00
Dario Maiocchi
e45f6a5110
Update readme with openSUSE installation
Update readme with openSUSE installation
2019-07-05 13:46:53 +02:00
Darragh Bailey
3f30606021
Update versions tested in README (#1006) 2019-07-01 10:43:21 +01:00
Darragh Bailey
8e85d0fc8c
Merge pull request #985 from martin-schwenke/master
Avoid TOCTOU error in volume creation
2019-05-10 14:18:29 +01:00
Darragh Bailey
5fe845156b
Merge pull request #1005 from vpodzime/master-pigz
Use parallel gzip in box creation if available
2019-05-10 14:17:17 +01:00
Vratislav Podzimek
2f41402c9a Use parallel gzip in box creation if available
This can speed up box creation significantly on modern machines.
2019-05-09 13:27:04 +02:00
Darragh Bailey
0f037bab9b
Merge pull request #983 from electrofelix/detect-port-collision
Fail on port collisions
2019-04-30 15:53:02 +01:00
Martin Schwenke
222b50925d Avoid TOCTOU error in volume creation
Checking if a volume exists before attempting to create it results in
a "time of check to time of use" race.  When the check is done the
volume doesn't exist but then, because it is shared storage, it is
then created by another node before the local attempt to create it.
This results in an unexpected failure.

It is better to simply attempt to create the volume and ignore EEXIST
in cases where this is permissible.

Implementing this properly is complicated by the fact that the
exception appears to contain only an error message and does not appear
to contain a useful error code.  Digging through the layers in, for
example, fog-libvirt provides no evidence why this is so.  However,
the error message seems fairly unique and matching it is easy, so just
do that.  A small hack to vastly improve stability.

Signed-off-by: Martin Schwenke <martin@meltin.net>
2019-03-13 21:50:13 +11:00
Darragh Bailey
8f314cbb0e Fail on port collisions
Partial Fix #321 by enabling option ExitOnForwardFailure=yes to detect
and fail on forward port mappings failing to bind.
2019-03-06 11:34:23 +00:00
Darragh Bailey
191dc8656e
Merge pull request #973 from electrofelix/update-travis-tests
Update travis conf and test multiple combinations
2019-02-27 14:37:48 +00:00
Zak B. Elep
deb36bef8b Allow customizing of virt-sysprep behaviour on package (#955)
Support `vagrant package` of e.g. bento-derived boxes that require SSH
hostkeys already set (as in the case of bento/debian-7 and above,) as
well as leave existing LVM UUIDs untouched (e.g. in bento/ubuntu-18.04.)

Instead of hard-coding sysprep operations, use an environment variable
to set these instead.

Use the Chef bento use case as an example for customizing sysprep
operations.
2019-02-27 12:32:37 +00:00
Darragh Bailey
3d0080b6a4
Merge pull request #970 from pravi/patch-1
Update fog-core to latest version
2019-02-18 19:05:40 +00:00
Pirate Praveen Arimbrathodiyil
44a760f668 Update fog-core to latest version
fog-core 2.x is released and we'd like to use it in debian
2019-02-18 18:30:44 +01:00
Darragh Bailey
4d2c26a926
Merge pull request #895 from mattandersen/default-forward-all-nics
Default Port Forwarding to All Host Addresses
2019-02-18 12:19:28 +00:00
Darragh Bailey
e40f1c67b4 Default to storage pool if snapshot pool not defined
Default to using the same storage pool in case the user defines
storage_pool_name without defining snapshot_pool_name and only use a
separate pool when snapshot_pool_name is explicitly set.

This will ensure that setting storage_pool_name to a different pool does
not also require setting snapshot_pool_name to match previous behaviour.

Additionally it is reasonable for a user to assume that if a Vagrantfile
sets storage_pool_name to something other than 'default', then there
should be no need for a default pool.
2019-02-13 16:52:20 +00:00
Darragh Bailey
c02905be14
Merge pull request #885 from brianjmurrell/patch-1
Don't add _ after user defined default_prefix
2019-02-13 15:24:42 +00:00
Darragh Bailey
49410aaf0e
Merge pull request #941 from evgeni/management-domain
add domain name for the management network
2019-02-13 15:20:10 +00:00
Darragh Bailey
dc8eb5a33e
Merge pull request #769 from jcf/upgrade-nokogiri
Use the same version of Nokogiri as Vagrant
2019-02-13 14:56:27 +00:00
Evgeni Golov
53539f6ad4 add domain name for the management network
this allows users to have a dedicated domain for their vagrant VMs and
point their regular resolver at the libvirt dnsmasq for that domain to
make them reachable by a full name instead of the IP when accessing the
services on said VM.

an example for such a setup can be found in [1] and [2]

[1] https://liquidat.wordpress.com/2017/03/03/howto-automated-dns-resolution-for-kvmlibvirt-guests-with-a-local-domain/
[2] https://m0dlx.com/blog/Automatic_DNS_updates_from_libvirt_guests.html
2019-02-13 15:51:26 +01:00
James Conroy-Finn
429b236087 Use the same version of Nokogiri as Vagrant 2019-02-13 14:51:23 +00:00
Darragh Bailey
e7cb0fe00f
Merge pull request #971 from crimsun/fixes-grammar
Updated Libvirt-based Vagrant box search reference and edited names for consistency
2019-02-13 14:14:44 +00:00
Darragh Bailey
d3a2f8ad97 Update travis conf and test multiple combinations
Attempt to use latest travis CI settings for installing required
packages.

Should attempt to test various combinations to try and catch problems
occurring across different versions of vagrant with different versions
of ruby when people are using distro provided versions.
2019-02-13 14:04:19 +00:00
Darragh Bailey
549556d839
Merge pull request #972 from electrofelix/fix-tests
Handle rubygems >= 3 dropping support for ruby < 2.3.0
2019-02-13 13:06:02 +00:00
Darragh Bailey
abc2c65b04 Handle rubygems >= 3 dropping support for ruby < 2.3.0
Rubygems releases >= 3 have removed support for older versions of ruby
(<2.3). While testing with distributions with older versions of ruby
make sure to use the conservative install method as suggested from
https://github.com/rubygems/rubygems/issues/2534#issuecomment-448843746
2019-02-13 12:56:32 +00:00
Daniel T Chen
41e5b2f362 Updated Libvirt-based Vagrant box search reference and edited names for consistency 2019-02-11 20:18:02 -05:00
Darragh Bailey
4b8f274957
Merge pull request #964 from pxsloot/master
prepare_nfs_settings.rb: check for 'ssh' service to see if guest network interface is up
2019-01-29 15:18:30 +00:00
Peter Slootweg
c1d2144ec2 check for 'ssh' service to see if interface is up
the 'echo' service is often not available out-of-the-box,
so the 'ping' of the ssh interface fails. This results in the
wrong ip addresses being used in /etc/exports, which results in
the vm not being able to mount the vagrant shares.

The 'vagrant ssh interface' will have the service 'ssh' available
(you won't be able to login to your vagrant box else), so it makes
sense to use that service for the ping.

This fixes the vm not being able to mount the shares over nfs after
a reload due to the wrong ip addresses being used.
2019-01-17 09:38:34 +01:00
Michael Ablassmeier
d5ba63d413 #952 : support different storage pool for base box snapshot (#953) 2018-12-04 17:43:38 +01:00
Vít Ondruch
5f7841ffff Revert back to development version of .gemspec file. (#929)
This reverts commit 34a0def7d1, because it
seems to be completely accidental change, when the file was overridden by
Bundler or so.
2018-12-02 22:56:50 +01:00
Darragh Bailey
a725092ee9
Merge pull request #883 from pennsignals/fix/clean-forwarded-ports-darwin
Use ps keyword `command` instead of `cmd`
2018-11-27 19:19:47 +00:00
Darragh Bailey
00e64a438a
Merge pull request #889 from dabreese00/david
README (Debian install): Don't autorun dnsmasq
2018-11-27 19:17:42 +00:00
Darragh Bailey
e0a54d2f08
Merge pull request #908 from bobthebutcher/docs-update
add default_prefix domain option docs
2018-11-27 19:15:06 +00:00
Darragh Bailey
4b85d12bae
Merge pull request #884 from anton-dessiatov/configure_networks
Only use 'configure_networks' capability if there actually are networks to be configured
2018-11-27 18:30:29 +00:00
Hans-Christoph Steiner
116f85f4be
include locales 2018-11-09 14:15:11 +00:00
Hans-Christoph Steiner
2ca5603ad2
remove gemspec use of git ls-files
In 5158b0e733, `git ls-files` was added to list the _files_ and _test_files_.  This will never work for any process that uses a source tarball, like Debian packages and I think gems.  Using `git ls-files` requires _git_ is installed on the build machine and requires that the _.git/_ dir is present in the source.

Example fixes:
* jfelchner/ruby-progressbar#54
* rubygems/rubygems#2064
* wpscanteam/CMSScanner#64
2018-11-09 12:42:13 +00:00
Darragh Bailey
18eb8d8d02
Merge pull request #935 from chrisroberts/fix/ssh-control-master
Include `-n` option for forwarded port ssh processes
2018-11-06 12:53:00 +00:00
Chris Roberts
e968de7269 Include -n option for forwarded port ssh processes
In configurations where ControlMaster is used with ControlPersist
set, not including this option results in "stolen" input.
2018-11-05 15:41:23 -08:00
David Scaife
816d344f03 README - Reorganise and clarify USB usage (#934)
* readme: usb: keep usb-related sections together

* readme: usb: add link for usb device passthrough section

* readme: usb: add general info about usb usage

* readme: usb: place libvirt doco link after vagrantfile example

* readme: usb: add note about enabling spice redirection
2018-11-04 09:07:40 +01:00
dima
6eedaea0ce 0.0.45 2018-10-23 11:19:27 +02:00
dima
57ed83c46d 0.0.44 2018-10-23 11:14:17 +02:00
Darragh Bailey
e696032deb
Merge pull request #909 from davidscaife/redirfilter
Fix USB redirfilter parameter configuration
2018-08-18 12:19:28 +01:00
David Scaife
e46b0d3d8a USB: Fix redirfilter parameter configuration 2018-08-14 20:40:09 +10:00
David Scaife
019f43d32d USB: Fix redirfilter template test 2018-08-14 20:38:55 +10:00
Brad Searle
7466b8e026 add default_prefix domain option docs 2018-08-12 10:00:34 +10:00