Resize WinXP32 QEMU virtual machine always causes disk read error / OS load error on boot - resize

Fedora 27 x86_64.
I have a WinXP32 qemu virtual machine that works fine, but I want to increase the disk size.
I have Googled extensively and followed several sets of instructions for resizing, using both qemu-img and virt-resize. In every case, booting the new vm itself works, but results in Windows reporting either "Disk read error" or "Error loading operating system".
I can create a new empty qemu vm of the desired size, but that is not much use as I do not know how to transfer my content from the old vm to the new.
Am I doing something stupid? Is there another tool I should be using?

Related

Docker Desktop Windows - Abysmal performance in AMD system?

I've recently assembled a new AMD Desktop, to replace an older Dell Latitude E7540 laptop.
The AMD Desktop:
Ryzen 3 3100 # 3.8GHz (4C/8T), 32GB DDR4 3600 CL17 RAM, Corsair P600
Gen4 SSD
The DELL Laptop:
Dell Latitude E7540: Intel I7-5600U # 2.6GHz (2C/4T), 16 MB RAM DDR3 1600, Samsung mSATA PM851
On the new AMD Desktop, when executing a docker build command, two situations occur:
The performance is dreadful, even building a simple image, it takes a long time for the command to start. After starting, it takes a long long time to complete (when it completes)
The build window crashes almost 50% of the time.
The benchmarks indicate that the new AMD Desktop is 3.5x faster at single core, and 6x faster at multicore.
As such, I was expecting a much better performance with the new AMD Desktop.
Unfortunately, that's not the case, and for the same Dockerfile (which generates a very big image):
The Dell starts faster
The Dell completes faster (10m vs 30m)
On the Dell, the build window never crashes.
The only difference between both systems is that one is an Intel platform, the new one an Ryzen 3 AMD.
Environment Details are the same on both machines:
Windows Version: Windows 10 Ent. 19049
Docker Desktop Version: Docker 3.0.0
What can explain this abysmal performance on Docker-Desktop on the new AMD system?
After a few troubling days, i can confirm that the problem is not AMD related.
The culprit is the Antivirus, that when ON, its scanning the files used by Docker, which cause all the problems i've described.
Docker documentation states how to disable the antivirus to scan Docker related files:
https://docs.docker.com/engine/security/antivirus/
When antivirus software scans files used by Docker, these files may be locked in a way that causes Docker commands to hang.
One way to reduce these problems is to add the Docker data directory (/var/lib/docker on Linux, %ProgramData%\docker on Windows Server, or $HOME/Library/Containers/com.docker.docker/ on Mac) to the antivirus’s exclusion list. However, this comes with the trade-off that viruses or malware in Docker images, writable layers of containers, or volumes are not detected. If you do choose to exclude Docker’s data directory from background virus scanning, you may want to schedule a recurring task that stops Docker, scans the data directory, and restarts Docker.

Lags in Libvirt 5.9.0

I am using Arch Linux 5.3.13-arch1-1 and libvirt 5.9.0.
After I made a linux update (sudo pacman -Syu), I got the new, libvirt version mentioned above.
But soon after I realized, while programming in Eclipse, that copy paste does not work anymore. After couple of tries, when I try to copy some lines of code, it freezes for a short time, and looses the copied text in the clipboard.
I converted the VMs into vdi and continuing to work with Virtual Box. There, on the same laptop and the same VM, I don't have that issue!
Is this a known issue? I've got other VMs which are optimized for KVM.

"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

Chrome OS in VMPlayer

Trying to create a virtual machine using VMPlayer, I discovered that as the Chrome OS is now a Release Candidate, it is only available here: http://www.getchrome.eu/download.php
However, there is no .vmdk download but "Live CD" and "USB Disk Image". I've downloaded the "Live CD", but the VMPlayer couldn't create a new machine. Ive tried several samples from the internet, using the following methods:
Create it as Ubuntu.
Create it as a 2.6.x kernel.
Create a blank VM and point the HD to the .iso file.
I keep getting" "Failed to mount RW root filesystem" and then there's a 120 seconds suspension before a reboot (which causes the same error). The screen shot of the log (Alt+F3):
What am I missing?
In the link you've shared there is no .vmdk (and I couldn't find it around the web). So if I were in your shoes I would go to: http://www.chromium.org/chromium-os/developer-guide#TOC-Building-Chromium-OS
and try to built it with the spec (cpu, mem etc') that you have on the VMPlayer.
Another option is to try and install a built that someone did: http://www.tomshardware.com/news/chrome-os-google-vmware-download,9124.html
Good luck.
You can try Chrome OS by deploying ready-to-use Chrome OS VMs by hexxeh.