Guest User

Untitled

a guest
Dec 15th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. $ cat /etc/redhat-release
  2. CentOS Linux release 7.4.1708 (Core)
  3.  
  4. $ libvirtd --version
  5. libvirtd (libvirt) 3.2.0
  6.  
  7. $ vagrant -v
  8. Vagrant 2.0.1
  9.  
  10. $ vagrant plugin list
  11. vagrant-libvirt (0.0.40)
  12. vagrant-share (1.1.9, system)
  13.  
  14. $ vagrant box list
  15. centos/7 (libvirt, 1710.01)
  16.  
  17. $ sudo vagrant up --provider=libvirt
  18. The provider 'libvirt' could not be found, but was requested to
  19. back the machine 'default'. Please use a provider that exists.
  20.  
  21. $ cat Vagrantfile
  22. # -*- mode: ruby -*-
  23. # vi: set ft=ruby :
  24.  
  25. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  26. # configures the configuration version (we support older styles for
  27. # backwards compatibility). Please don't change it unless you know what
  28. # you're doing.
  29.  
  30. Vagrant.configure("2") do |config|
  31. # The most common configuration options are documented and commented below.
  32. # For a complete reference, please see the online documentation at
  33. # https://docs.vagrantup.com.
  34.  
  35. # Every Vagrant development environment requires a box. You can search for
  36. # boxes at https://vagrantcloud.com/search.
  37. config.vm.box = "centos/7"
  38.  
  39. # Disable automatic box update checking. If you disable this, then
  40. # boxes will only be checked for updates when the user runs
  41. # `vagrant box outdated`. This is not recommended.
  42. # config.vm.box_check_update = false
  43.  
  44. # Create a forwarded port mapping which allows access to a specific port
  45. # within the machine from a port on the host machine. In the example below,
  46. # accessing "localhost:8080" will access port 80 on the guest machine.
  47. # NOTE: This will enable public access to the opened port
  48. # config.vm.network "forwarded_port", guest: 80, host: 8080
  49.  
  50. # Create a forwarded port mapping which allows access to a specific port
  51. # within the machine from a port on the host machine and only allow access
  52. # via 127.0.0.1 to disable public access
  53. # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
  54.  
  55. # Create a private network, which allows host-only access to the machine
  56. # using a specific IP.
  57. # config.vm.network "private_network", ip: "192.168.33.10"
  58.  
  59. # Create a public network, which generally matched to bridged network.
  60. # Bridged networks make the machine appear as another physical device on
  61. # your network.
  62. # config.vm.network "public_network"
  63.  
  64. # Share an additional folder to the guest VM. The first argument is
  65. # the path on the host to the actual folder. The second argument is
  66. # the path on the guest to mount the folder. And the optional third
  67. # argument is a set of non-required options.
  68. # config.vm.synced_folder "../data", "/vagrant_data"
  69.  
  70. # Provider-specific configuration so you can fine-tune various
  71. # backing providers for Vagrant. These expose provider-specific options.
  72. # Example for VirtualBox:
  73. #
  74. # config.vm.provider "virtualbox" do |vb|
  75. # # Display the VirtualBox GUI when booting the machine
  76. # vb.gui = true
  77. #
  78. # # Customize the amount of memory on the VM:
  79. # vb.memory = "1024"
  80. # end
  81. #
  82. # View the documentation for the provider you are using for more
  83. # information on available options.
  84.  
  85. # Enable provisioning with a shell script. Additional provisioners such as
  86. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  87. # documentation for more information about their specific syntax and use.
  88. # config.vm.provision "shell", inline: <<-SHELL
  89. # apt-get update
  90. # apt-get install -y apache2
  91. # SHELL
  92. end
Add Comment
Please, Sign In to add comment