Tag Archives: linux

Windows 10 Hyper-V VM boot not working

Here a few notes on my first attempt to install Lubuntu (a lighter version of Ubuntu) on Windows 10, using Hyper-V Manager.

I created a 2nd generation VM, selected the Ubuntu ISO, when I first tried to boot the VM, PXE boot appeared and showing “PXE Network Boot using IPv4 ( ESC to cancel ) Performing DHCP Negotiation….“, but pressing “ESC” didn’t work.

I tried pressing F12, F1, F2, you know the usual keys to show the boot menu, without success.

Since I found this PXE boot annoying, I disabled it. Here (thanks to alx9r’s answer on serverfault) how to disable PXE boot on a VM replace the VM name and computer name:

# Set the $computer_name and $vm_name variables to your computer name and target VM name
$computer_name = "your computer name"
$vm_name = "your vm name"
# Extract the Current Boot Order
$old_boot_order = Get-VMFirmware -VMName $vm_name -ComputerName $computer_name | Select-Object -ExpandProperty BootOrder
# Strip the Network Boot Devices
$new_boot_order = $old_boot_order | Where-Object { $_.BootType -ne "Network" }
# Set the New Boot Order
Set-VMFirmware -VMName $vm_name -ComputerName $computer_name -BootOrder $new_boot_order
# Confirm the New Boot Order
Get-VMFirmware -VMName $vm_name -ComputerName $computer_name | Select-Object -ExpandProperty BootOrder

This still didn’t help, as I was getting such a result “No operating system was loaded. Press a key to retry the boot sequence…”:

Pressing a key didn’t help. I dug in the settings and finally found what I was looking for, in the “Firmware” section > Boot order:

Even after moving the DVD Drive (where my Ubuntu ISO file was mounted) at the top didn’t help, I was still getting this error: The image’s hash and certificate are not allowed (DB).

The solution: go in the “Security” section > change the secure boot option to “Microsoft UEFI Certificate Authority” (or disable it).

Finally it worked:

Uninstall DaVinci Resolve 14 on Ubuntu

If you, like me, were tempted to Download DaVinci Resolve “free”* for Linux. Be aware that when you add folders to your media library, you won’t see your videos encoded in h.264 (which is the most used format).

Update, check also DaVinci Resolve 15 features comparisons free vs commercial (PDF).

Install instructions

Unzip the contents, then from the terminal run:

sudo sh DaVinci_Resolve_14.0.1_Linux.sh

Try to launch it from the command line too, you find the “resolve” program in /opt/resolve/bin

If you see some errors about missing .so files, you may need to install the packages containing the libs:

sudo apt install libssl-dev

You may also need: libgstreamer-plugins-base1.0-0

Then create symbolic links as follows:

sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0  /usr/lib/libcrypto.so.10
sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0  /usr/lib/libssl.so.10

I wanted to quickly try this video editor on Ubuntu 17.04 and I was highly disappointed not to be able to import any of my DJI drone videos. What’s the point of having a powerful professional editor that doesn’t even natively open any of my videos, while other open source editors like kdenlive, openshot can easily open? And no, I don’t want to convert my videos in a different format, just to open them in DaVinci.

Uninstall instructions

Also I struggled to find a way to uninstall this software, so here the instructions if you want to clean your hard drive after a disappointment similar to mine:

sudo rm -f -r /opt/resolve
sudo rm /usr/share/applications/DaVinci\ Resolve.desktop

If you this page was helpful, visit banggood to find a cheap gadget or something useful for a few bucks (free delivery worldwide!), if you buy from my link I get a small commission, thank you.

How to easily resize a qemu disk image for Windows

To add e.g. 30 GB to an existing raw image usethis command:

qemu-img resize nameofimg.img +30G

In my case, the command was run instantly and it added 30 GB to my existing file, as expected. The output was:

WARNING: Image format was not specified for ‘nameofimg.img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.

See also QEMU Emulator User Documentation > qemu-img Invocation or the man page:

man qemu-img

In my case my image was used in a Windows 10 virtual machine. In the Windows 10 VM: click Start and search “partitions” > the search finds “Create and format hard disk partitions” > which clicked opens up “Disk Management” > Right click target partition > Extend > follow the instructions to extend your partition. It’s super easy.