Centos install on KVM

Hello,

I’m trying to install Centos 5.4 on my KVM but I don’t have keyboard and mouse in remote-vnc.
I setup the host like this:

add name=centos cpu-count=2 disk-images=cdrom:CentOS-5.4-i386-netinstall.iso initrd="" kernel="" memory=1024 vnc-server=0.0.0.0:2

It starts with no errors but I can’t do anything because no keyboard or mouse in vnc.

and where are you going to install it? maybe add some “hard drives”?

OK,

even if I add to disk-images hda:centos.img, I still don’t have keyboard and mouse in vnc, I stuck at the first menu of the installation wizard.
In the vnc viewer I have the inputs enabled.

I have to specify kernel=“” and initrd=“” on the guest ? What kernel and initrd, the xen version of centos ?

Has anyone installed a regular distro on mikrotik kvm, how ?

use kernel and initrd distributed with installation image

i’m experiencing the same problem. does using the kernel and initrd from the distro work cause i’m using it and still the same problem

wait till 4.6 is released

Hi

Can somebody tell me how exactly can I define size and place for installation of guest OS ? I’m using CentOS as guest OS.
I have checked KVM manual but only command which I was able to find there is disk-images … and I can use it only one time (?).

disk-images=hda:CentOS-5.4-i386-netinstall.iso initrd=“/boot/initrd.rgz”
kernel=“/boot/vmlinuz” kernel-cmdline=“console=ttySO” name=“Centosurina1”
cpu-count=2 memory=1024MiB snapshot=no vnc-server=192.168.1.12:20 state=running

p.s.
I was able to start guest OS but ran into same problem as mentioned above. Of course it’s probably due to fact that I haven’t added any hard drives :slight_smile:.

Thank you for your help

it is true that you can use disk-images only once, but you can do as follows:

disk-images=hda:boot.img,hdb:centos.img,hdc:home.img

will make it more obvious note of that in manual.

Thank you, much appreciated :slight_smile:

Seems I’m still missing something out :frowning: . I still have problem described at the beginning of this topic. When I try connecting to guestOS ( CentOS) with VNC I’m not able to do anything due to input not working. I have tried through console too but that one seems like it’s “hanging” and nothing happens.
I’m wondering, does the image file which will hold installed guestOS creates automatically and then extends dynamically or I need to create that one manually ( e.g. qemu-img create -f qcow2 guestOS.img 2G when using KVM on CentOS to add guestOS ) ? If I need to create it manually, how can I do it on RouterOS ?


Thank you for your help

manually you only can create RouterOS images, but you can easily overwrite them afterwards when you install OS of your choice, or prepare image beforehand and upload it to your host system.

I’m still experiencing problem stated at the beginning of this thread :frowning:
Anyone know why this is happening?


Edit@11.4.2010
I have tried making my own image of CentOS using KVM on Ubuntu. Copied CentOS image to RouterOS and still have the same problem. I have even tried downloading image from stacklet.com .. just to be sure that there isn’t something wrong with my images :frowning:

Don’t know what else to try to pass this screen

try to remove cdrom device from your configuration. KVM in RouterOS is forced to boot from supplied cdrom image.

I have even tried disconnecting DVD/CD device from from my host PC but this QEMU DVD device still getting showed and VM wont pass that screen :frowning:



P.S.
Regarding initrd.rgz and vmlinuz files.
What kind of file is initrd.rgz ? I’v tried googling it but can’t find any info about it. :confused:
Also when I navigate to boot folder on my VM ( when running on Ubuntu KVM) I can’t find initrd.rgz




Thank you for your help

leave initrd and kernel fields empty

edit:

or upload kernel and initrd from your distribution you are going to use. and set path to point to corresponding files.

When left empty I get “state=kernel-extract-failed”

By “uploading” you mean taking those initrd and vmlinuz files from my guestOS and placing them in “file” on RouterOS ?
(sorry for this noobish question :slight_smile: )

yes, that is what i mean.

It’s alive ! :laughing:

Thank you very much for help

although it seems that it won’t detect my mouse… keyboard works normally and even mouse buttons work … but it wont detect mouse movement … I’ll try VNC from Windows later on.. maybe there’s something wrong with this one I’m using on Ubuntu…

anyway .. thank you one more time for help ! :slight_smile:

One small question…

I’v just noticed that RouterOS supports only 2GB of memory. Is there any way for guestOS ( CentOS) to see more than 2GB of memory ?

P.S.
If there is no such possibility for guestOS, are there any plans for RouterOS to support more than 2GB of memory ?


Thank you

currently RouterOS supports only mentioned amount of RAM - 2GB