Network not reachable on both virtual machines - virtual

I have installed VMware Workstation for a while now. Today, I wanted to use one of my virtual machines(Ubuntu) ,but I have faced a problem:"network unreachable". I opened my second machine too and the same problem. I don't understand why the internet does not work on my virtual machines, considering the fact that on the host machine everything is great. I have NAT connections.

Related

Docker disables my wifi adapter (due to company policies)

My work laptop is installed with some policies that disable my wifi adapter when it detects a LAN connection.
When I install Docker for Windows 10, my wifi is disabled because there’s a Hyper-V ethernet.
Is there any workaround for this without compromising the policies?
I have been looking around the Internet for a while now and there seems to be no solution for the Hyper-V.
However, the new version of Docker offers to work on WSL 2 (Windows Subsystem for Linux) instead of Hyper-V, which doesn't cause this issue anymore for me now.
So for those who are experiencing the same problem, I guess you just need to install the latest Docker and choose WSL instead of Hyper-V. It also depends on your Windows 10 versions as well, as it may not support WSL. However, I think it's a pretty unique case where there's a policy applied on a computer like that.

Problem in creating host only adapter in windows 10 docker

I am wanted to use docker toolbox but the VM is causing problems as host only network adapter is not being created.(I am new using docker toolbox and VM, plus I got two 2 VM in VMware,does this affect?)
enter image description here
I have tried rebooting after installation, running it as admin, but it still left me banging my head.
Also there is exclamation mark on host-only-network adapter in device manager and it is not visible on network connections.
Please help this poor soul.
As told within the description of the docker toolbox is a not more supported legecy project.
Maybe upgrade to Docker for Windows now?

Nesting Hyper-V with a VM (i.e. Docker Windows Desktop within a VM)?

On a physical server with Windows Server 2019 Enterprise, I created Hyper V multiple VMs, both Servers and Win 10 Pro client.
I installed Docker Desktop (for Windows) on one of the Win 10 Pro VM clients.
The client virtual machine name is the Hyper-V Manager. I get an error when I try to start DockerDesktopVM, and the state remains off; any Docker command crashes Docker.
My questions:
Is there a conflict when nesting Hyper-V managers and VMs on the physical box?
How can you execute any docker commands when the DockerDesktopVM is off and cannot be started?
https://www.altaro.com/hyper-v/enable-nested-virtualization/
Q: How Do I Enable Nested Virtualization for Hyper-V Virtual Machines
A: Pass $true for Set-VMProcessor’s “ExposeVirtualizationExtensions” parameter
Set-VMProcessor <VMName> -ExposeVirtualizationExtensions $true
According to Docker FAQ
Docker Desktop is not supported in nested virtualization scenarios. It
might work in some cases and not in others.
https://docs.docker.com/desktop/faqs/general/#can-i-run-docker-desktop-in-nested-virtualization-scenarios
It should work even on AMD, according to MicrosoftDocs/Virtualization-Documentation issue 1276:
"Run Hyper-V in a Virtual Machine with Nested Virtualization"
Prerequisites
...
AMD EPYC/Ryzen processor or later
The Hyper-V host must be Windows Server 2022/Windows 11 or greater
VM configuration version 10.0 or greater
And:
What's new in Windows Server 2022
Nested virtualization is a feature that allows you to run Hyper-V inside of a Hyper-V virtual machine (VM).
Windows Server 2022 brings support for nested virtualization using AMD processors, giving more choices of hardware for your environments.
More information can be found at the nested virtualization documentation.

Docker for Windows can't reach the database in Windows 10 enterprise evaluation

I was trying Docker Desktop for Windows on a VM with Windows 10 Enterprise evaluation.
This is the error that I get:
I've searched round here but I haven't found nothing usefull. I have opened the log file and found error message like:
Failed to setup server socket listening on hyperv-connect://... Failed
to contact the database on \.\pipe\dockerDataBase.... File not found
Unable to write to database (continue like image above)
Nobody have idea? I've accepted the initial prompt when Docker asks me if I want to enable the Hyper-V feature and restart the computer after activation. Could it be a problem of nested virtualization?
I had the same problem and I solved it after I executed this command on a Powershell window:
bcdedit /set hypervisorlaunchtype Auto
I also had to enable CPU virtualization on the hardware properties of the virtual machine (I'm using VMWare vCenter, that might not be needed in your case)
The problem was the nested virtualization. Docker for Windows use Hyper-V behind the scene, Hyper-V was on the host machine too, so there's two nested virtual machine.
The steps are:
Create virtual machine named Docker (the one where Docker will be installed on) without dynamic memory allocation
Open Powershell and Set-VMProcessor -VMName "Docker" -ExposeVirtualizationExtensions $true
Install SO and Docker for Windows as usual
Be aware host machine and guest machine must share the same build number and both needs to be a Windows 10 or Windows Server 2016.

Redirect Serial Output to SSH or Local File - Device Lacks Serial Port and Being Accessed via SSH

Hi guys my problem is as follows:
Environment - Im in a windows machine and connected via ssh to an ubuntu machine that is running a hypervisor https://github.com/siemens/jailhouse alongside ubuntu.
Problem:
The hypervisor in question dumps debug and "cell"(like guest VM's but not quite) outputs to a serial port, and the physical machine that is running the hypervisor lacks a serial port.
What I need to know if it is possible:
I wish to redirect that serial output to SSH back to me or dump to a file that I can "nano" later.
Thanks in advance
Regards
André Santos
You can't. The reason is that the output is written by the hypervisor, not by the operating system, through a specific serial driver implemented in the hypervisor itself.
Thus, the hypervisor does not have knowledge of the Linux filesystem, nor of the Linux drivers, and the only channels that it can use are a 8250-compliant serial line or (in case of x86) the VGA.
Side note: depending on your particular needs, you may want to wrap the Jailhoused Linux through an additional Qemu/KVM virtual machine. In this case, the output of Jailhouse (exceuted by the guest machine) is written on the console of the host machine, and it can be easily retrievable through the SSH connection.

Resources