Bug 1189143 - virt-install nvram_template does not work for non-root users
Summary: virt-install nvram_template does not work for non-root users
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-04 14:50 UTC by Richard W.M. Jones
Modified: 2015-05-13 14:41 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-13 14:41:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2015-02-04 14:50:05 UTC
Description of problem:

virt-install [...] \
  --boot loader=/usr/share/AAVMF/AAVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/AAVMF/AAVMF_VARS.fd \
  [...]
...
ERROR    Failed to create file '/var/lib/libvirt/qemu/nvram/tmp-b2a0182a_VARS.fd': Permission denied

It should use a different directory for non-root users.

Version-Release number of selected component (if applicable):

virt-install-1.1.0-4.git310f6527.fc22.noarch

How reproducible:

100%

Steps to Reproduce:
1. See command above.

Comment 1 Richard W.M. Jones 2015-02-04 14:52:22 UTC
Workaround is:

vars=$(mktemp)
cp /usr/share/OVMF/OVMF_VARS.fd $vars
virt-install ... ,nvram=$vars

Comment 2 Cole Robinson 2015-02-07 00:11:15 UTC
This is libvirt's fault, virt-install isn't doing anything special here

Comment 3 Cole Robinson 2015-05-13 14:41:46 UTC
FWIW this is fixed upstream with libvirt 1.2.15:

commit 19425d110b0ca2ea3588dbf880ce48d81edea89c
Author: Cole Robinson <crobinso>
Date:   Thu Apr 23 20:01:05 2015 -0400

    qemu: Build nvram directory at driver startup


Note You need to log in before you can comment on or make changes to this bug.