[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems starting qemu vm using virsh / *.xml-file



Hi Gilberto, him Tim,

many thanks to both of you for your feedback!

As proposed by Gilberto I put the output of 'lshw -html' and 'cat
/proc/cpuinfo' into files cubietruck_hw.html and cubietruck_cpuinfo.txt
and made them availalbe for public viewing here:

https://drive.google.com/file/d/0B0IAP2w2eNedWVRUeHVUdUJKT2s/view?usp=sharing
https://drive.google.com/file/d/0B0IAP2w2eNedQzNJU2hQUFp6eVk/view?usp=sharing

Furthermore I did a lot of tests to get a vm already running with qemu
started by libvirt.

As I read and checked myself the problem seems to by that VE A15 has
another CPU (A15 /w 2xA7) then Cubietruck (A20 /w 2xA7). So the
statements

<vcpu>1</vcpu>
<vcpu>2</vcpu>

seems to make libvirt crazy.

Bypassing all CPU related info directly to the hw anyway which kind of
CPU is installed on the board can be forced in qemu by choosing '-cpu
host'.

Actually, the libvirt equivalent

<cpu mode='host-passthrough'/>

should do the same job. But, as I tested it doesn't at least in the ARM
implementation of libvirt. And, there a tons of error descriptions and
bugfix proposals for the fault on the web.

Second, I tested several permutations of

<cpu mode='host-model'>
   <model fallback='forbid'/>
   <topology sockets='1' cores='2' threads='1'/>
</cpu>

but no one worked for me - so far ...

Third, I gave

<cpu match='exact'>
   <model fallback='allow'>A...</model>
   <vendor>ARM</vendor>
   <topology sockets='1' cores='2' threads='1'/>
</cpu>

a chance. The result is the same, starting *.xml with virsh keeps on
throwing CPU related errors ...

Last but not least I came to believe the ARM implementation of libvirt
doesn't fit my needs (at least today) becauce it's not usably at the moment.

So I decided to start my kvm-system-arm vm(s) by using qemu native. To
make these tasks a little bit more comfortable I start and stop my vm(s)
by systemd as described here:

https://wiki.archlinux.org/index.php/QEMU#Custom_script
https://www.kissmyarch.de/archives/2014/02/28/qemu_systemd_service/index.html

I had to modify these a little bit to get it running with jessie, but in
general it works.

So I'm done now, running 4 kvm-system-arm vm(s) on my Cubietruck. Again,
thanks to anybody for reading and helping me in the past.

Greetinx

Guido


Reply to: