QEMU KVM

Here will be my notes about QEMU usage.

basics of vitrualization kvm with máquinas virtuales and Software|lower


BASICS

Changing VM disc size.

1. Check path to disks $ sudo virsh list --all -> $ sudo virsh domblklist <your_vm_name>

2. Resize $ qemu-img resize /path/to/original.qcow2 40G

3. Start the VM and open diskmgmt.msc Disk Management -> Right-click the existing partition (e.g., C:) and select Extend Volume. Follow the wizard to merge the unallocated space into the partition. // Doesn't work. That is why I stopped use this Microsoft crap as a main OS many years ago.

3.1. Download AOMEI partition assistant. Assign unalocated space to recover disck then assign from recover disck to disk C. // Works on W10 but doesn't on W11.

4. EasyUS partition master tool. // works better

 

VM doen't start

1. In VM W10 I ve deleted some devices in device manager VirtIO Balloon Driver or VirtIO Serial and Windows stops to start. It is just a black screen. How to troubleshoot?

1.1. Boot from windows ISO CD // doesn't boot

2. From xml delete <controller type='pci' index='...' model='pci-root'/> and <membaloon> // doesn't work

 

ANDROID ROOTED VM

1. Download android-x86 $ wget https://sourceforge.net/projects/android-x86/files/Release%209.0/android-x86_64-9.0-r2.iso/download -O android-x86_64-9.0-r2.iso // It goes with root sudo access from the box.

1.1. Virtual manager VM setup:

Cache mode->  writeback

Firmware -> BIOS

Boot Order: 1 -> CDROM, 2 -> Hard Disk

1.2. GPT no. Create one primary partition.

2. Set partitioned disk as bootable and then format as ext4. And install GRUB bootloader 

 

 

 

 

Waydroid supports Magisk out-of-the-box

Bliss OS