Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created May 26, 2020 00:34
Show Gist options
  • Save pvalena/160f3c6a946a0264543778a0308fe4ed to your computer and use it in GitHub Desktop.
Save pvalena/160f3c6a946a0264543778a0308fe4ed to your computer and use it in GitHub Desktop.
# dnf install --enablerepo updates-testing -x rubygem-bcrypt_pbkdf https://kojipkgs.fedoraproject.org//work/tasks/8891/44968891/vagrant-2.2.9-1.fc31.noarch.rpm
Last metadata expiration check: 1:19:01 ago on Mon May 25 23:03:54 2020.
vagrant-2.2.9-1.fc31.noarch.rpm 308 kB/s | 571 kB 00:01
Dependencies resolved.
==========================================================================================================
Package Architecture Version Repository Size
==========================================================================================================
Upgrading:
vagrant noarch 2.2.9-1.fc31 @commandline 571 k
Transaction Summary
==========================================================================================================
Upgrade 1 Package
Total size: 571 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: vagrant-2.2.9-1.fc31.noarch 1/1
Upgrading : vagrant-2.2.9-1.fc31.noarch 1/2
Running scriptlet: vagrant-2.2.9-1.fc31.noarch 1/2
Cleanup : vagrant-2.2.6-1.fc31.noarch 2/2
Running scriptlet: vagrant-2.2.6-1.fc31.noarch 2/2
Verifying : vagrant-2.2.9-1.fc31.noarch 1/2
Verifying : vagrant-2.2.6-1.fc31.noarch 2/2
Upgraded:
vagrant-2.2.9-1.fc31.noarch
Complete!
[test@378806d225d8 test]$ vagrant init -fm fedora/32-cloud-base
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
[test@378806d225d8 test]$ vagrant
Usage: vagrant [options] <command> [<args>]
-h, --help Print this help.
Common commands:
box manages boxes: installation, removal, etc.
destroy stops and deletes all traces of the vagrant machine
global-status outputs status Vagrant environments for this user
halt stops the vagrant machine
help shows the help for a subcommand
init initializes a new Vagrant environment by creating a Vagrantfile
package packages a running vagrant environment into a box
plugin manages plugins: install, uninstall, update, etc.
port displays information about guest port mappings
powershell connects to machine via powershell remoting
provision provisions the vagrant machine
push deploys code in this environment to a configured destination
rdp connects to machine via RDP
reload restarts vagrant machine, loads new Vagrantfile configuration
resume resume a suspended vagrant machine
snapshot manages snapshots: saving, restoring, etc.
ssh connects to machine via SSH
ssh-config outputs OpenSSH valid configuration to connect to the machine
status outputs status of the vagrant machine
suspend suspends the machine
up starts and provisions the vagrant environment
upload upload to machine via communicator
validate validates the Vagrantfile
version prints current and latest Vagrant version
winrm executes commands on a machine via WinRM
winrm-config outputs WinRM configuration to connect to the machine
For help on any individual command run `vagrant COMMAND -h`
Additional subcommands are available, but are either more advanced
or not commonly used. To see all subcommands, run the command
`vagrant list-commands`.
--[no-]color Enable or disable color output
--machine-readable Enable machine readable output
-v, --version Display Vagrant version
--debug Enable debug output
--timestamp Enable timestamps on log output
--debug-timestamp Enable debug output with timestamps
--no-tty Enable non-interactive output
[test@378806d225d8 test]$ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'fedora/32-cloud-base' could not be found. Attempting to find and install...
default: Box Provider: libvirt
default: Box Version: >= 0
==> default: Loading metadata for box 'fedora/32-cloud-base'
default: URL: https://vagrantcloud.com/fedora/32-cloud-base
==> default: Adding box 'fedora/32-cloud-base' (v32.20200422.0) for provider: libvirt
default: Downloading: https://vagrantcloud.com/fedora/boxes/32-cloud-base/versions/32.20200422.0/providers/libvirt.box
Download redirected to host: download.fedoraproject.org
default: Calculating and comparing box checksum...
==> default: Successfully added box 'fedora/32-cloud-base' (v32.20200422.0) for 'libvirt'!
==> default: Uploading base box image as volume into libvirt storage...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: test_default
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Memory: 512M
==> default: -- Management MAC:
==> default: -- Loader:
==> default: -- Nvram:
==> default: -- Base box: fedora/32-cloud-base
==> default: -- Storage pool: default
==> default: -- Image: /home/test/.local/share/libvirt/images/test_default.img (41G)
==> default: -- Volume Cache: default
==> default: -- Kernel:
==> default: -- Initrd:
==> default: -- Graphics Type: vnc
==> default: -- Graphics Port: -1
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 9216
==> default: -- Sound Type:
==> default: -- Keymap: en-us
==> default: -- TPM Path:
==> default: -- INPUT: type=mouse, bus=ps2
Error while creating domain: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for domaintype=kvm
[test@378806d225d8 test]$ vagrant plugin install vagrant-sshfs
Installing the 'vagrant-sshfs' plugin. This can take a few minutes...
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:
conflicting dependencies fog-libvirt (>= 0.6.0) and fog-libvirt (= 0.5.0)
Activated fog-libvirt-0.5.0
which does not match conflicting dependency (>= 0.6.0)
Conflicting dependency chains:
fog-libvirt (= 0.5.0), 0.5.0 activated
versus:
vagrant-libvirt (> 0), 0.1.0 activated, depends on
fog-libvirt (>= 0.6.0)
[test@378806d225d8 test]$ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
[test@378806d225d8 test]$ vagrant global-status
id name provider state directory
--------------------------------------------------------------------
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment