Error running linux container on windows 2019 server AWS - amazon-web-services

I'm having problem while running Linux container on Windows Server 2019, AWS.
Following is the error:
failed to register layer: failed to start service utility VM (applydiff 7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b): container 7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b_svm encountered an error during CreateContainer: failure in a Windows system call: The virtual machine could not be started because a required feature is not installed. (0xc0370102) extra info: {"SystemType":"container","Name":"7867715a779e14ed8af41d812471a62615cb810cbce3df69a4ed0d2036086d7b_svm","Layers":null,"HvPartition":true,"HvRuntime":{"ImagePath":"C:\Program Files\Linux Containers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"bootx64.efi"},"ContainerType":"linux","TerminateOnLastHandleClosed":true}
Note: Hyper-V is activated.

Related

Connect to microsoft virtual machnine with Clion and debug `xv6` with `GDB`

I have a virtual machine in Microsoft Azure which runs Linux, and has the code of the xv6 operating system.
I want to debug it on my (Windows) computer. How can I connect to to the VM and the GDB/CGDB with my Clion?
I tried to add a Remote Host configuration in Build, Execution, Deployment | Toolchains and managed to connect to the VM, but it Clion requires a path to CMake and the compilers, and I (and Clion) can't find it, and get errors.
This is the error details (appears when I click more...):

how to set up kernel debugger with visual studio on virtual machine

i am now learning to debug kernel driver on virtual machine.
I am using virutalbox and i set it up like this:
https://i.imgur.com/XLh8G7C.pnghttps://i.imgur.com/Gm3svvr.pnghttps://i.imgur.com/Ng1XawN.png
i also installed WDK test target set up:
https://i.imgur.com/Mz4LnAI.png
then i set up the bcdedit commands on the VM and restart the vm:
https://i.imgur.com/qhF8flu.png
i tried to configure my vm driver device on visual studio like this:
https://i.imgur.com/UEcpXXj.png
but the status was "unvailable".
The "network hostname" i entered was the ipv4 of the virtualbox adapter found with ipconfig on my host pc.
https://i.imgur.com/bZ3rR13.png
in my view, i think the hostname/ip isnt the expected one so it caused the problem:https://i.imgur.com/XEIkZmx.png
Where should i get the hostname/ip address in order to make it connect?
I am trying to connect virtual machine to my visual studio kernel debugger with the serial port method.
My process is following a youtube video: https://www.youtube.com/watch?v=h6p-Kt-Cx9E
i expect the driver test configuration status to be "available" instead of "inavailable".

VirtualBox: VERR_VM_DRIVER_NOT_INSTALLED

I am trying to launch two VMs using docker machine:
docker-machine create --driver virtualbox myvm1
docker-machine create --driver virtualbox myvm2
I see the following error in the output:
(myvm2) Progress state: NS_ERROR_FAILURE
(myvm2) VBoxManage: error: Failed to create the host-only adapter
(myvm2) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(myvm2) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(myvm2) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(myvm2)
(myvm2) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
I installed the latest version of VirtualBox (6.0.0) from there. When I open VirtualBox window and click on the VMs in the left panel I get the following error popup:
UPDATE
I tried to re-install VirtualBox 6.0.0 and in the end of the VirtualBox installation process I saw the following screen:
Maybe it is a reason of the failures described above? My mac is running on 10.14.1 macOS Mojave
How can I fix these errors?
You probably need to approve the VirtualBox kernel extension in System Preferences under Security & Privacy:
After you allow the kernel extension, the installer should be able to run successfully.
The (rc=-1908) usually happens when the secure boot is enable, try to disable and run your vm again
Secure Boot settings are available in Startup Security Utility:
Turn on your Mac, then press and hold Command (⌘)-R immediately after you see the Apple logo to start up from macOS Recovery.
When you see the macOS Utilities window, choose Utilities > Startup Security Utility from the menu bar.
When you're asked to authenticate, click Enter macOS Password, then choose an administrator account and enter its password.
Select "No security" option
I got this exact error after upgrading my Mac to Monterey. Remove Virtualbox and reinstall solves the problem.

Hyperledger Composer "Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND" on windows 10

I'm trying to run the following blockchain tutorial on Windows 10
https://hyperledger.github.io/composer/tutorials/developer-guide.html
Everything went fine (all npm installs, fabric tools, download fabric, start fabric, create the project archive, composer runtime install) untill I ran the following command:
composer network start --card PeerAdmin#hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network#0.0.1.bna --file networkadmin.card
And
had this error:
Starting business network from archive: tutorial-network#0.0.1.bna
Business network definition:
Identifier: tutorial-network#0.0.1
Description: Tuto DevWorks
× Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND
Command failed
Previous successful command was:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName
tutorial-network √ Installing runtime for business network
tutorial-network. This may take a minute... Command succeeded
My configuration is:
WIN 10
Node v8.9.1
npm 5.5.1
Docker version 17.09.0-ce, build afdb6d4
git version 2.14.1.windows.1
I also tried with another bna archive and had the same issue.
Thanks for your help!
If this message occurs on the stage of instantiating the composer chaincode, one must check that there's a fabric channel defined and peers have joined it.
we don't, at present, support Windows 10. We support the platforms shown here:
https://hyperledger.github.io/composer/unstable/installing/development-tools.html
I was facing the issue in MacOS environment. I found that I haven't created the channel and joined the peers. Once I did that, I could start business network and ping.

Why does a VS2010 build on a jenkins slave using cygwin give fatal error C1902?

I have set up a jenkins slave server with cygwin and I'm launching builds on it via ssh.
The build of our project succeeds if run locally as the slave user both in the windows command prompt and in the cygwin command prompt. I can also ssh into the machine as the slave user and run the build successfully.
However, when jenkins runs the build as that slave, it fails trying to compile the first C++ project with the error: fatal error C1902: Program database manager mismatch; please check your installation.
Visual C++ 2010 express, and Visual C# 2010 express are both installed and required for our project to build.
In my research I found some indications that cygwin does not handle the remote login correctly here: https://java.net/projects/hudson/lists/users/archive/2008-10/message/130
Has anyone else solved this problem?
Try below solution
Use “Launch slave agents via Java Web Start” to add windows slave to jenkins master.
It will launch Jenkins service on windows machine using some local users account. Then change local user to the user you are using to build locally.
The problem with “Launch slave agents on Unix machines as SSH” method is, it runs connection using “cyg_server” user.