xl create: unable to retrieve domain configuration error - xen

I'm working with Xen for the first time, using Alpine Linux as Dom0.
I'm following the Alpine Linux guide to set up a PV guest in Xen, and I'm receiving the following error:
alpine-xen:~# xl create -f /etc/xen/a1.cfg -c
libxl: error: libxl_mem.c:202:libxl_set_memory_target: unable to retrieve domain configuration: No such file or directory
failed to free memory for the domain
I could not find any details about this error online. Could someone help me out with this?
Below are my outputs for xl list and xl info:
alpine-xen:~# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 64622 24 r----- 10.8
alpine-xen:~# xl info
host : alpine-xen
release : 4.19.80-0-vanilla
version : #1-Alpine SMP Fri Oct 18 11:27:53 UTC 2019
machine : x86_64
nr_cpus : 24
max_cpu_id : 31
nr_nodes : 1
cores_per_socket : 12
threads_per_core : 2
cpu_mhz : 3835.933
hw_caps : 178bf3ff:f6d8320b:2e500800:244037ff:0000000f:219c91a9:00400004:00000500
virt_caps : pv hvm
total_memory : 65466
free_memory : 128
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 12
xen_extra : .1
xen_version : 4.12.1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit2
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder no-real-mode edd=off
cc_compiler : gcc (Alpine 8.3.0) 8.3.0
cc_compile_by : buildozer
cc_compile_domain : [unknown]
cc_compile_date : Tue Aug 13 14:24:26 UTC 2019
build_id : f004ef86de8db93d5fbbb90e9b5fa21a70823d67
xend_config_format : 4

looks like you forgot to restrict the memory for dom0 on boot.
Depending on our hardware we need 256M up to 2048M for dom0.
you need to set it in these two files:
/boot/extlinux.conf
...
LABEL xen-vanilla
MENU LABEL Xen + Linux vanilla
COM32 mboot.c32
APPEND xen.gz dom0_mem=256M --- vmlinuz-vanilla root=...
...
and
/etc/update-extlinux.conf
...
xen_opts=dom0_mem=256M
...

Related

torch/rnn won't use CUDA

I'm trying to use the torch/rnn toolkit to run RNNs on my nVidia graphics card. I've got an Ubuntu 16.04 VM with the nVidia driver, CUDA toolkit, Torch, and cuDNN working. I can run the mnistCUDNN example and nvidia-smi shows it using the graphics card. In Torch, I can require('cunn'); and it loads happily.
BUT when I dofile('./rnn/examples/recurrent-visual-attention.lua' ); inside Torch, I get
{
batchsize : 20
cuda : false
cutoff : -1
dataset : "Mnist"
device : 1
earlystop : 200
glimpseDepth : 1
glimpseHiddenSize : 128
glimpsePatchSize : 8
glimpseScale : 2
hiddenSize : 256
id : "ptb:brain:1508585440:1"
imageHiddenSize : 256
locatorHiddenSize : 128
locatorStd : 0.11
lstm : false
maxepoch : 2000
maxnormout : -1
minlr : 1e-05
momentum : 0.9
noTest : false
overwrite : false
progress : false
rewardScale : 1
saturate : 800
savepath : "/home/tom/save/rmva"
seqlen : 7
silent : false
startlr : 0.01
stochastic : false
trainsize : -1
transfer : "ReLU"
uniform : 0.1
unitPixels : 13
validsize : -1
version : 13
}
and since cuda:false, it runs using just the CPU.
Any ideas how to work out what I've missed? Thanks.
I'm an idiot. When I finally worked up the courage to read the source code, I discovered that it doesn't automatically try to use CUDA. There's a -cuda flag to ask it to.
In my defence, the examples are undocumented...

http service not starting error 1009

I was trying to print a document for one of my games but the page viewer couldn't see the printer so I checked the print spooler service
C:\WINDOWS\system32>sc qc spooler
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\System32\spoolsv.exe
LOAD_ORDER_GROUP : SpoolerGroup
TAG : 0
DISPLAY_NAME : Print Spooler
DEPENDENCIES : RPCSS
: http
SERVICE_START_NAME : LocalSystem
C:\WINDOWS\system32>sc query spooler
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1068 (0x42c)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
And tried to start it, then this happened
C:\WINDOWS\system32>net start spooler
System error 1068 has occurred.
The dependency service or group failed to start.
C:\WINDOWS\system32>
Ok so I checked the dependencies
C:\WINDOWS\system32>sc qc rpcss
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\system32\svchost.exe -k rpcss
LOAD_ORDER_GROUP : COM Infrastructure
TAG : 0
DISPLAY_NAME : Remote Procedure Call (RPC)
DEPENDENCIES : RpcEptMapper
: DcomLaunch
SERVICE_START_NAME : NT AUTHORITY\NetworkService
C:\WINDOWS\system32>sc query rpcss
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
Ok RPCSS is good, next one
C:\WINDOWS\system32>sc qc http && sc query http
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
START_TYPE : 3 DEMAND_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : system32\drivers\HTTP.sys
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : HTTP Service
DEPENDENCIES :
SERVICE_START_NAME :
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1009 (0x3f1)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
OK seeing it stopped I tried to start it again
C:\WINDOWS\system32>net start http
System error 1009 has occurred.
The configuration registry database is corrupt.
C:\WINDOWS\system32>
So I run SFC to try and fix this BUT...
C:\WINDOWS\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\WINDOWS\system32>
A fat lot of help this is, it can't even fix something so inherently wrong...
So this is where I ask the community for help, I don't know what to do past this point. Help is very much appreciated.
In my case, I had a sub-key under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\SslBindingInfo that was missing information. i.e. all the keys such as 0.0.0.0:40015 have values like "AppId","DefaultFlags", etc.
I had one that had no values under this key. I deleted that "empty" key and HTTP was able to start up.

Very slow artifactory query language

I've been trying to implement a artifact cleanup process based on https://www.jfrog.com/blog/advanced-cleanup-using-artifactory-query-language-aql/ ... but found that the AQL is really slow. i've seen queries still running after 24 hours with the server pinned at 100% cpu.
Using simple curl :
time curl -vv -u user:password -d "${query}" "http://server:8081/artifactory/api/search/aql"
I've measured :
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": {"$ne" : "true"}, "created": {"$before" : "3d"}}).limit(100)
33 minutes
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": {"$ne" : "true"}}).limit(100)
42 minutes
items.find({"repo" : "ep-snapshots", "#milestone.keep": {"$ne" : "true"}, "#milestone.complete": "false"}).limit(100)
574 minutes
Are there any techniques to investigate the performance of AQL ? Anything obviously broken with the above ?
Thanks,
Pete

Why won't MediaInfo CLI let me isolate "Inform='Other'" tags?

I'm trying to use MediaInfo CLI (v0.7.77 on Mac OS X 10.9.5) to grab the first-frame timecode of QuickTime files using this Inform= syntax:
mediainfo --Inform="Other;%TimeCode_FirstFrame%" FILENAME.MOV
But it seems that MediaInfo ignores the existence of the "Other" section of the MediaInfo dump. It just outputs all of the file's metadata, as if I didn't enter an Inform= option at all.
However if I do something like this...
mediainfo --Inform="Video;%ColorSpace%" FILENAME.MOV
It simply returns "YUV", as expected, with no extraneous information.
So why won't my example using the Other; option work?
Here's an example of what I get when I do a language=raw dump of a typical source file:
General
CompleteName : /Volumes/SCARY_RAID/projects.local/WaikikiStock.local/KBank-BrollSelects_20151026.local/resolve_renders/waikiki_selects/667_2942_01-0001_1920x1080-23.976.mov
Format : QuickTime
Format/Info : Original Apple specifications
FileSize/String : 380 MiB
Duration/String : 17s 59ms
OverallBitRate_Mode/String : VBR
OverallBitRate/String : 187 Mbps
Encoded_Date : UTC 2015-10-30 21:55:35
Tagged_Date : UTC 2015-10-30 21:55:41
Encoded_Library/String : Apple QuickTime
Video
ID/String : 1
Format : ProRes
Format_Version : Version 0
Format_Profile : 422 HQ
CodecID : apch
Duration/String : 17s 59ms
BitRate_Mode/String : VBR
BitRate/String : 187 Mbps
Width/String : 1920 pixel3
Height/String : 1080 pixel3
DisplayAspectRatio/String : 16:9
FrameRate_Mode/String : CFR
FrameRate/String : 23.976 fps2
ColorSpace : YUV
ChromaSubsampling : 4:2:2
ScanType/String : Progressive
Bits-(Pixel*Frame) : 3.761
StreamSize/String : 380 MiB (100%)
Encoded_Library/String : abm0
Language/String : en
Encoded_Date : UTC 2015-10-30 21:55:35
Tagged_Date : UTC 2015-10-30 21:55:41
colour_primaries : BT.709
transfer_characteristics : BT.709
matrix_coefficients : BT.709
matrix_coefficients_Original : BT.709
Other
ID/String : 2
Type : Time code
Format : QuickTime TC
Duration/String : 17s 59ms
TimeCode_FirstFrame : 15:02:53:00
TimeCode_Striped/String : Yes
Title : Untitled
Language/String : en
Encoded_Date : UTC 2015-10-30 21:55:41
Tagged_Date : UTC 2015-10-30 21:55:41
This is a MediaInfo bug, will be corrected soon.
Jérôme, developer of MediaInfo.

Google Analytics Custom Variables Not Being Recorded

For some reason my custom variables are not showing up in my Google Analytics reports (Visitors > Custom Variables > "There is no data for this view") even after 24 hours.
Anybody see what I'm missing?
I downloaded the Google Analytics Debugger (by Google) Chrome Extension and got the following report.
_gaq.push processing : "[_setAccount,UA-example-1]"
ga_debug.js:21_gaq.push processing : "[_setCustomVar,1,ismale,True,3]"
ga_debug.js:21_gaq.push processing : "[_setCustomVar,2,ispremium,False,3]"
ga_debug.js:21_gaq.push processing : "[_setCustomVar,3,universityid,1,3]"
ga_debug.js:21_gaq.push processing : "[_setCustomVar,4,age,24,3]"
ga_debug.js:21_gaq.push processing : "[_setCustomVar,5,monthsregistered,5,3]"
ga_debug.js:21_gaq.push processing : "[_trackPageview]"
ga_debug.js:21Track Pageview
ga_debug.js:21Tracking beacon sent!
utmwv=5.1.6d&utms=19&utmn=112552813&utmhn=example.com&utme=8(ismale*ispremium*universityid*age*monthsregistered)9(True*False*1*24*5)&utmcs=UTF-8&utmsr=1920x1080&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=11.0%20r1&utmdt=example&utmhid=637350171&utmr=-&utmp=%2F&utmac=UA-example-1&utmcc=__utma%3D243787922.1113545762.1320772787.1320798586.1320828138.3%3B%2B__utmz%3D243787922.1320772787.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=qQ~
ga_debug.js:21
Account ID : UA-example-1
Page Title : example
Host Name : example.com
Page : /
Referring URL : -
Hit ID : 637350171
Visitor ID : 1113545762
Session Count : 3
Session Time - First : Tue Nov 08 2011 12:19:47 GMT-0500 (Eastern Standard Time)
Session Time - Last : Tue Nov 08 2011 19:29:46 GMT-0500 (Eastern Standard Time)
Session Time - Current : Wed Nov 09 2011 03:42:18 GMT-0500 (Eastern Standard Time)
Campaign Time : Tue Nov 08 2011 12:19:47 GMT-0500 (Eastern Standard Time)
Campaign Session : 1
Campaign Count : 1
Campaign Source : (direct)
Campaign Medium : (none);
Campaign Name : (direct)
Custom Var 1 : label:'ismale' value:'True' scope:'Page'
Custom Var 2 : label:'ispremium' value:'False' scope:'Page'
Custom Var 3 : label:'universityid' value:'1' scope:'Page'
Custom Var 4 : label:'age' value:'24' scope:'Page'
Custom Var 5 : label:'monthsregistered' value:'5' scope:'Page'
Language : en-us
Encoding : UTF-8
Flash Version : 11.0 r1
Java Enabled : true
Screen Resolution : 1920x1080
Color Depth : 32-bit
Ga.js Version : 5.1.6d
Cachebuster : 112552813
It works, apparently it takes a little longer for Custom Variables to show up in the reports. Thanks #yahelc

Resources