Hyper-V VM failing to start - virtual-machine

I use an older version of windows for some dev/testing purposes using hyper-v on my win 10 machine. I recently moved the .vhdx file from one drive to another as I needed some space for other work. I then moved back the .vhdx file to its original location but I am now getting this error. Any idea how to fix it?
or this if I try without disabling checkpoint

Solution
Right click on the VHD file, click properties. On the General tab, click Advanced and check if the Compress or Encrypt is selected.

Related

InfluxDB, Can I use the database files from an old installation, where raspbian chrashed during an update, on a new installation?

When updating raspbian on my PI3 some package failed and after that, reboot failed.
The green led doesn't even give a "blink" and nothing on the screen.
So I think I have to reinstall it. But then the whole card will be formatted.
As I have some measurements on the card I want to know if there is a way to restore the database on a new installation.
The card seems ok as I can read all files on it. I just have to copy /var/lib/influxdb to another computer.
But is it then possible to restore the data to a new installation?
Well, I solved it.
I copied the influx directory (recursively)to another computer.
I installed a new OS on my PI3.
I copied the directory, again recursively, to /var/lib/on the new OS.
I Installed influxdb and started InfluxDB. Voila! The data was there!
Happy I am.
Thank's for watching!

VirtualBox won't run win10: Failed to open a session for the virtual machine w10. Result Code: NS_ERROR_FAILURE (0x80004005)

Ok so I want to get a virtual machine with Windows so I can download applications only on Windows (Not on OSX (I'm on Big Sur 11.2.3 by the way)), so I downloaded VirtualBox, then downloaded the Windows thing which apparently I have to (as seen in one of the pics) (you can tell I have hardly any experience with vms), then I created a new vm in the VirtualBox app, and left all the default settings except for the type of hard drive (which is also in one of the pictures), then I clicked Start and it asked me to add a 'virtual optical disk file', so I clicked on the folder button then clicked add in the top left, and it gave me this error code:
Failed to open a session for the virtual machine w10.
The VM session was aborted.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}
as you can also see in one of the pictures below. Also, when I leave the screen for a couple of minutes right before I click on the previously mentioned add button, this appears:
but I tried just leaving it to load, and nothing happened. I have tried uninstalling using the uninstall tool twice, rebooting my Mac, etc etc, and yes I have allowed everything I need to in the Security settings. I'm not installing it on a moderator account, but the Windows 10 virtual optical disk file is in Documents which the account I'm on has read and write access to, and obviously the actual VM is in applications.
Thanks so much!
Here's the previously mentioned image of the one changed setting:
And here's the pic of the Win10 64-bit I had to install:
thanks everyone!
VirtualBox Version: 6.1.22 r144080 (Qt5.6.3)
Host Operating System: MacOS BigSur
I came across exactly same issue, where clicking on add to choose image was crashing the dialog. This issue persists in the latest version of Virtual Box for Mac.
I could figure out couple of ways to avoid clicking on Add button to choose image.
First Option:
Steps:
Click on Settings to open settings window for your VM.
Choose Storage
Select Empty disc and choose Disk image by clicking small disc icon in the Attributes section. Please follow the image to have visual instructions.
Second Option:
Steps:
Click on VM's Normal start
Once you get the option to choose image, simply cancel the dialog.
Now click on the small disc icon in the bottom of VM's dialog to choose the image.
Hope this helps. Feel free to comment if you find this post useful.
I had the same message because of permissions at directories where the hard disks were stored in. So, just execute VirtualBox 'As Administrator' and all run well.
I was getting the same error on Ubuntu 22.04 machine while trying to start an existing or a new VM-
Failed to open a session for the virtual machine NuacareRocky.
The VM session was aborted.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}
I tried a few things as suggested on youtube, but nothing worked. finally, I just upgraded the extension and it worked.

Windows Desktop doesn't show up on WSL

I just recently set up WSL with Ubuntu 18.04 on my new windows computer. I know that to access my windows files from the linux side, the C:\ drive is mapped to /mnt/c. When I try to cd to /mnt/c/Users/malik22/Desktop, however, I get a No such file or directory error. I access my window Downloads, Documents, etc. just fine from the linux side, but for some reason Desktop seems to be the only one not present.
I've been using WSL for over a year now on my old computer and have never run into this issue. Any ideas?
If your Desktop is backed up in your OneDrive it won't show up in your user directory.
You can either create a symbolic link as mentioned below by #raghav-malik or else choose to not back up your Desktop (you can instead back up your Documents directory).

"Not Enough Memory available" exception while running windows phone 8.1 emulator

"Windows Phone Emulator is unable to verify that the virtual machine is running :
Not Enough memory is available in the system to start an emulator that uses 2048 MB of startup RAM"
I am a beginner to Windows Phone App developement.I was trying to Deploy a Hub App template and while executing the code for the emulator I got the above error message! Please help me out.
Probably its because your machine does not hove enough RAM? acording to this article there are some workarounds.
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.
To work around this problem in a system that is running many programs that are using lots of memory, try to close those programs and then restart the emulator.
If the emulator still does not start, you can disable the Hyper-V runtime memory monitoring functionality by adding a MemoryReserve registry. To do this, follow these steps:
Start Registry Editor.
Locate the following registry subkey:
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization
Right-click the Virtualization folder, point to New, and then click DWORD Value..
Type MemoryReserve, and then press Enter.
Double-click MemoryReserve, enter 2048 in the Value data box, select the Decimal option, and then click OK.
Close Registry Editor.
In systems that experience this problem and that have fewer than 8 GB of RAM installed, a MemoryReserve value of 2048 (2 GB) is recommended. A value of zero (0) causes this registry setting to be ignored.
Note You must restart the computer for this registry setting to take effect.
If this doesnt help give some more info about your machine haracteristics.
Also you can check this article

Windows 8 advanced startup command prompt documentation

I take part in development of disk filter driver.
Windows 8 has special recovery mode: Advanced Startup Command Prompt.
It is similar to Safe Mode Command Prompt in previous versions of Windows. But it works differently. For example not all commands are available. And not all drivers are loaded. And our driver is not loaded too.
Our driver must be loaded, because it encrypt/decrypt disk content. Without it disk content is unavailable.
How we can solve this problem? How driver can force Windows to load it in Advanced Startup Command Prompt? Probably we need to develop special type of driver, for this mode?
I cannot find detailed documentation about how Advanced Startup Command Prompt works. Is such documentation exist?
just add a small unencrypted boot bcd/swap partition upon making your install image. windows makes its own 300 meg partition too. simple to build.
3 partitions after a diskpart clean
1 windows partition (installed upon w8 1st reboot on install)
2 ntfs partition unencrypted that holds the BCD, SWAP, some other stuff
3 a single VHD File, or more :), on a huge encrypted partition
use easy bcd to choose the vhd of your choice, if you go from disk to disk, all you need is the VHD and the original BCD that the Windows was installed into. Basically a windows installation ties to the BCD, cant move one vhd from one disk to another without the BCD.
Pro,Ultimate,Server, et al are vhd bootable