macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

Installation instructions should mention qemu-utils for Debian/Ubuntu

Open mslinn opened this issue 7 years ago • 8 comments

I tried running the instructions for a START1-M instance at Scaleway

$ qemu-img create -f qcow2 MyDisk.qcow2 64G

Command 'qemu-img' not found, but can be installed with:

sudo apt install qemu-utils

Also, the KVM prerequisite can be installed and configured as described here, and here, however Ubuntu 18.04 and first need to install vertinst:

sudo apt install qemu qemu-kvm virt-manager virtinst bridge-utils cpu-checker
kvm-ok  # verify the cpu supports KVM 

My installation failed, even though kvm-ok indicated that the CPU was ok:

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

$ sudo ./basic.sh
Unable to init server: Could not connect: Connection refused
WARNING: Image format was not specified for 'BaseSystem.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.
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 2]

I stopped here, perhaps this VM is unsuitable.

mslinn avatar Jun 19 '19 14:06 mslinn

Hit the edit page button on that document page, make the change, commit it and then hit the green button to create the pull and then add fixes #26 to the comment

deftdawg avatar Jun 19 '19 14:06 deftdawg

Thanks, but it seems my issue grew as I waded deeper into the water. Seems there is a lot more to this than the docs suggested. People with qemu experience would know that, but this is new to me.

mslinn avatar Jun 19 '19 15:06 mslinn

QEMU uses graphics mode by default, if you don't have -nographic enabled, then it will try to connect to an X11 server (and fail). VNC is available as an alternative.

https://www.cyberciti.biz/faq/linux-kvm-vnc-for-guest-machine/

foxlet avatar Jun 19 '19 19:06 foxlet

Just installed HS on DEV1-M instance , took about 2 hours to install . CPUs at 90% and its laggy , But yeah it works .

m7md10 avatar Jun 20 '19 13:06 m7md10

Good to know. I wonder if the DEV1 CPUs are similar to START1-M CPUs

mslinn avatar Jun 20 '19 15:06 mslinn

Just installed HS on DEV1-M instance , took about 2 hours to install . CPUs at 90% and its laggy , But yeah it works .

Make sure to set the core/thread configuration properly or you'll be pushing too many workers onto potentially one CPU core.

foxlet avatar Jun 20 '19 22:06 foxlet

Do you know of a Scaleway VM that would be appropriate for running a DAW?

DAW DAW

mslinn avatar Jun 20 '19 22:06 mslinn

FWIW #25 fixes the issue mentioned by the title at least.

autra avatar Jun 21 '19 07:06 autra