Commit Graph

1238 Commits

Author SHA1 Message Date
Darragh Bailey
dda5d4e1c4
Merge pull request #1137 from rgl/add-domain-title-and-description
let the user set the domain title and description
2020-08-13 14:52:06 +01:00
Rui Lopes
19cd1d5629 let the user set the domain title and description 2020-08-12 22:06:05 +01:00
Darragh Bailey
18c7803863
Merge pull request #1134 from eighthave/remove-redundant
remove redundant setting of default volume/backingStore mode
2020-07-22 16:44:04 +01:00
Hans-Christoph Steiner
8b712b7715 remove redundant setting of default volume/backingStore mode
According to the docs, for volumes and backingStores: "The mode defaults to
0600 when not provided.  https://libvirt.org/formatstorage.html

Removing this setting here allows the pool configuration to set the default
mode.
2020-07-22 13:45:38 +02:00
Christopher Voltz
437fc3f3b0 Add WWN support
Add the disk attribute wwn to set the WWN of a disk drive.

Signed-off-by: christopher@voltz.us
2020-06-14 20:00:15 -05:00
Michael Ablassmeier
5e77446297
add snapshot_pool_name to README (#1114) 2020-06-04 15:19:34 +01:00
Darragh Bailey
30599c6521
Merge pull request #1119 from timhughes/patch-1
update examples to use fedora/32-cloud-base
2020-06-04 15:19:05 +01:00
Darragh Bailey
f1b0c9a460
Merge pull request #1036 from zakame/public_address-provider-capability
Add public_address provider capability
2020-06-04 15:15:39 +01:00
Zak B. Elep
55abd327eb Add public_address provider capability
Used by vagrant-share plugin to determine local guest address for
forwarding via ngrok.
2020-06-04 17:07:40 +08:00
Tim Hughes
2ba06a168f
update examples to use fedora/32-cloud-base
fixes #1070
2020-06-04 01:04:18 +01:00
Darragh Bailey
760a08a6c4
Merge pull request #1037 from zakame/forward_ports-fix-pid-tracking
action/forward_ports.rb: Fix SSH tunnel spawning and PID tracking
2020-05-28 15:41:50 +01:00
Zak B. Elep
9e35ec2b05 action/forward_ports.rb: Fix SSH tunnel spawning and PID tracking
- Explicitly disable any SSH multiplexing here so PID tracking of
  tunnels works correctly.

- Using `exec ssh` in the spawn forces Ruby to use a subshell (as exec
  is a shell builtin) instead of spawning the ssh process directly, which
  results in getting the wrong (and dead, as the exec replaces the
  subshell) PID to track and clean up later.

- Run the ssh tunnel command on its own process group, essentially
  daemonizing it and keeping its PID intact even when `vagrant up` command
  is run on shell/consoles without an explicit TTY, such as Emacs Eshell.
2020-05-28 17:26:50 +08:00
Darragh Bailey
aa7ea05540
Bugfix release 0.1.2 (#1112)
Skipping 0.1.1 as accidentally tagged before bumping version
2020-05-12 10:05:32 +01:00
Darragh Bailey
1c39003fc6
Merge pull request #1111 from AmedeeBulle/issue-1110 2020-05-12 09:34:21 +01:00
Philippe Vanhaesendonck
4472654ba0
prune_nfs_exports: create Logger instance.
Fix #1110

Signed-off-by: Philippe Vanhaesendonck <philippe.vanhaesendonck@e-bulles.be>
2020-05-12 08:33:39 +02:00
Petr Ruzicka
d75c9ffda3
Improve Fedora installation procedure (#1101) 2020-05-10 14:54:56 +01:00
Julio Lajara
f00bc0eaae
Add qemu commandline environment variable support. (#961)
Make it easier to tweak some qemu options by allowing passthru of
command line environment variables.

- Also cleans up weird variable indirection used for qemu commandline args
  variable through `qargs` in various constructors.
- Addresses some functionality discussed in #776.
2020-05-10 14:37:31 +01:00
Darragh Bailey
f5f9e34da0
Tidy up README and TOC (#1108)
Bring the TOC in line with recent additions and enable the ability to
use a vim plugin to quickly regenerate in lieu of a better alternative.

Using https://github.com/mzlogin/vim-markdown-toc

Clean up any trailing whitespace so that subsequent file updates
by other PRs will be able to simply regen using appropriate tooling
without pulling in additional changes unrelated.
2020-05-10 14:23:25 +01:00
ryanfitzsimon
a83900f1ae
Download images with libvirt instead of copying (#928)
Packaging an existing vagrant environment relied on copying the backing
image. Users may not have permission to read this file despite being
able to interact with it through libvirt.

Use ruby-libvirt to download the image instead so any user with libvirt
access can run the package command.
2020-05-10 13:13:56 +01:00
Quinten Johnson
7e966febbd
Allow setting of PCI domain (#927) 2020-05-10 11:40:29 +01:00
Quinten Johnson
618c8b251d
Allow specification of domain shares (#925)
Weighted priority of the domain relative to others on the host.
2020-05-10 11:24:06 +01:00
Quinten Johnson
d9c5f63410
Allow specification of numa nodeset (#924)
This specifies the physical numa nodes on which the virtual memory can be
placed.
2020-05-10 10:52:46 +01:00
Quinten Johnson
60ef4b03d1
Allow specification of cpuset (#923)
Allows the pinning of vcpus to physical cpus.
2020-04-29 19:08:01 +01:00
Darragh Bailey
398258e306
Merge pull request #1102 from abbbi/fix_docs
provide working link to documentation about nested virtualization
2020-04-29 17:04:20 +01:00
Darragh Bailey
47ded9f52e
Make sure to require util/nfs for include (#1103) 2020-04-29 17:03:47 +01:00
Michael Ablassmeier
509671c3a3 provide working link to documentation about nested virtualization 2020-04-29 16:46:56 +02:00
Paul Elliott
bde81a15a2
Remove NFS exports on domain destroy (#781)
Uncomment NFS prune action

If the user has not configured NFS for any of the synced folders, then
it is likely they are not expecting to be asked for a sudo password on
destroy. Move the test for using NFS to a common module and include in
both the preparing and pruning actions.

Co-authored-by: Darragh Bailey <daragh.bailey@gmail.com>
2020-04-28 16:22:34 +01:00
Darragh Bailey
9ea4aee83a
Merge pull request #1079 from ccrebolder/use_fog-libvirt_filters
Use fog-libvirt filters when querying libvirt host
2020-04-27 20:35:18 +01:00
Chris Crebolder
34d933deea Check for empty result from fog-libvirt volumes
The fog-libvirt volumes filter behaves differently than the others in
that it returns an empty volume object if nothing is found. This has the
potential to change in the future so guard against an empty result as
well by checking if the assigned first element is nil.
2020-04-24 21:10:29 +01:00
Chris Crebolder
86aac4ce9c Use fog-libvirt filters when querying libvirt host
This commit replaces the pattern where the metadata for all volumes,
servers, or pools was downloaded and then searched. Instead a filter
argument is passed to the connection and only the metadata for the named
resource is returned, if it exists. This results in significant speed
increases for libvirt hosts that are offsite or have many volumes.
2020-04-24 21:10:29 +01:00
Michael Ablassmeier
304a2a055c
call stale_volume_remove only if configured libvirt pool exists (#1095)
Move message about removing stale volume unless there is one to be
removed.
2020-04-24 19:11:19 +01:00
Darragh Bailey
5e1445f7df
Prep for releasing 0.1.0 (#1093)
Start keeping .1 for bugfixes and make it easier for people to pin locally to accept those without picking up major changes
2020-04-23 18:07:09 +01:00
Darragh Bailey
63f34432ad
Allow dev with latest vagrant to use newer vagrant-spec (#1098)
Latest vagrant depends on a vagrant-spec release containing a more
recent dependency on childprocess than is supported for earlier releases
of vagrant.

Adjust dependencies to pin to the specific release of vagrant-spec if
the request version of vagrant is 2.2.7 or older.

Does not attempt to handle the situation where a version is specified
that cannot be parsed.

While it would be useful to test against newer versions of 2.2.x, it
appears this encounters a bug in upstream vagrant when installing in
dev mode see https://github.com/hashicorp/vagrant#11293
Therefore limit latest 2.2.x released version tested against to 2.2.4.
2020-04-23 09:12:04 +01:00
Darragh Bailey
8cea27fd3e
Defer to Warden to call recover (#984)
Warden will call the recover method when env[:interrupted] is set, so
just return instead and let it walk the stack to perform cleanup. This
ensures that during the WaitTillUp action that the user setting to
disable destroy_on_error is respected should the exception occur during
looking for the IP address or SSH connection.
2020-04-22 09:13:18 +01:00
Darragh Bailey
30ccf3a0ba
Merge pull request #1096 from abbbi/handle_box_image
Fixes issue introduced with #1030
2020-04-21 17:58:28 +01:00
Michael Ablassmeier
59ef20812b fix handle_box_image.rb:89: syntax error 2020-04-21 13:49:29 +02:00
Michael Ablassmeier
d39a9a302a
Allow setting of Sysprep options and multiple hyperv features (#1089)
Allow setting of multiple hyperv features and support for virt-sysprep options

Fixes #1039 and #1077
2020-04-21 11:37:03 +01:00
Darragh Bailey
5658a83723
Merge pull request #1094 from vagrant-libvirt/pin-vagrant-spec
Fix CI by pinning version of vagrant-spec for dev
2020-04-20 19:31:58 +01:00
Darragh Bailey
1c830dc4a5 Fix CI by pinning version of vagrant-spec for dev 2020-04-20 15:44:14 +01:00
Darragh Bailey
80cfbd810d
Merge pull request #939 from eighthave/patch-1
remove gemspec use of `git ls-files`
2020-03-27 21:13:16 +00:00
Darragh Bailey
386f7ff4fc
Merge branch 'master' into patch-1 2020-03-27 18:52:02 +00:00
Darragh Bailey
7b7f54ff41
Include license and README with gem 2020-03-27 18:46:22 +00:00
Darragh Bailey
4598cfc280
Merge pull request #974 from electrofelix/match-storage-pool-by-default
Default to storage pool if snapshot pool not defined
2020-03-27 18:34:33 +00:00
Darragh Bailey
2f2262774e
Merge pull request #1030 from voxik/use-fog-libvirt-for-volume-management
Use fog-libvirt facilities to create volumes for QEMU session.
2020-03-27 18:30:33 +00:00
Darragh Bailey
a8e6551332
Merge pull request #1041 from kittydoor/user-session-doc
Added more details on how to use vagrant-libvirt with QEMU user sessions
2019-12-05 19:14:49 +00:00
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