Hashar has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/399945 )
Change subject: Restore libvirt support
......................................................................
Restore libvirt support
The logic to support libvirt has been commented out when adding stretch
support (2030d5a280). The commit got reverted but the lines were left
commented. Probably because the box refered to trusty-cloud indicating
nobody bother using libvirt.
Uncomment the provider configuration section
Switch to box debian/contrib-jessie64 like the virtualbox provider
Update the support documentation
Tested on a Debian stretch machine with:
vagrant 1.9.1
vagrant-libvirt 0.0.37
vagrant-mutante 1.2.0
The machine provisionned properly.
Bug: T71223
Bug: T154296
Change-Id: Ib0fc45c66315810342793f19446763a4697849c1
---
M Vagrantfile
M support/README-libvirt.md
2 files changed, 17 insertions(+), 17 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/45/399945/1
diff --git a/Vagrantfile b/Vagrantfile
index f39293e..31d4bc4 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -101,11 +101,10 @@
end
# libvirt (KVM/QEMU) provider. Enable with `--provider=libvirt`.
- # config.vm.provider :libvirt do |_libvirt, override|
- # override.vm.box = 'trusty-cloud'
-
- # override.vm.network :private_network, ip: settings[:static_ip]
- # end
+ config.vm.provider :libvirt do |_libvirt, override|
+ override.vm.box = 'debian/contrib-jessie64'
+ override.vm.network :private_network, ip: settings[:static_ip]
+ end
config.vm.network :forwarded_port,
guest: settings[:http_port], host: settings[:http_port], host_ip:
settings[:host_ip],
diff --git a/support/README-libvirt.md b/support/README-libvirt.md
index bbdaf77..4a341fa 100644
--- a/support/README-libvirt.md
+++ b/support/README-libvirt.md
@@ -8,26 +8,27 @@
## Setup ##
Running MediaWiki-Vagrant in KVM/QEMU under libvirt requires to
-install the libvirt Vagrant plugin. In a Fedora system, you can just
-install the package vagrant-libvirt.
+install the libvirt Vagrant plugin. On a Fedora system, you can just
+install the package vagrant-libvirt. For Debian see their wiki page
+https://wiki.debian.org/KVM#Installation
-In addition you need convert the Ubuntu Trusty VirtualBox box that
-MediaWiki-Vagrant uses by default for the libvirt provider. To do
-that:
+At first download the Debian Jessie box:
-1. Install the mutate Vagrant plugin by "vagrant plugin install mutate".
-2. Download the Ubuntu Trusty VirtualBox box by "vagrant box add
- trusty-cloud
-
https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box".
-3. Convert the box by "vagrant mutate trusty-cloud libvirt".
+ vagrant box add debian/contrib-jessie64
+ # https://app.vagrantup.com/debian/boxes/contrib-jessie64
+You would then need to convert the box to libvirt. Install the mutate plugin
+either from your distribution package 'vagrant-mutate' or if not available:
+ vagrant plugin install mutate
+
+Then do the conversion:
+
+ vagrant mutate debian/contrib-jessie64 libvirt
## Use ##
vagrant up --provider=libvirt
-
-
## Caveats ##
--
To view, visit https://gerrit.wikimedia.org/r/399945
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0fc45c66315810342793f19446763a4697849c1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits