Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created November 5, 2019 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/2c046dc2b8f1139e841b8514ad6df738 to your computer and use it in GitHub Desktop.
Save pvalena/2c046dc2b8f1139e841b8514ad6df738 to your computer and use it in GitHub Desktop.
smoke test Vagrant 2.2.6
Packages installed:
- vagrant-2.2.6-1.fc32.1.noarch
- vagrant-libvirt-0.0.45-5.fc30.noarch
- ruby-2.6.5-124.fc32.x86_64
- rubygems-3.0.3-124.fc32.noarch
- rubygem-net-ssh-5.1.0-2.fc31.noarch
- rubygem-i18n-1.7.0-1.fc32.noarch
- rubygem-childprocess-1.0.1-4.fc31.noarch
- rubygem-ruby-libvirt-0.7.1-6.fc31.x86_64
- rubygem-fog-core-2.1.2-3.fc32.noarch
- rubygem-fog-json-1.2.0-3.fc32.noarch
- rubygem-fog-libvirt-0.6.0-1.fc32.noarch
>>> Smoke test
==> default: Remove stale volume...
==> default: Domain is not created. Please run `vagrant up` first.
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'fedora/29-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/29-cloud-base'
default: URL:
==> default: Adding box 'fedora/29-cloud-base' (v29.20181024.1) for provider: libvirt
default: Downloading:
[K default: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K default: Download redirected to host:
[K default: Progress: 100% (Rate: 384/s, Estimated time remaining: --:--:--)
[K default: Progress: 0% (Rate: 0</s, Estimated time remaining: --:--:--)
[K default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
[K default: Progress: 10% (Rate: 15.1M/s, Estimated time remaining: 0:00:17)
[K default: Progress: 49% (Rate: 110M/s, Estimated time remaining: 0:00:03)
[K default: Progress: 89% (Rate: 110M/s, Estimated time remaining: 0:00:01)
[K==> default: Successfully added box 'fedora/29-cloud-base' (v29.20181024.1) for 'libvirt'!
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 1_default
==> default: -- Domain type: qemu
==> 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/29-cloud-base
==> default: -- Storage pool: default
==> default: -- Image: /home/lpcs/.local/share/libvirt/images/1_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
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
default: SSH address: 192.168.122.137:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/1/ => /vagrant
id name provider state directory
------------------------------------------------------------------------
b19f00d default libvirt preparing /home/lpcs/lpcsf-new/test/vagrant/1
The above shows information about all known Vagrant environments
on this machine. This data is cached and may not be completely
up-to-date (use "vagrant global-status --prune" to prune invalid
entries). To interact with any of the machines, you can go to that
directory and run Vagrant, or you can use the ID directly with
Vagrant commands from any directory. For example:
"vagrant destroy 1a2b3c4d"
>>> /home/lpcs/lpcsf-new/test/vagrant/1
Vagrant.configure("2") do |config|
config.vm.box = "fedora/29-cloud-base"
config.vm.provider :libvirt do |libvirt|
libvirt.driver = "qemu"
end
end
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> default: Halting domain...
+ vagrant status
Current machine states:
default shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
==> default: Creating shared folders metadata...
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/1/ => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> default: Removing domain...
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/2
Vagrant.configure("2") do |config|
config.vm.define "rawhide" do |rawhide|
rawhide.vm.box = "fedora/29-cloud-base"
rawhide.vm.hostname = ".vagrant.box"
rawhide.vm.provider :libvirt do |libvirt|
libvirt.driver = "kvm"
end
end
end
+ vagrant status
Current machine states:
rawhide not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'rawhide' up with 'libvirt' provider...
==> rawhide: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> rawhide: Creating image (snapshot of base box volume).
==> rawhide: Creating domain with the following settings...
==> rawhide: -- Name: 2_rawhide
==> rawhide: -- Domain type: kvm
==> rawhide: -- Cpus: 1
==> rawhide: -- Feature: acpi
==> rawhide: -- Feature: apic
==> rawhide: -- Feature: pae
==> rawhide: -- Memory: 512M
==> rawhide: -- Management MAC:
==> rawhide: -- Loader:
==> rawhide: -- Nvram:
==> rawhide: -- Base box: fedora/29-cloud-base
==> rawhide: -- Storage pool: default
==> rawhide: -- Image: /home/lpcs/.local/share/libvirt/images/2_rawhide.img (41G)
==> rawhide: -- Volume Cache: default
==> rawhide: -- Kernel:
==> rawhide: -- Initrd:
==> rawhide: -- Graphics Type: vnc
==> rawhide: -- Graphics Port: -1
==> rawhide: -- Graphics IP: 127.0.0.1
==> rawhide: -- Graphics Password: Not defined
==> rawhide: -- Video Type: cirrus
==> rawhide: -- Video VRAM: 9216
==> rawhide: -- Sound Type:
==> rawhide: -- Keymap: en-us
==> rawhide: -- TPM Path:
==> rawhide: -- INPUT: type=mouse, bus=ps2
==> rawhide: Creating shared folders metadata...
==> rawhide: Starting domain.
==> rawhide: Waiting for domain to get an IP address...
==> rawhide: Waiting for SSH to become available...
rawhide:
rawhide: Vagrant insecure key detected. Vagrant will automatically replace
rawhide: this with a newly generated keypair for better security.
rawhide:
rawhide: Inserting generated public key within guest...
rawhide: Removing insecure key from the guest if it's present...
rawhide: Key inserted! Disconnecting and reconnecting using new SSH key...
==> rawhide: Setting hostname...
==> rawhide: Configuring and enabling network interfaces...
rawhide: SSH address: 192.168.122.151:22
rawhide: SSH username: vagrant
rawhide: SSH auth method: private key
==> rawhide: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/2/ => /vagrant
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
rawhide running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> rawhide: Halting domain...
+ vagrant status
Current machine states:
rawhide shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'rawhide' up with 'libvirt' provider...
==> rawhide: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> rawhide: Starting domain.
==> rawhide: Waiting for domain to get an IP address...
==> rawhide: Waiting for SSH to become available...
==> rawhide: Creating shared folders metadata...
==> rawhide: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/2/ => /vagrant
==> rawhide: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> rawhide: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
rawhide running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> rawhide: Removing domain...
+ vagrant status
Current machine states:
rawhide not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/3
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
end
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
default: Box Provider: libvirt
default: Box Version: >= 0
==> default: Loading metadata for box 'centos/7'
default: URL:
==> default: Adding box 'centos/7' (v1905.1) for provider: libvirt
default: Downloading:
[K default: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K default: Download redirected to host:
[K default: Progress: 100% (Rate: 283/s, Estimated time remaining: --:--:--)
[K default: Progress: 9% (Rate: 25.8M/s, Estimated time remaining: 0:00:13)
[K default: Progress: 36% (Rate: 100M/s, Estimated time remaining: 0:00:04)
[K default: Progress: 63% (Rate: 100M/s, Estimated time remaining: 0:00:02)
[K default: Progress: 89% (Rate: 99.2M/s, Estimated time remaining: --:--:--)
[K==> default: Successfully added box 'centos/7' (v1905.1) for 'libvirt'!
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 3_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: centos/7
==> default: -- Storage pool: default
==> default: -- Image: /home/lpcs/.local/share/libvirt/images/3_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
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
default: SSH address: 192.168.122.250:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/3/ => /vagrant
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> default: Halting domain...
+ vagrant status
Current machine states:
default shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'centos/7' version '1905.1' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
==> default: Creating shared folders metadata...
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/3/ => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> default: Removing domain...
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/4
Vagrant.configure("2") do |config|
config.vm.define :test_vm do |test_vm|
test_vm.vm.box = "debian/stretch64"
test_vm.vm.synced_folder ".", "/vagrant", :type => "nfs", :disabled => "true"
end
end
+ vagrant status
Current machine states:
test_vm not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'test_vm' up with 'libvirt' provider...
==> test_vm: Box 'debian/stretch64' could not be found. Attempting to find and install...
test_vm: Box Provider: libvirt
test_vm: Box Version: >= 0
==> test_vm: Loading metadata for box 'debian/stretch64'
test_vm: URL:
==> test_vm: Adding box 'debian/stretch64' (v9.9.0) for provider: libvirt
test_vm: Downloading:
[K test_vm: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K test_vm: Progress: 100% (Rate: 456/s, Estimated time remaining: --:--:--)
[K test_vm: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K test_vm: Download redirected to host:
[K test_vm: Progress: 100% (Rate: 1773/s, Estimated time remaining: --:--:--)
[K test_vm: Progress: 0% (Rate: 18247/s, Estimated time remaining: 3:55:54)
[K test_vm: Progress: 3% (Rate: 7499k/s, Estimated time remaining: 0:01:29)
[K test_vm: Progress: 14% (Rate: 17.1M/s, Estimated time remaining: 0:00:24)
[K test_vm: Progress: 20% (Rate: 15.4M/s, Estimated time remaining: 0:00:19)
[K test_vm: Progress: 26% (Rate: 16.5M/s, Estimated time remaining: 0:00:16)
[K test_vm: Progress: 36% (Rate: 17.8M/s, Estimated time remaining: 0:00:12)
[K test_vm: Progress: 45% (Rate: 21.3M/s, Estimated time remaining: 0:00:10)
[K test_vm: Progress: 56% (Rate: 21.0M/s, Estimated time remaining: 0:00:07)
[K test_vm: Progress: 66% (Rate: 23.9M/s, Estimated time remaining: 0:00:05)
[K test_vm: Progress: 77% (Rate: 25.0M/s, Estimated time remaining: 0:00:03)
[K test_vm: Progress: 88% (Rate: 25.7M/s, Estimated time remaining: 0:00:02)
[K test_vm: Progress: 99% (Rate: 26.3M/s, Estimated time remaining: --:--:--)
[K==> test_vm: Successfully added box 'debian/stretch64' (v9.9.0) for 'libvirt'!
==> test_vm: Creating image (snapshot of base box volume).
==> test_vm: Creating domain with the following settings...
==> test_vm: -- Name: 4_test_vm
==> test_vm: -- Domain type: kvm
==> test_vm: -- Cpus: 1
==> test_vm: -- Feature: acpi
==> test_vm: -- Feature: apic
==> test_vm: -- Feature: pae
==> test_vm: -- Memory: 512M
==> test_vm: -- Management MAC:
==> test_vm: -- Loader:
==> test_vm: -- Nvram:
==> test_vm: -- Base box: debian/stretch64
==> test_vm: -- Storage pool: default
==> test_vm: -- Image: /home/lpcs/.local/share/libvirt/images/4_test_vm.img (10G)
==> test_vm: -- Volume Cache: default
==> test_vm: -- Kernel:
==> test_vm: -- Initrd:
==> test_vm: -- Graphics Type: vnc
==> test_vm: -- Graphics Port: -1
==> test_vm: -- Graphics IP: 127.0.0.1
==> test_vm: -- Graphics Password: Not defined
==> test_vm: -- Video Type: cirrus
==> test_vm: -- Video VRAM: 9216
==> test_vm: -- Sound Type:
==> test_vm: -- Keymap: en-us
==> test_vm: -- TPM Path:
==> test_vm: -- INPUT: type=mouse, bus=ps2
==> test_vm: Creating shared folders metadata...
==> test_vm: Starting domain.
==> test_vm: Waiting for domain to get an IP address...
==> test_vm: Waiting for SSH to become available...
test_vm:
test_vm: Vagrant insecure key detected. Vagrant will automatically replace
test_vm: this with a newly generated keypair for better security.
test_vm:
test_vm: Inserting generated public key within guest...
test_vm: Removing insecure key from the guest if it's present...
test_vm: Key inserted! Disconnecting and reconnecting using new SSH key...
==> test_vm: Configuring and enabling network interfaces...
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
test_vm running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> test_vm: Halting domain...
+ vagrant status
Current machine states:
test_vm shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'test_vm' up with 'libvirt' provider...
==> test_vm: Checking if box 'debian/stretch64' version '9.9.0' is up to date...
==> test_vm: Starting domain.
==> test_vm: Waiting for domain to get an IP address...
==> test_vm: Waiting for SSH to become available...
==> test_vm: Creating shared folders metadata...
==> test_vm: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> test_vm: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
test_vm running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> test_vm: Removing domain...
+ vagrant status
Current machine states:
test_vm not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/5
Vagrant.configure("2") do |config|
config.vm.box = "fedora/29-cloud-base"
config.vm.provider :libvirt do |libvirt|
# Use QEMU session instead of system connection
libvirt.qemu_use_session = false
# URI of QEMU session connection, default is as below
#libvirt.uri = 'qemu:///session'
# URI of QEMU system connection, use to obtain IP address for management
#libvirt.system_uri = 'qemu:///system'
# Path to store libvirt images for the virtual machine, default is as ~/.local/share/libvirt/images
#_pool_path = '/home/user/.local/share/libvirt/images'
# Management network device
#_network_device = 'virbr0'
end
# Public network configuration using existing network device
# Note: Private networks do not work with QEMU session enabled as root access is required to create new network devices
# :public_network, :dev => "virbr1",
# :mode => "bridge",
# :type => "bridge"
end
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 5_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/29-cloud-base
==> default: -- Storage pool: default
==> default: -- Image: /var/lib/libvirt/images/5_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
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
default: SSH address: 192.168.121.216:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/5/ => /vagrant
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> default: Halting domain...
+ vagrant status
Current machine states:
default shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/29-cloud-base' version '29.20181024.1' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
==> default: Creating shared folders metadata...
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/5/ => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> default: Removing domain...
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/6
Vagrant.configure("2") do |config|
config.vm.box = "fedora/30-cloud-base"
config.vm.provider :libvirt do |libvirt|
# Use QEMU session instead of system connection
libvirt.qemu_use_session = true
# URI of QEMU session connection, default is as below
#libvirt.uri = 'qemu:///session'
# URI of QEMU system connection, use to obtain IP address for management
#libvirt.system_uri = 'qemu:///system'
# Path to store libvirt images for the virtual machine, default is as ~/.local/share/libvirt/images
#_pool_path = '/home/user/.local/share/libvirt/images'
# Management network device
#_network_device = 'virbr0'
end
# Public network configuration using existing network device
# Note: Private networks do not work with QEMU session enabled as root access is required to create new network devices
# :public_network, :dev => "virbr1",
# :mode => "bridge",
# :type => "bridge"
end
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'fedora/30-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/30-cloud-base'
default: URL:
==> default: Adding box 'fedora/30-cloud-base' (v30.20190425.0) for provider: libvirt
default: Downloading:
[K default: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K default: Progress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)
[K default: Download redirected to host:
[K default: Progress: 100% (Rate: 311/s, Estimated time remaining: --:--:--)
[K default: Progress: 0% (Rate: 0</s, Estimated time remaining: --:--:--)
[K default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
[K default: Progress: 14% (Rate: 20.4M/s, Estimated time remaining: 0:00:12)
[K default: Progress: 52% (Rate: 110M/s, Estimated time remaining: 0:00:02)
[K default: Progress: 90% (Rate: 110M/s, Estimated time remaining: --:--:--)
[K==> default: Successfully added box 'fedora/30-cloud-base' (v30.20190425.0) for 'libvirt'!
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 6_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/30-cloud-base
==> default: -- Storage pool: default
==> default: -- Image: /home/lpcs/.local/share/libvirt/images/6_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
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
default: SSH address: 192.168.122.21:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/6/ => /vagrant
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> default: Halting domain...
+ vagrant status
Current machine states:
default shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/30-cloud-base' version '30.20190425.0' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
==> default: Creating shared folders metadata...
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/6/ => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> default: Removing domain...
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> /home/lpcs/lpcsf-new/test/vagrant/7
memory = ENV["MEMORY"] || 2048
Vagrant.configure("2") do |config|
config.vm.box = "fedora/30-cloud-base"
config.vm.provider :libvirt do |libvirt|
libvirt.qemu_use_session = false
libvirt.nested = true
libvirt.memory = memory
end
end
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/30-cloud-base' version '30.20190425.0' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 7_default
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Memory: 2048M
==> default: -- Management MAC:
==> default: -- Loader:
==> default: -- Nvram:
==> default: -- Base box: fedora/30-cloud-base
==> default: -- Storage pool: default
==> default: -- Image: /var/lib/libvirt/images/7_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
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
default: SSH address: 192.168.121.206:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/7/ => /vagrant
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant halt
==> default: Halting domain...
+ vagrant status
Current machine states:
default shutoff (libvirt)
The Libvirt domain is not running. Run `vagrant up` to start it.
+ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'fedora/30-cloud-base' version '30.20190425.0' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
==> default: Creating shared folders metadata...
==> default: Rsyncing folder: /home/lpcs/lpcsf-new/test/vagrant/7/ => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
+ vagrant ssh -c 'let "n=11*11" ; echo ${n}'
121
--> Ok
+ vagrant status
Current machine states:
default running (libvirt)
The Libvirt domain is running. To stop this machine, you can run
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
+ vagrant destroy -f
==> default: Removing domain...
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment