How Do You Connect to a VM in Oracle VirtualBox from a Desktop?

Problem scenario
You are connecting to a VM in Oracle VirtualBox from a desktop. The pings to the VM are not responding. What should you do?

Solution
Go to Devices -Network -Network Settings
The “Attached to:” setting hould be “Bridged Adapter”
The “Name” setting should what you think is appropriate. Not uncommonly this will be en0 Wi-Fi.

 » Read more..

How Do You Install CentOS when the Installation Source Option is a URL Exclusively (without an Option for a Local ISO)?

Problem scenario
You are trying to install CentOS in an offline manner. You get to the “Installation Summary” screen. The Software section says “Installation Source…Setting up installation source.” There is a yellow triangle with an exclamation point near the “Installation Source” button. The “Begin installation” button is grayed out. You want to choose a local ISO, and you thought it was installing via a local ISO. You do not have access to the internet.

 » Read more..

How Do You Troubleshoot “Some of the defined forwarded ports would collide” after Running a Chef Kitchen or Ansible Molecule Command?

Problem scenario
You run a kitchen or molecule command. It fails with an error about ports. What should you do?

Solution
Find what other machines are running in your VPC. This error message seems to be relevant to Vagrant (because if you google it, you will see Vagrant-related postings). If you are using Vagrant, run this command: vagrant global-status

If you are not using Vagrant,

 » Read more..

How Do You Install SUSE when It Fails with a Kernel Error with Little Information?

Problem scenario
Linux SUSE won’t install. When the installation process is happening it stops with an abortive error that exits the pretty GUI menu sequence. You get “linuxrc 7.0.15 (Kernel 5.3.18-lp152.19-default) an error occurred during the installation.” What should you do to install SUSE?

Possible Solution #1
Start over. When you see this window “YaST2 The system has an active network connection.

 » Read more..

How Do You Troubleshoot the Vagrant Message “/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require’: cannot load such file — winrm (LoadError)”?

Problem scenario
You are running Vagrant, but you get this error: “/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require’: cannot load such file — winrm (LoadError)”

You run “gem list” (or “sudo gem list”) and see winrm is installed.

What should you do?

Possible Solution #1 (recommended)

  1. Run this command:

gem list | grep libvirt

2. Verify that libvirt’s version is at least 0.6 or higher.

 » Read more..

How Do You Troubleshoot “/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require’: cannot load such file — winrm-elevated (LoadError)”?

Problem scenario
You run a Vagrant command. But you get this message: “/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require’: cannot load such file — winrm-elevated (LoadError)”

What should you do?

Solution
Run this command:

vagrant plugin install winrm-elevated  » Read more..

How Do You Troubleshoot Vagrant when You Receive “The box you’re attempting to add doesn’t support the provider you requested”?

Problem scenario
You run “vagrant up”, but you get one of the following error messages:

The box you’re attempting to add doesn’t support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn’t
simply misspell it.

If you’re adding a box from HashiCorp’s Vagrant Cloud, make sure the box is
released.

 » Read more..

How Do You Respond to a Vagrant Prompt for which Interface the Network Should Bridge to?

Problem scenario
You are running Vagrant to create a VM on Oracle VirtualBox. You are given a prompt after your “vagrant up” command:
“Which interface should the network bridge to?”
No option seems to work. You have used a variety of different names, GUIDs, syntaxes, etc. What should you do?

Solution
Use “1)” or “2)” or any of the integer values listed above the question.

 » Read more..

How Do You Create a Windows 2016 Server with Vagrant and Oracle VirtualBox?

Problem scenario
You want to use Windows 2016 with 2 GB of RAM. You have Oracle VirtualBox installed on a Linux server. You want the VM to be able to communicate with the host or other VMs on the host. What should you do?

Solution
Prerequisite: You have Oracle VirtualBox set up. You know what adapters you can attach a VM to. (Options may include enp1s0,

 » Read more..

How Do You See the NICs That Oracle VirtualBox Uses?

Problem scenario
You know Oracle VirtualBox on Linux has access to different network interfaces. The names of these NICs needs to be correct for some purpose of yours. How do you view or list this (for the purposes of creating a Vagrantfile)?

Solution
Run this command if you are running Unix/Linux: VBoxManage list bridgedifs

 » Read more..