Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpabon/dcosup
Create a nested VM using libvirt and install vagrant and virtualbox in it to use minidcos
https://github.com/lpabon/dcosup
containers dcos libvirt vagrant virtualbox
Last synced: 9 days ago
JSON representation
Create a nested VM using libvirt and install vagrant and virtualbox in it to use minidcos
- Host: GitHub
- URL: https://github.com/lpabon/dcosup
- Owner: lpabon
- Created: 2019-08-23T00:27:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T03:29:16.000Z (over 5 years ago)
- Last Synced: 2024-11-13T12:38:55.887Z (2 months ago)
- Topics: containers, dcos, libvirt, vagrant, virtualbox
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dcosup
This setup creates a nested VM using libvirt. It then installs Virtualbox and
Vagrant in the VM to use with minidcos](https://minidcos.readthedocs.io).> NOTE: Currently libvirt only. Support for VirtualBox will be available soon
## Requirements
Install qemu-kvm, libvirt, vagrant-libvirt, and ansible
### Fedora
```
sudo dnf -y install qemu-kvm libvirt vagrant-libvirt ansible
```You will also need to have kubectl on your system. You can install it by going
to https://kubernetes.io/docs/tasks/tools/install-kubectl/ .### CentOS
* Run the following:
```
sudo yum install epel-release
sudo yum install qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm ansible
```* Install Vagrant: https://www.vagrantup.com/downloads.html
* Install the libvirt plugin for vagrant:```
vagrant plugin install vagrant-libvirt
```### Nested VM support
Modprobe options:
```
options kvm_intel nested=1 enable_apicv=n
options kvm ignore_msrs=1
```Reboot the host, and then run the following commands.
```
# want Y to be returned
$ cat /sys/module/kvm/parameters/ignore_msrs# want N to be returned
$ cat /sys/module/kvm_intel/parameters/enable_apicv# want Y to be returned
$ cat /sys/module/kvm_intel/parameters/nested
```[Source](https://fabianlee.org/2018/09/19/kvm-deploying-a-nested-version-of-vmware-esxi-6-7-inside-kvm)
## Usage
This setup sets up a nested VM with 32 G of RAM.```
$ vagrant up
```