Commit Graph

1022 Commits

Author SHA1 Message Date
Alwyn Kik
b8286923f9 Don't run pacman -Sy, simply install with -S instead. 2016-12-09 15:26:06 +01:00
dima
8dfe8d5260 add some ipv6 support between vms 2016-12-07 00:40:44 +01:00
dima
c1898be3d6 rubocop 2016-12-06 23:20:29 +01:00
dima
b92b02b6d6 add ability for test pxe in private network 2016-12-06 19:45:27 +01:00
dima
981ca18b5e amazing rubocop -a autofix 2016-12-06 16:59:28 +01:00
Dmitry Vasilets
d6000307d6 Merge pull request #701 from evgeni/add-data-to-box
add a way to inject data into the Vagrantfile
2016-12-05 11:33:28 +01:00
Evgeni Golov
c1d103348d add a way to inject data into the Vagrantfile
for example, I have to set a few settings for my box:

    % cat Vagrantfile.add
      config.vm.provider :libvirt do |libvirt|
        libvirt.nic_model_type = "e1000"
        libvirt.disk_bus = "sata"
      end

      config.vm.guest = :tinycore
    % create_box.sh my.qcow2 my.box Vagrantfile.add
2016-12-01 14:09:39 +01:00
Gerben Meijer
4caf672829 Merge pull request #700 from evgeni/create-box-help
catch -h/--help passed to create_box.sh and output usage
2016-12-01 13:06:56 +01:00
Evgeni Golov
7bc4cdcba0 catch -h/--help passed to create_box.sh and output usage
instead of passing it to readlink, confisung the user with strange
output
2016-12-01 12:42:55 +01:00
Gerben Meijer
cdb0848db5 Merge pull request #698 from infernix/master
Add coveralls badge
2016-11-27 02:20:09 +01:00
Gerben Meijer
cf9b77cb07 Add coveralls badge 2016-11-27 02:08:08 +01:00
Gerben Meijer
ae47fa946e Merge pull request #697 from infernix/master
Enable coveralls.io
2016-11-27 00:19:04 +01:00
Gerben Meijer
4837d3a72a Enable coveralls in spec_helper 2016-11-26 23:57:17 +01:00
Gerben Meijer
1c8b94e029 Add coveralls to Gemfile 2016-11-26 23:57:07 +01:00
Gerben Meijer
4de8bc457f Add coveralls.yml 2016-11-26 23:57:00 +01:00
Gerben Meijer
4d40f4e873 Merge pull request #696 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-11-26 12:39:39 +01:00
The Gitter Badger
8cf1ff609b Add Gitter badge 2016-11-26 11:38:02 +00:00
Dmitry Vasilets
a894dc0cbf Merge pull request #694 from electrofelix/fix-storage-config-blocks
Fix storage config blocks
2016-11-25 20:48:09 +01:00
Darragh Bailey
46e0d09ce6 Fix separate storage config blocks device assignment
Move device assignment for CDROM's and disk storage to occur during
finalize, to ensure that storage config blocks are merged before
assigning devices.

This ensures that defining multiple storage config blocks within the
same or different Vagrantfiles that are merged, works as expected to
create multiple separate storage devices without needing to explicitly
define the dev name.

Fixes #655
2016-11-25 17:14:54 +00:00
Darragh Bailey
4af944f9d6 Merge CDROM storage config blocks 2016-11-25 17:14:54 +00:00
Darragh Bailey
286bdf25b8 Basic spec tests for config
Some simple spec tests to ensure validate and finalize work, which also
includes some tests showing that merging is not functioning as needed
for disks/cdroms both in cdroms not being merged across configs and
device ids are not handled correctly for merged configs.
2016-11-25 17:14:54 +00:00
Darragh Bailey
26744c97ab Merge pull request #691 from electrofelix/domain-template-spec
Spec test for domain template to verify rendering
2016-11-25 17:04:23 +00:00
Gerben Meijer
c0f1b231c8 Merge pull request #693 from infernix/master
Update docs for ipv6 settings. Fixes #685
2016-11-25 17:00:11 +01:00
Darragh Bailey
81a35c9f14 Spec test for domain template to verify rendering
Add basic spec tests for the domain template to test rendering through
simple wrapping of a config object to provide values for class instance
variables used by the template as it mostly mirrors those required.
2016-11-25 15:59:44 +00:00
Gerben Meijer
eaaf946c71 Update docs for ipv6 settings. Fixes #685 2016-11-25 16:59:35 +01:00
Dmitry Vasilets
255146ec41 Merge pull request #677 from knumskull/vagrant-libvirt-redirdev
patch for include support of redirector devices
2016-11-02 21:02:26 +01:00
Dmitry Vasilets
0db148dcbe Merge pull request #686 from epienbroek/nfs_ip
Use /sbin/ip when there is no 'ip' command in any of the default PATHs
2016-11-02 18:25:12 +01:00
Erik van Pienbroek
c9123269f6 Use /sbin/ip when there is no 'ip' command in any of the default PATHs
While configuring NFS an attempt is done to find
out all guest IP addresses using the 'ip' tool.
On various distros like Fedora 25, RHEL6 and RHEL 7
this tool is located in /sbin folder which is not
in the default PATH. This can result in errors like:

 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::ShareFolders:0x007fc8689b14b8>
DEBUG host: Searching for cap: nfs_installed
DEBUG host: Checking in: redhat
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_installed in linux
 INFO host: Execute capability: nfs_installed [#<Vagrant::Environment: /var/lib/jenkins/workspace/pipeline-test_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ>] (redhat)
 INFO nfs: Using NFS, preparing NFS settings by reading host IP and machine IP
DEBUG ssh: Checking key permissions: /var/lib/jenkins/.vagrant.d/insecure_private_key
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: ip addr show | grep -i 'inet ' | grep -v '127.0.0.1' | tr -s ' ' | cut -d' ' -f3 | cut -d'/' -f 1 (sudo=false)
DEBUG ssh: stderr: bash: line 2: ip: command not found

DEBUG ssh: Exit status: 0
 INFO nfs: guest IPs:
 INFO nfs: host IP: 127.0.0.1 machine IP: []
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::PrepareNFSSettings:0x007fc868974b80>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::ForwardPorts:0x007fc868948b70>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::WaitTillUp:0x007fc868916120>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::StartDomain:0x0055a7c389c608>

and later on a fatal error occurs due to the wrong IP address being used:

 INFO guest: Execute capability: mount_nfs_folder [#<Vagrant::Machine: dev01 (VagrantPlugins::ProviderLibvirt::Provider)>, "127.0.0.1", {"/vagrant"=>{:type=>:"", :guestpath=>"/vagrant", :hostpath=>"/var/lib/jenkins/workspace/pipeline-test_rhsm_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ", :disabled=>false, :__vagrantfile=>true, :map_uid=>981, :map_gid=>980, :nfs_udp=>true, :nfs_version=>3, :uuid=>"519459908", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=981", "anongid=980", "fsid=519459908"]}, "/software"=>{:guestpath=>"/software", :hostpath=>"/home/shared/software", :disabled=>false, :__vagrantfile=>true, :map_uid=>1000, :map_gid=>1000, :nfs_udp=>true, :nfs_version=>3, :uuid=>"258980992", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=1000", "anongid=1000", "fsid=258980992"]}, "/yum_repos"=>{:guestpath=>"/yum_repos", :hostpath=>"/home/shared/yum_repos", :disabled=>false, :__vagrantfile=>true, :map_uid=>1000, :map_gid=>1000, :nfs_udp=>true, :nfs_version=>3, :uuid=>"1600717094", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=1000", "anongid=1000", "fsid=1600717094"]}}] (redhat)
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: set -e
mkdir -p /vagrant
mount -o vers=3,udp 127.0.0.1:/var/lib/jenkins/workspace/pipeline-test_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ /vagrant
if command -v /sbin/init && /sbin/init --version | grep upstart; then
  /sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=/vagrant
fi
 (sudo=true)
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: echo; printf $SSH_AUTH_SOCK (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG ssh: stdout:
/tmp/ssh-IQUlPd2203/agent.2203
 INFO ssh: Setting SSH_AUTH_SOCK remotely: /tmp/ssh-IQUlPd2203/agent.2203
DEBUG ssh: stderr: mount.nfs: requested NFS version or transport protocol is not supported

DEBUG ssh: Exit status: 32
 INFO retryable: Retryable exception raised: #<Vagrant::Errors::NFSMountFailed: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

Made the IP address detection more reliable by first
trying to find the location of the 'ip' tool using
'which' and when that fails (not in the default PATH),
then try to use '/sbin/ip'.
2016-11-02 18:02:55 +01:00
Steffen Froemer
143c21cdcf fixed conflicts 2016-11-02 08:16:00 +01:00
Steffen Froemer
fcf8dc19df Added support for redirected devices and USB filter. 2016-11-01 20:41:41 +01:00
Gerben Meijer
e6c45a3a99 Merge pull request #683 from chaim1221/patch-1
Edit README.md for #682
2016-10-30 23:08:08 +01:00
Chaim Eliyah
e488fac4b3 Edit README.md for #682 2016-10-30 15:05:43 -07:00
Dmitry Vasilets
780b6b9f7a Merge pull request #678 from evgeni/set-cpu_model-only-for-custom
set cpu model only for custom cpu mode
2016-10-29 10:43:53 +02:00
Evgeni Golov
5091844c70 fold cpu_model assignment into one 2016-10-28 22:48:37 +02:00
Dmitry Vasilets
a7c690d307 Merge pull request #680 from trapier/patch-1
readme: spelling correction
2016-10-27 09:06:29 +02:00
Trapier Marshall
bdab8612d8 readme: spelling correction 2016-10-26 18:40:38 -04:00
Evgeni Golov
7f11cb1e1f adjust README.md to reflect latest defaults changes 2016-10-23 17:17:05 +02:00
Evgeni Golov
7ec7b8e35e also set the cpu_model in the config accordingly to the cpu_mode 2016-10-23 16:55:27 +02:00
Evgeni Golov
517da85cee only set the cpu model when using a custom cpu mode
according to https://libvirt.org/formatdomain.html#elementsCPU
setting the model is not supported when using "host-model" and
with recent libvirt this actually results in errors like this:
 Call to virDomainCreateWithFlags failed:
  the CPU is incompatible with host CPU:
  Host CPU does not provide required features: svm
2016-10-23 16:29:33 +02:00
Dmitry Vasilets
7d93d936f6 Merge pull request #676 from petRUShka/add_gpu_passthrough_info_to_readme
[Docs] add important notes to GPU passthrough section
2016-10-18 20:36:08 +02:00
Maxim Petrunin
3fe434afe6 [Docs] add important notes to GPU passthrough section 2016-10-18 20:24:19 +03:00
Gerben Meijer
a7b1ffb356 Merge pull request #675 from petRUShka/add_arch_linux_instructions_to_readme
[Docs] Add instructions for Arch Linux
2016-10-18 19:07:47 +02:00
Maxim Petrunin
6ee6be2f49 [Docs] Add instructions for Arch Linux 2016-10-18 20:05:02 +03:00
Dmitry Vasilets
e112d6fd81 Merge pull request #666 from jistr/fix-default-prefix
Fix default_prefix behavior
2016-10-09 21:50:05 +02:00
Jiří Stránský
6c11ae7684 Fix default_prefix behavior
Call `dup` on default prefix before amending it via `concat` and
`<<`. Previously when default_prefix was used, it was amended in place,
so it was changing with every VM definition and kept getting longer,
leading to wrong domain names.
2016-10-09 21:34:57 +02:00
Gerben Meijer
1a856ec4f1 Update install/build instructions 2016-10-08 00:02:03 +02:00
Gerben Meijer
bae6a12ed6 Document management_network_mode. Fixes #473 2016-10-07 19:25:42 +02:00
Gerben Meijer
6b2d5ef650 Update 9p docs; fixes #503 2016-10-07 18:53:29 +02:00
dima
7d2c600a40 version 0.0.36 2016-10-07 17:08:09 +02:00
Dmitry Vasilets
fa63ac7af2 Merge pull request #660 from voxik/bump-fog-libvirt
Bump fog-libvirt dependency.
2016-10-04 14:14:22 +02:00