Bug 1373256

Summary: Environment variables for VMs can only be set by hook (Administration Guide - table 18.3)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Jaša <djasa>
Component: DocumentationAssignee: rhev-docs <rhev-docs>
Status: CLOSED DEFERRED QA Contact: rhev-docs <rhev-docs>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 4.0.3CC: djasa, gklein, lbopf, lsurette, rbalakri, srevivo, ykaul, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-07 08:57:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Docs RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/usr/libexec/vdsm/hooks/before_vm_start/51_spicedebug none

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.