From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A324D3D.9060505@domain.hid> Date: Fri, 12 Jun 2009 14:42:37 +0200 From: Johan Visser MIME-Version: 1.0 References: <634c78ce0906120240t694ded8cpfa7fcd9dfb2c3b8@domain.hid> <200906121148.37732.smolorz@domain.hid> <4A3235BF.5090201@domain.hid> In-Reply-To: <4A3235BF.5090201@domain.hid> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Running Xenomai in a virtual machine List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai@xenomai.org Jan Kiszka schreef: > Sebastian Smolorz wrote: > >> Peter Soetens wrote: >> >>> I'm looking for a more agile way to run my unit tests (and build farm) >>> on a Xenomai system, without running them directly my development >>> system (nor rebooting to a Xenomai patched kernel). I was hoping that >>> a virtualisation solution would do the trick. Does anyone have >>> experience with running a Xenomai patched kernel + applicaiton in >>> vmware or another virtualisation package ? >>> >>> >> Xenomai runs perfectly inside qemu, without real-time guarantees, of course. >> >> > > Most of the time we are developing on and for Xenomai inside qemu-kvm, > often using '-smp 2' (or more) and an SMP host so that the more > interesting races are triggered. In contrast to other hypervisors, this > offers the chance to do source-level kernel debugging, also when the > target hopelessly locked up deep inside I-pipe - situations that are > almost undebugable on real x86 hardware. > > For sure, you don't get reasonable latencies this way (though evaluating > kvm under -rt /wrt soft-rt is on my to-do list for the next weeks), but > a lot of testing does not require this anyway. Moreover, qemu/kvm > cleanly integrates with Linux, thus can easily be scripted. If you plan > to set up some test farm, you may also want to have a look at > kvm-autotest (currently under merge into autotest). > > Jan > > Just the last few days we were trying to do the same with our XENOMAI system and application. According the package info I can not use KVM because the processor of my laptop does not have hardware virtualisation support. Virtualbox failed on a standard PC , it took 5 minutes to boot my guest and then after that froze. VMware runs, but gives heavy CPU load ( about 38 % ) instead of 6-8 % on a real system. The application runs, but of course it is not realtime. The system i am using on my laptop is a standard Ubuntu system. I was wondering if the kernel running on my host system is of importance too. Now it schedules at 250 HZ. I tried to use a -rt kernel fom the ubuntu repository ( 1000 Hz ) but this will not work on my system some how. -- Ing. Johan Visser Stork Plastics Machinery B.V. Tel. : +31 742405113 Mob. : +31 653731518 ---------------------------------------------------- Stork Plastics Machinery B.V. Alfred Marshallstraat 2, 7559 SE Hengelo, the Netherlands. Supplies and executions to the conditions and stipulations filed with the Chamber of Commerce (Trade register Enschede nr. 06041991) except as otherwise provided in writing. DISCLAIMER: The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or taking any action in reliance of the contents of this information is strictly prohibited and may be unlawful. Stork Plastics Machinery is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.