New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Virtual Machine stuck in startup, on my KVM VPS
Hello, I have KVM VPS (4GB RAM), and I'm trying to install another Linux Distro into Virtual Machine.
I use Virt-Manager to create the VM, everything works well at the beginning but wither every ISO I tried I'm stuck in certain stage Screenshot CorePlus-current.iso ..... archlinux.iso
I really don't know what happened, but I think it stopped in HDD detecting stage, BTW KVM virtualization enabled on my VPS, and here is my full command
qemu-kvm -m 2G -cpu host -boot order=d -drive file=cd.iso,media=cdrom -drive file=disk.img,format=raw,if=virtio -vnc :0
Comments
What was the method used to create the "disk.img" HDD image file? You can try using this command to display more info of the HDD image file:
qemu-img info disk.img
You can also try booting with only the cdrom iso image (without HDD). If it still gets stuck, maybe it's something else that's causing the issue.
why not also use
virt-manager
orvirsh
to boot the VM? your qemu-kvm is missing-enable-kvm
argument.
.
I did and it stuck too
I run both, and it stuck too in the same step.
Can try without vnc display attached.
qemu-kvm -m 2G -cpu host -boot order=d -drive file=cd.iso,media=cdrom -drive file=disk.img,format=raw,if=virtio -nographic
This will disable the guest graphics output. To exit qemu press
Ctrl+A X
in the same terminal.Also what qemu version are you using?
QEMU emulator version 8.0.0
How could I interact with the system I'm running?
My VPS didn't have GUI, I can only run GUI apps with x-forward, that how I was able to run
virt-manager
The
-nographic
option would disable the graphic output. Instead you would get a serial console to interact with the system. This would be enough if you are don't need the guest display GUI and only interacting it remotely over SSH.Thanks it works well, but same thing happened it stuck before finish starting loading setup.
so if I have this right you are trying to boot a virtual machine in a virtual machine? Does the host allow it ?
If you try to boot the qemu image on a local machine does it boot ?
Hmm. Can try without KVM. I think the command line flag is
-accel tcg
. Also omit-cpu host
This disables KVM acceleration. Worth a shot if the issue is due to nested virtualization.