Skip to content

Commit 515f72f

Browse files
committed
added support for VirtualBox
1 parent 7514e32 commit 515f72f

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
# vagrant-fedora-template
22

3-
This project provides a basic template for vagrant with some provisioners of some tools for development purposes.
3+
This project provides a basic template for vagrant with some provisioners of some tools for development purposes. This project mainly supports libvirt as hypervisor.
4+
45

56
# Prerequesites
67

78
- Vagrant (via dnf or from [vagrantup.com/downloads](https://www.vagrantup.com/downloads))
9+
- hypbervisor (depending on the targeted virtualization)
10+
11+
## Libvirt
12+
813
- libvirt and libvirt-devel (via dnf)
914
- Daemons libvirtd and virtnetworkd enabled
1015
- Plugins
1116
- vagrant-libvirt `vagrant plugin install vagrant-libvirt`
1217

13-
# run
18+
## VirtualBox
1419

15-
The bash script [run.sh](run.sh) runs "vagrant up" with predefined provisioners.
20+
- VirtualBox (via dnf)
1621

17-
# clean up
22+
# run
1823

19-
You can destroy the created machine with the sript [cleanup.sh](cleanup.sh).
24+
The bash script [run.sh](run.sh) runs "vagrant up" with predefined provisioners. Choose a provider (by default libvirt is set) and change the tools you want to install.
2025

2126
# Available provisioners
2227

@@ -41,6 +46,10 @@ You can set the provisioners in the run script. The provisioners are comma separ
4146

4247
**The main provisioner should always be set, as it installs the graphical components (gnome). The final provisioner installs the lates updates and reboots the system.**
4348

49+
# clean up
50+
51+
You can destroy the created machine with the sript [cleanup.sh](cleanup.sh).
52+
4453
# Additional information
4554

4655
You can find further information about vagrant and libvirt in the [vagrant-libvirt repository](https://github.com/vagrant-libvirt/vagrant-libvirt)

Vagrantfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Vagrant.configure("2") do |config|
2727
libvirt.channel :type => 'spicevmc', :target_name => 'com.redhat.spice.0', :target_type => 'virtio'
2828
end
2929

30+
config.vm.provider "virtualbox" do |virtualbox|
31+
virtualbox.cpus = CPUS
32+
virtualbox.memory = MEMORY
33+
end
34+
3035
config.vm.provision "main", type: "shell", args: [USER_NAME, PASSWORD, KEYMAP], run: "never", path: "provisioner/main.sh"
3136

3237
config.vm.provision "toolbox", type: "shell", run: "never", path: "provisioner/toolbox.sh"

0 commit comments

Comments
 (0)