I’ve tried to install 32bit server edition of Ubuntu 9.10, 10.4LTS and 10.10 on RouterOS 5 beta. I was able to boot from CD and install, however after detaching CD-ROM image system doesn’t boot. I see blank black screen and white cursor on the top left side and nothing more happens.
I also tried to install latest Slackware distro. I succeeded to install and it starts and runs without CD-ROM image. I also tried to install LILO (boot loader used in Slackware) on Ubuntu instead of Ubuntu’s native GRUB2. A was able to see LILO’s menu, but when I select to boot Ubuntu from menu - I get the same black screen with cursor.
Which Ubuntu version did You install?
On which RouerOS version?
Could You give me some advice what else to try to make ubuntu work in MT’s KVM?
i have installed Ubuntu 9.10 and 10.4 desktop version as KVM guest on RouterOS. And if you read on the forums you will see that some has installed CentOS. Also, due to versatility, or lack thereof, i would not recommend installing LILO as boot loader.
Just tried Ubuntu 10.4 Desktop Edition and no problem. Installed,removed CD-ROM, restarted. Works fine.
So the summary:
Slakware 13.1 - Install OK, boot OK
Ubuntu 10.4 LTS Desktop - Install OK, boot OK
Ubuntu 9.10 Server - Install OK, boot FAIL
Ubuntu 10.4 LTS Server - Install OK, boot FAIL
Ubuntu 10.10 Server - Install OK, boot FAIL (tried also with another boot loader and “*-virtual” kernel version).
The same image that fails to boot in KVM on MT boots perfectly if I download it and run it on my laptop (I have ubuntu desktop with KVM on my laptop). So the problem seems to be specific to KVM in MT.
Tried to turn on logging (kvm, debug) - i see just some lines when virtual machine starts (interface initialization, etc.), but complete silence at the moment when machine gets stuck on black screen with cursor.
Looks like Ubuntu server edition tries to do something incompatible with KVM on MT just after boot loader code (during initrd or kernel load?).
Could You please give me some advice where to dig further or how to get some additional debug data from KVM on MT?
are you monitoring boot up process form VNC or from console?
also, jave you set up initrd and kernel files in KVM guest setup? It could be problem that KVM fails to retrieve the kernel from image file and fails to boot, or loads wrong kernel/initrd
I do not run them all simultaneously, so it’s ok to have the same VNC port:ip for all of them.
I also tried to copy kernel+initrd from installation media to /file directory on MT and entered them in corresponding fields in VM devinition, but it didn’t help.
Ok, as I see now, the only differences in what I do between trying to install in MT KVM Ubuntu 10.4LTS Server and Ubuntu 10.4LTS Desktop is different ubuntu images. Everything else is EXACTLY the same. Desktop boots normally, server fails. So the difference seems to be in Ubuntu.
Ubuntu Server distro with kernel recompiled with options like in desktop kernel - FAILS.
Ubuntu Desktop distro with kernel recompiled with options like in server kernel - WORKS.
So the only difference seems to be X-Win and different installers.
Desktop edition works fine without X (removed x11-common and disabled gdm).
So the only thing that remains is installer.
Won’t dig any further, as at this point I already can convert desktop edition to server edition by removing X and replacing kernel.
Thanx for help and hope this information will be useful for others.
Is there any known solution how to safely unmount cdrom iso from KVM config of an Ubuntu server edition?
I have exactly same problem as yozhiks.
Just after I remove cdrom:ubuntu-10.04.3-server-i386.iso my Ubuntu VM is unable to start anymore. There are only couple of messages in the log “kvm error - kvm guest csrashed, restarting…”
I’m using RouterOS v5.19 on x86 and here is my KVM config:
Could you be so kind and provide me some additional instruction how to extract these parameters?
Anyway, how can be a cdrom install image related to the boot process of the VM and what exactly is behind the scene that the VM without it doesn’t work completely?
I presume that kernels are different too. So that means that this particular VM will not boot with or without cdrom image if these parameters are not filled correctly. Which is not this case.
well, just get the files from /boot folder. For latest Ubuntu - vmlinuz-3.2.0-29-generic and initrd.img-3.2.0-29-generic and just upload them to router in addition to image file you have for the guest. When this is done, add path where to find these files in the router.