From: Cole Robinson <crobinso@redhat.com>
To: Kevin Zhao <kevin.zhao@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm <qemu-arm@nongnu.org>,
Gema Gomez-Solano <gema.gomez-solano@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Question about a qemu Aarch64 error when adding several SCSI disks
Date: Mon, 27 Jun 2016 14:23:48 -0400 [thread overview]
Message-ID: <3ec77a9e-5ba7-c81a-ad12-3ade3115308f@redhat.com> (raw)
In-Reply-To: <CAN76PtSMP_cdWXrbWOvchUDJMXNDwg5LjCxCHVTPEBTomS_ysw@mail.gmail.com>
On 06/27/2016 09:05 AM, Kevin Zhao wrote:
> Hi Cole,
>
> On 24 June 2016 at 19:35, Cole Robinson <crobinso@redhat.com> wrote:
>
>> On 06/24/2016 12:58 AM, Kevin Zhao wrote:
>>> Hi Peter,
>>> Follow your advice, I have complied the Qemu v2.6.
>>> stack@u202158:~$ kvm --version
>>> QEMU emulator version 2.6.50 (v2.6.0-1280-g6f1d2d1-dirty), Copyright (c)
>>> 2003-2008 Fabrice Bellard
>>> With this newest version, I use virt-manager to create the guest ,
>> the
>>> xml file is in the attachment. But the Qemu return error when creating:
>>> *error: internal error: process exited while connecting to monitor:
>>> qemu-system-aarch64: -device
>>> pci-bridge,chassis_nr=2,id=pci,bus=pci,addr=0x1: Duplicate ID 'pci' for
>>> device*
>>>
>>
>> That's probably this libvirt issue fixed in 1.3.4 and later:
>>
>> https://www.redhat.com/archives/libvirt-users/2016-April/msg00030.html
>>
>> I suggest testing with libvirt.git as well, there's been aarch64 related
>> patches trickling in regularly
>>
>> - Cole
>>
>> Thanks for your valuable advice. Follow your advice, I have build the
> upstream vesion
> of libvirt. The libvirt version is :
> root@u202158:/opt/stack/kevin/libvirt/daemon# ./libvirtd
> 2016-06-27 12:11:03.501+0000: 28044: info : libvirt version: 2.0.0
> I stopped the system libvirtd-bin and libvirt-guests , then using libvirtd
> above.
>
> Also I have replace the system Qemu with the Qemu 2.6.50 which I have built
> from upstream :
> root@u202158:/opt/stack/kevin/libvirt# qemu-system-aarch64 --version
> QEMU emulator version 2.6.50 (v2.6.0-1280-g6f1d2d1-dirty),
> Copyright (c) 2003-2008 Fabrice Bellard
> Using this XML in the attachment:
> Then Run virsh command to create guest:
> root@u202158:/opt/stack/kevin/libvirt/tools# ./virsh create
> /opt/stack/f23.xml --console
> error: Failed to create domain from /opt/stack/f23.xml
> error: internal error: process exited while connecting to monitor:
> 2016-06-27T12:45:23.807405Z qemu-system-aarch64: -drive
> file=/var/lib/libvirt/qemu/nvram/f23_VARS.fd,if=pflash,format=raw,unit=1:
> Could not open '/var/lib/libvirt/qemu/nvram/f23_VARS.fd':
> Permission denied
>
> Here I met the permission problem and I'm not sure where is wrong. If I use
> origin qemu-system-aarch64(installed by apt-get),I will not meet the
> problem of permission..Kindly need your help, you will be really
> appreciated,,, :D
> $ls -l /usr/bin/qemu-system-aarch64
> -rwxr-xr-x 1 root root 26935520 Jun 27 10:56 /usr/bin/qemu-system-aarch64
> $ls -l /var/lib/libvirt/qemu/nvram/f23_VARS.fd
> -rw------- 1 root root 67108864 Jun 20 07:27
> /var/lib/libvirt/qemu/nvram/f23_VARS.fd
>
>
>
Depending on how you compiled libvirt, it may run qemu as the unprivileged
qemu:qemu user. Perhaps that VM was created with the default compilation
options to run qemu as root:root, and whatever you are trying to run it with
now is using qemu:qemu
- Cole
next prev parent reply other threads:[~2016-06-27 18:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-22 11:51 [Qemu-devel] Question about a qemu Aarch64 error when adding several SCSI disks Kevin Zhao
2016-06-22 12:04 ` Peter Maydell
2016-06-22 12:34 ` Kevin Zhao
2016-06-24 4:58 ` Kevin Zhao
2016-06-24 7:51 ` Peter Maydell
2016-06-24 11:35 ` Cole Robinson
2016-06-27 13:05 ` Kevin Zhao
2016-06-27 18:23 ` Cole Robinson [this message]
2016-06-28 13:34 ` Kevin Zhao
2016-06-22 12:08 ` Dr. David Alan Gilbert
2016-06-22 12:53 ` Kevin Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ec77a9e-5ba7-c81a-ad12-3ade3115308f@redhat.com \
--to=crobinso@redhat.com \
--cc=gema.gomez-solano@linaro.org \
--cc=kevin.zhao@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).