Score:0

Linux Vagrant machine stops working after some time on Windows

gb flag

I have a server with Windows Server 2012 R2 and also a second server with Windows Server 2019 Essentials. I have installed VirtualBox 6.1 and a web application inside this vagrant. On both servers, the application is running just fine. However, I am facing an issue with various vagrant commands(halt, ssh, reload). Problem is that when I restart the whole windows machine and run vagrant up, everything works fine, a web app is running and I am able to use vagrant ssh. But after some time(10 days) when I try to run any of the vagrant command it shows me an error:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["showvminfo", "2506e300-6742-49c3-8e39-f645ef1d3563"]

But vagrant machine is still running fine inside because I am able to access a webpage.

I also try to run showvminfo command but nothing special is showing there. I also try to run VirtualBox and check machines there:

  • on the first server, the machine is not even listed inside VirtualBox GUI
  • on the second server, the machine is listed in GUI but an error Callee RC: REGDB_E_READREGDB (0x80040150)

It is frustrating because the machine is running fine but I am not able to ssh in it and I am forced to restart the windows machine to resolve the issue.

Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  config.vm.box = "ubuntu.box"

  # install docker
  config.vm.provision :docker

  config.vm.provider "virtualbox" do |v|
    v.memory = 16384
    v.customize ["modifyvm", :id, "--ioapic", "on"]
    v.cpus = 4
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
  end

  config.vm.network "forwarded_port", guest: 443, host: 443
  config.vm.network "forwarded_port", guest: 80, host: 80
  config.vm.network "private_network", ip: "10.10.10.10"
end

How can I resolve the issue or trace the problem?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.