Bug 1373256 - Environment variables for VMs can only be set by hook (Administration Guide - table 18.3)
Summary: Environment variables for VMs can only be set by hook (Administration Guide -...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation
Version: 4.0.3
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: rhev-docs@redhat.com
QA Contact: rhev-docs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 15:36 UTC by David Jaša
Modified: 2022-06-30 08:35 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-07 08:57:52 UTC
oVirt Team: Docs
Target Upstream Version:


Attachments (Terms of Use)
/usr/libexec/vdsm/hooks/before_vm_start/51_spicedebug (1.04 KB, text/plain)
2016-09-05 15:36 UTC, David Jaša
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-46801 0 None None None 2022-06-30 08:35:13 UTC

Description David Jaša 2016-09-05 15:36:09 UTC
Created attachment 1197980 [details]
/usr/libexec/vdsm/hooks/before_vm_start/51_spicedebug

Description of problem:
table 18.3 in Administration guide says:
"""
Run export SPICE_DEBUG_LEVEL=5 on the host/hypervisor prior to launching the guest.
"""

That's misleading. Libvirt sets a clean environment for VMs. The only way to set the environment value of qemu process is a custom hook before VM start that will augment domain XML to include the environment variable. Example of such a hook is in attachment and to set spice_debug variable of it's environment, UserDefinedVMProperties on the engine should be set to "spice_debug=^[0-9]+$" and the particular value then can be set in webadmin -> Edit VM -> Custom Options


Version-Release number of selected component (if applicable):
docs currently on the web

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Yaniv Lavi 2017-01-31 08:30:30 UTC
Can you package this hook and post it upstream?

Comment 2 David Jaša 2017-01-31 14:14:13 UTC
(In reply to Yaniv Dary from comment #1)
> Can you package this hook and post it upstream?

OK, I'll try that.


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