Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created May 17, 2023 16:16
Show Gist options
  • Save pvalena/8b08cfff5e4a7f06c456a0fc79cd654b to your computer and use it in GitHub Desktop.
Save pvalena/8b08cfff5e4a7f06c456a0fc79cd654b to your computer and use it in GitHub Desktop.
RPMs:
- vagrant-2.3.4-12.fc39.noarch
- vagrant-libvirt-0.11.2-1.fc39.noarch
- package vagrant-cloud is not installed
- vagrant-sshfs-1.3.7-6.fc38.noarch
- package vagrant-managed-servers is not installed
- ruby-3.2.1-180.fc39.x86_64
- rubygems-3.4.10-180.fc39.noarch
- rubygem-listen-3.7.1-2.fc39.noarch
- rubygem-erubi-1.12.0-1.fc38.noarch
- rubygem-rexml-3.2.5-180.fc39.noarch
- package rubygem-erubis is not installed
- rubygem-bcrypt_pbkdf-1.1.0-6.fc38.x86_64
- rubygem-ed25519-1.3.0-3.fc39.x86_64
- rubygem-net-ssh-7.1.0-12.fc39.noarch
- rubygem-net-scp-4.0.0-12.fc39.noarch
- rubygem-i18n-1.10.0-1.fc37.noarch
- rubygem-childprocess-4.1.0-4.fc39.noarch
- rubygem-ruby-libvirt-0.7.1-18.fc38.x86_64
- rubygem-fog-core-2.2.4-6.fc38.noarch
- rubygem-fog-json-1.2.0-10.fc38.noarch
- rubygem-fog-libvirt-0.11.0-1.fc38.noarch
Installed Packages
ruby.x86_64 3.2.1-180.fc39 @copr:copr.fedorainfracloud.org:pvalena:ruby
rubygem-bcrypt_pbkdf.x86_64 1.1.0-6.fc38 @copr:copr.fedorainfracloud.org:pvalena:rubygems
rubygem-childprocess.noarch 4.1.0-4.fc39 @copr:copr.fedorainfracloud.org:pvalena:vagrant-testing
rubygem-ed25519.x86_64 1.3.0-3.fc39 @copr:copr.fedorainfracloud.org:pvalena:vagrant-testing
rubygem-erubi.noarch 1.12.0-1.fc38 @copr:copr.fedorainfracloud.org:pvalena:rubygems
rubygem-fog-core.noarch 2.2.4-6.fc38 @rawhide
rubygem-fog-json.noarch 1.2.0-10.fc38 @rawhide
rubygem-fog-libvirt.noarch 0.11.0-1.fc38 @copr:copr.fedorainfracloud.org:pvalena:rubygems
rubygem-i18n.noarch 1.10.0-1.fc37 @copr:copr.fedorainfracloud.org:pvalena:rubygems
rubygem-listen.noarch 3.7.1-2.fc39 @copr:copr.fedorainfracloud.org:pvalena:vagrant-testing
rubygem-net-scp.noarch 4.0.0-12.fc39 @copr:copr.fedorainfracloud.org:jackorp:vagrant-devel
rubygem-net-ssh.noarch 7.1.0-12.fc39 @copr:copr.fedorainfracloud.org:jackorp:vagrant-devel
rubygem-rexml.noarch 3.2.5-180.fc39 @copr:copr.fedorainfracloud.org:pvalena:ruby
rubygem-ruby-libvirt.x86_64 0.7.1-18.fc38 @rawhide
rubygems.noarch 3.4.10-180.fc39 @rawhide
vagrant.noarch 2.3.4-12.fc39 @copr:copr.fedorainfracloud.org:jackorp:vagrant-devel
vagrant-libvirt.noarch 0.11.2-1.fc39 @copr:copr.fedorainfracloud.org:jackorp:vagrant-libvirt
vagrant-sshfs.noarch 1.3.7-6.fc38 @rawhide
>>> Smoke test
==> default: Domain is not created. Please run `vagrant up` first.
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.
Vagrant 2.3.4
id name provider state directory
---------------------------------------------------------------------------------------------
<snip/>
>>> TEST tmt-ci
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provision :shell, inline: <<-end
ls /vagrant
end
config.vm.provision :shell, inline: <<-end
set -xe
dnf update -y --refresh
dnf install -y vagrant{,-libvirt} '*/bin/virsh'
systemctl enable --now libvirtd
end
config.vm.provision :shell, run: 'always', privileged: false, inline: <<-end
set -xe
end
config.vm.provider :libvirt do |v|
v.memory = 4192
v.cpus = 2
# https://nts.strzibny.name/inception-running-vagrant-inside-vagrant-with-kvm/
v.nested = true
v.cpu_mode = "host-model"
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/37-cloud-base' version '37.20221105.0' is up to date...
==> 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: tmt-ci_default
==> default: -- Description: Source: test/tmt-ci/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 2
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 4192M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/tmt-ci_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.162:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/tmt-ci/ => /vagrant
==> default: Running provisioner: shell...
default: Running: inline script
<snip/>
+ 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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.162:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/tmt-ci/ => /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.
==> default: Running provisioner: shell...
default: Running: inline script
+ 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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 1
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 1_default
==> default: -- Description: Source: test/1/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/1_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.158:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/1/ => /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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.158:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 2
Vagrant.configure("2") do |config|
config.vm.define "rawhide" do |rawhide|
rawhide.vm.box = "fedora/37-cloud-base"
rawhide.vm.hostname = "this.is.my.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/37-cloud-base' version '37.20221105.0' is up to date...
==> rawhide: Creating image (snapshot of base box volume).
==> rawhide: Creating domain with the following settings...
==> rawhide: -- Name: 2_rawhide
==> rawhide: -- Description: Source: test/2/Vagrantfile
==> rawhide: -- Domain type: kvm
==> rawhide: -- Cpus: 1
==> rawhide: -- Feature: acpi
==> rawhide: -- Feature: apic
==> rawhide: -- Feature: pae
==> rawhide: -- Clock offset: utc
==> rawhide: -- Memory: 512M
==> rawhide: -- Base box: fedora/37-cloud-base
==> rawhide: -- Storage pool: default
==> rawhide: -- Image(vda): .local/share/libvirt/images/2_rawhide.img, virtio, 41G
==> rawhide: -- Disk driver opts: cache='default'
==> rawhide: -- Graphics Type: vnc
==> rawhide: -- Video Type: cirrus
==> rawhide: -- Video VRAM: 16384
==> rawhide: -- Video 3D accel: false
==> rawhide: -- Keymap: en-us
==> rawhide: -- TPM Backend: passthrough
==> rawhide: -- INPUT: type=mouse, bus=ps2
==> rawhide: Creating shared folders metadata...
==> rawhide: Starting domain.
==> rawhide: Domain launching with graphics connection settings...
==> rawhide: -- Graphics Port: 5900
==> rawhide: -- Graphics IP: 127.0.0.1
==> rawhide: -- Graphics Password: Not defined
==> rawhide: -- Graphics Websocket: 5700
==> rawhide: Waiting for domain to get an IP address...
==> rawhide: Waiting for machine to boot. This may take a few minutes...
rawhide: SSH address: 192.168.122.150:22
rawhide: SSH username: vagrant
rawhide: SSH auth method: private key
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: Machine booted and ready!
==> rawhide: Setting hostname...
==> rawhide: Rsyncing folder: test/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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> rawhide: Creating shared folders metadata...
==> rawhide: Starting domain.
==> rawhide: Domain launching with graphics connection settings...
==> rawhide: -- Graphics Port: 5900
==> rawhide: -- Graphics IP: 127.0.0.1
==> rawhide: -- Graphics Password: Not defined
==> rawhide: -- Graphics Websocket: 5700
==> rawhide: Waiting for domain to get an IP address...
==> rawhide: Waiting for machine to boot. This may take a few minutes...
rawhide: SSH address: 192.168.122.150:22
rawhide: SSH username: vagrant
rawhide: SSH auth method: private key
rawhide: Warning: Host unreachable. Retrying...
==> rawhide: Machine booted and ready!
==> rawhide: Rsyncing folder: test/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...
==> rawhide: Deleting the machine folder
+ vagrant status
Current machine states:
rawhide not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 3
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.synced_folder ".", "/lizmap"
# TODO:
#, type: "nfs"
#, type: "sshfs"
config.vm.provider :libvirt do |libvirt|
libvirt.driver = "qemu"
end
end
--> Skip: ============================================================
============================================================
>>> TEST 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: Checking if box 'debian/stretch64' version '9.12.0' is up to date...
==> test_vm: Uploading base box image as volume into Libvirt storage...
==> 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: -- Description: Source: test/4/Vagrantfile
==> test_vm: -- Domain type: kvm
==> test_vm: -- Cpus: 1
==> test_vm: -- Feature: acpi
==> test_vm: -- Feature: apic
==> test_vm: -- Feature: pae
==> test_vm: -- Clock offset: utc
==> test_vm: -- Memory: 512M
==> test_vm: -- Base box: debian/stretch64
==> test_vm: -- Storage pool: default
==> test_vm: -- Image(vda): .local/share/libvirt/images/4_test_vm.img, virtio, 20G
==> test_vm: -- Disk driver opts: cache='default'
==> test_vm: -- Graphics Type: vnc
==> test_vm: -- Video Type: cirrus
==> test_vm: -- Video VRAM: 16384
==> test_vm: -- Video 3D accel: false
==> test_vm: -- Keymap: en-us
==> test_vm: -- TPM Backend: passthrough
==> test_vm: -- INPUT: type=mouse, bus=ps2
==> test_vm: Creating shared folders metadata...
==> test_vm: Starting domain.
==> test_vm: Domain launching with graphics connection settings...
==> test_vm: -- Graphics Port: 5900
==> test_vm: -- Graphics IP: 127.0.0.1
==> test_vm: -- Graphics Password: Not defined
==> test_vm: -- Graphics Websocket: 5700
==> test_vm: Waiting for domain to get an IP address...
==> test_vm: Waiting for machine to boot. This may take a few minutes...
test_vm: SSH address: 192.168.122.251:22
test_vm: SSH username: vagrant
test_vm: SSH auth method: private key
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: Machine booted and ready!
+ 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: Attempting graceful shutdown of VM...
+ 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.12.0' is up to date...
==> test_vm: Creating shared folders metadata...
==> test_vm: Starting domain.
==> test_vm: Domain launching with graphics connection settings...
==> test_vm: -- Graphics Port: 5900
==> test_vm: -- Graphics IP: 127.0.0.1
==> test_vm: -- Graphics Password: Not defined
==> test_vm: -- Graphics Websocket: 5700
==> test_vm: Waiting for domain to get an IP address...
==> test_vm: Waiting for machine to boot. This may take a few minutes...
test_vm: SSH address: 192.168.122.251:22
test_vm: SSH username: vagrant
test_vm: SSH auth method: private key
test_vm: Warning: Host unreachable. Retrying...
==> test_vm: Machine booted and ready!
==> 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...
==> test_vm: Deleting the machine folder
+ vagrant status
Current machine states:
test_vm not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 5
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provider :libvirt do |libvirt|
libvirt.qemu_use_session = false
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/37-cloud-base' version '37.20221105.0' is up to date...
==> 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: 5_default
==> default: -- Description: Source: test/5/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): /var/lib/libvirt/images/5_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.121.103:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.121.103:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 6
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provider :libvirt do |libvirt|
libvirt.qemu_use_session = true
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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 6_default
==> default: -- Description: Source: test/6/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/6_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.39:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.39:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 7
memory = ENV["MEMORY"] || 2048
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provider :libvirt do |libvirt|
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/37-cloud-base' version '37.20221105.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: -- Description: Source: test/7/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 2048M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/7_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.16:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.16:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 8
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provider :libvirt do |domain|
#domain.qemu_use_session = false
# Add an extra disk
domain.storage :file, :size => '20G'
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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 8_default
==> default: -- Description: Source: test/8/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/8_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- Disk(vdb): .local/share/libvirt/images/8_default-vdb.qcow2, virtio, 20G
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.49:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Rsyncing folder: test/8/ => /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: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.49:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Rsyncing folder: test/8/ => /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...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 9
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.provider :libvirt do |libvirt|
libvirt.host = "lpcss"
libvirt.connect_via_ssh = true
libvirt.username = "libvirt"
libvirt.socket = '/var/run/libvirt/libvirt-sock'
libvirt.storage_pool_name = "default"
end
end
--> Skip: This is an experiment.
============================================================
============================================================
>>> TEST 10
Vagrant.configure("2") do |config|
config.vm.box = "fedora/37-cloud-base"
config.vm.network "forwarded_port", guest: 80, host: 8080
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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 10_default
==> default: -- Description: Source: test/10/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: fedora/37-cloud-base
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/10_default.img, virtio, 41G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.73:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Forwarding ports...
==> default: 80 (guest) => 8080 (host) (adapter eth0)
==> default: Rsyncing folder: test/10/ => /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: Clearing any previously set forwarded ports...
==> default: Attempting graceful shutdown of VM...
+ 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/37-cloud-base' version '37.20221105.0' is up to date...
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.73:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Forwarding ports...
==> default: 80 (guest) => 8080 (host) (adapter eth0)
==> default: Rsyncing folder: test/10/ => /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: Clearing any previously set forwarded ports...
==> default: Removing domain...
==> default: Deleting the machine folder
+ vagrant status
Current machine states:
default not created (libvirt)
The Libvirt domain is not created. Run `vagrant up` to create it.
--> Success!
>>> TEST 11
Vagrant.configure("2") do |config|
config.vm.box = "centos/stream8"
config.vm.box_url = "https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-Vagrant-8-20220913.0.x86_64.vagrant-libvirt.box"
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
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: No version detected for centos/stream8, using timestamp to watch for modifications. Consider
==> default: generating a local metadata for the box with a version to allow better handling.
==> default: See https://www.vagrantup.com/docs/boxes/format#box-metadata for further details.
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default: -- Name: 11_default
==> default: -- Description: Source: test/11/Vagrantfile
==> default: -- Domain type: kvm
==> default: -- Cpus: 1
==> default: -- Feature: acpi
==> default: -- Feature: apic
==> default: -- Feature: pae
==> default: -- Clock offset: utc
==> default: -- Memory: 512M
==> default: -- Base box: centos/stream8
==> default: -- Storage pool: default
==> default: -- Image(vda): .local/share/libvirt/images/11_default.img, virtio, 11G
==> default: -- Disk driver opts: cache='default'
==> default: -- Graphics Type: vnc
==> default: -- Video Type: cirrus
==> default: -- Video VRAM: 16384
==> default: -- Video 3D accel: false
==> default: -- Keymap: en-us
==> default: -- TPM Backend: passthrough
==> default: -- INPUT: type=mouse, bus=ps2
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.155:22
default: SSH username: vagrant
default: SSH auth method: private key
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: Machine booted and ready!
==> default: Installing SSHFS client...
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: test/11 => /vagrant
==> default: Checking Mount..
==> default: Folder Successfully Mounted!
+ 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: Attempting graceful shutdown of VM...
+ 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: Creating shared folders metadata...
==> default: Starting domain.
==> default: Domain launching with graphics connection settings...
==> default: -- Graphics Port: 5900
==> default: -- Graphics IP: 127.0.0.1
==> default: -- Graphics Password: Not defined
==> default: -- Graphics Websocket: 5700
==> default: Waiting for domain to get an IP address...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.122.155:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: test/11 => /vagrant
==> default: Checking Mount..
==> default: Folder Successfully Mounted!
==> 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...
==> default: Deleting the machine folder
+ 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