Community discussions

MikroTik App
 
fred410
just joined
Topic Author
Posts: 17
Joined: Mon Mar 21, 2011 8:30 pm

basic setup procedure for KVM Centos on MikroTik

Mon Mar 28, 2011 6:37 pm

I have the MikroTik x86 device (Lanner FW-8755) and trying to setup Centos 5.5 as KVM.

MikroTik OS v5.0rc10

The Manual:KVM page is useless in the procedure needed to setup any kind of linux version as a KVM guest in MikroTik.

Can someone point me to such a setup procedure?
There are several entries on KVM here, but no general setup procedure - except that of something like:

/kvm print
0 name="CentOs 5.5" cpu-count=1 memory=512MiB
disk-images=cdrom:ZeroShell-1.0.beta14.iso,hda:centosdsk.img kernel=""
kernel-cmdline="" initrd="" vnc-server=0.0.0.0:2 snapshot=no state=stopped

"zeroshell" is the only thing that seems to startup.

with many other i386 iso images of various linux flavors (Gentoo, openBsd, debian, dsl-linux) either:
- nothing happens or
- I get an "ATI9" that prints on console - and nothing else.

does kvm not work on v5.0rc10??

Update: As of CentOS 5.4, KVM support is included but only on 64-bit architecture processors. Thats why 5.5 does not work. Will search for Centos 5.3

Help? Does anyone know of images that work on mikrotik x86 v5.0rc10?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: basic setup procedure for KVM Centos on MikroTik

Thu Mar 31, 2011 3:23 pm

installatino of Ubuntu 9.10 did not had any problems at all.

upload ISO, boot from that, install base system, get initrd and kernel, set kernel and initrd fields in kvm guest configuration, set up vnc access. boot up, and access guest using VNC. 800x600 and 1024x768 resolutions available.

You can try to search for general KVM issues with certain distribution.
 
fred410
just joined
Topic Author
Posts: 17
Joined: Mon Mar 21, 2011 8:30 pm

Re: basic setup procedure for KVM Centos on MikroTik

Thu Mar 31, 2011 5:19 pm

acknowledged.

I am downloading these 9.10 versions:
  • ubuntu-9.10-alternate-i386.iso
    ubuntu-9.10-desktop-i386.iso
    ubuntu-9.10-netbook-remix-i386.iso
and will test each.
Thanks for the help.
 
fred410
just joined
Topic Author
Posts: 17
Joined: Mon Mar 21, 2011 8:30 pm

Re: basic setup procedure for KVM Centos on MikroTik

Fri Apr 01, 2011 7:45 pm

Nice....
the problem is "console" may or may not show anything.

you have to set the "vnc server" address for the kvm be the IP addr assigned to the MikroTik.

Thus "/ip address print" (showing unit IP address)
is included in the "kvm" entry.
-------------------------------
[admin@MikroTik] /ip address> print
Flags: X - disabled, I - invalid, D - dynam
# ADDRESS NETWORK INT
0 D
20.4.7.6/25 20.4.7.128 ether1

[admin@MikroTik] /ip address> /kvm print
Flags: X - disabled
0 name="test" cpu-count=1 memory=384MiB disk-images=cdrom:mini.iso
kernel="" kernel-cmdline="" initrd="" vnc-server=
20.4.7.6:2
snapshot=no state=stopped

Then with some vnc viewer - vnc to 20.4.7.6:2
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: basic setup procedure for KVM Centos on MikroTik

Mon Apr 04, 2011 10:21 am

in theory 0.0.0.0:2 should work also vnc://<routerIP>:5902
 
fred410
just joined
Topic Author
Posts: 17
Joined: Mon Mar 21, 2011 8:30 pm

Re: basic setup procedure for KVM Centos on MikroTik

Mon Apr 04, 2011 5:15 pm

yep -- sure does...

setting vnc to 0.0.0.0 - keeping the ":2"
vnc went to the routers ip (20.4.7.6) using console 2

Who is online

Users browsing this forum: No registered users and 13 guests