Displaying 20 results from an estimated 45 matches for "xmlfile".
2009 Jul 16
0
AGI to announce temperature from weather.com XMLfile
...F
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Trevor
Hammonds
Sent: 16 July 2009 12:50
To: 'Asterisk Users List'
Subject: [asterisk-users] AGI to announce temperature from weather.com
XMLfile
I would like to have the ability to have Asterisk announce the
temperature
-- not using TTS -- within the dialplan.
For a non-Asterisk project, I have a cron job that periodically pulls
down
an XML file from weather.com containing local weather data (TWC's user
agreement requires that data...
2005 May 27
1
xmlAttrs and problems with reading node attributes of XML file (b ug?)
Hi,
Consider the following code:
require(XML)
xmlFile = paste( "<?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>\n",
"<mzXML xmlns=\"a\" xmlns:xsi=\"b\"
xsi:schemaLocation=\"c\">\n",
"<parentFile a=\"a\" b=\"b\" />...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...--log-facility=$WORKDIR/dnsmasq-${nodename}.log
--log-queries
--log-dhcp
--pid-file=${pidfile}"
@@ -180,7 +181,7 @@ start_networking () {
local workdir=$5
local definition=""
local network=$NETWORK
- local xmlfile=$(mktemp)
+ local xmlfile=$WORKDIR/$nodename-$ifacename.xml
debug "start_networking ()"
for var in nodename ifacename use_dhcp start_dnsmasq workdir network xmlfile; do
@@ -363,7 +364,7 @@ configure_node () {
local hdfile=""
local cdfile=$5
local ar...
2005 Mar 11
3
XML to data frame or list
Dear useRs,
I have a simple/RTFM question about XML parsing. Given an XML file,
such as (fragment)
<A>100</A>
<B>23</B>
<C>true</C>
how do I import it in a data frame or list, so that the values (100,
23, true) can be accessed through the names A, B and C?
I installed the XML package and looked over the documentation...
however after 20 minutes and a couple of
2010 Jun 02
10
Session, memory_store & NoMethodError
...e session in [b]injection_controller.rb[/b],
I get a :
[color=red][i]NoMethodError (You have a nil object when you didn''t
expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?):[/i][/color]
The session contains an Array of objects "XmlFile" and I''ve configured
my environement.rb to use the memory store :
[i][b]config.action_controller.session_store = :memory_store[/b][/i]
This is my [b]injection_controller.rb[/b] session key/value affectation
code :
[code]def analysis_repository
.....
session[:list_xml] = c...
2006 Mar 23
4
XML parser fixed
...regory Hill)
and changed some things.
It did not work in IE and Safari and opera.
I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera.
/* --------------------------------------- */
XMLParser = Class.create();
Object.extend(XMLParser.prototype,
{
initialize: function (XMLFile, options)
{
this.xmlFile = XMLFile;
this.options = options;
this.element = false;
this.XMLParsed = false;
this.getXml();
},
XMLHash: function ()
{
return this.XMLParsed;
},
asHash: function ()
{
if (! this....
2010 Mar 31
1
Incomplete patch
This patch is non-functional at this point; i.e., while it seems to meet
the requirements for having libvirt using the specified TFTP root
specified, libvirt seems to not be doing so.
2017 Apr 04
2
Live migration with non-shared ZFS volume
...his procedure copies the whole disk twice which is a huge downside.
The best solution would be, if libvirt could send the incremental data
since last snapshot itself but this feature is not there (AFAIK).
So I am thinking about a workaround:
1. Create snapshot using: "virsh snapshot-create --xmlfile snap.xml
--disk-only --no-metadata test-domain" which will start writing snapshot
data into temporary qcow2 file
<domainsnapshot>
<disks>
<disk name='/dev/zstore/test-volume'>
<source file='/tmp/test-volume.qcow2'/>
</disk>
</...
2017 Apr 28
1
Re: Live migration with non-shared ZFS volume
Hi Martin,
in the meantime, I've found a solution which I consider at least acceptable:
1. create zfs snapshot of domain disk (/dev/zstore/test-volume)
2. save original XML domain definition
3. create snapshot in libvirt like this:
virsh snapshot-create --xmlfile snap.xml --disk-only --no-metadata
test-domain
snap.xml:
<domainsnapshot>
<disks>
<disk name='/dev/zstore/test-volume'>
<source file='/tmp/test-volume.qcow2'/>
</disk>
</disks>
</domainsnapshot>
This creates overlay qcow s...
2009 Feb 28
13
How to get the MAC address of a domU?
I''m creating a new domU using ''virsh create <xmlfile>'' without specifying the MAC address within the
XML file, under the assumption that the dom0 or hypervisor generates the MAC address for me. Next
I''d like to get the MAC address that was assigned to this new domU, and I don''t see a way to get
that information from...
2019 Oct 23
2
Re: Reg: Adding "edu" device using XML file
...added during the VM creation. But I would like to hot-plug the
device to the running VM. I can add the device using the command line
<virsh qemu-monitor-command --hmp VM-Name device_add edu,id=edu0>
But I would like to add the device using the XML file, like <virsh
attach-device VM-Name xmlfile.xml>. If the XML support is not provided in
libvirt, Is there a document or pointers available to show how to add new
device in libvirt xml code?
Thanks,
Bharath
On Wed, Oct 23, 2019 at 12:57 PM Han Han <hhan@redhat.com> wrote:
>
>
> On Tue, Oct 22, 2019 at 5:41 PM bharath paul...
2016 Apr 10
1
create a network such as default network
Dear All,
When user uses `virsh net-define xmlfile` , User only define an xml file
in `/etc/libvirt/qemu/networks`.
I created an uuid and another bridge in related xml file. But I need to
create the following files for my network:
`default.addnhosts default.conf default.hostsfile virbr0.status`
Question is , can I create them via cmd?
--Best...
2019 Mar 15
1
KVM - full system ( disk+memory) snapshot by excluding the raw disks
...elp me how to fix this ?. or is it possible to take full system snapshot in this case .?.
When I change XMl as internal snapshots for raw disks . It throws a message snapshot are not supported on war disks .
[root@localhost oscgpkg-7eee963550ba9e5b]# virsh snapshot-create --domain oscg2 --xmlfile oscgsnapshot.xml
error: unsupported configuration: disk 'vda' must use snapshot mode 'internal'
[root@localhost oscgpkg-7eee963550ba9e5b]#
[root@localhost oscgpkg-7eee963550ba9e5b]# cat oscgsnapshot.xml
<domainsnapshot>
<description>oscg snapshot<...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...ame
+# $3 - use DHCP (any value)
+# $4 - start dnsmsq (def. false)
+start_networking () {
+ local nodename=$1
+ local ifacename=$2
+ local use_dhcp=${3-false}
+ local start_dnsmasq=${4-false}
+ local workdir=$5
+ local definition=""
+ local network=$NETWORK
+ local xmlfile=$WORKDIR/$nodename-$ifacename.xml
+
+ debug "start_networking ()"
+ for var in nodename ifacename use_dhcp start_dnsmasq workdir network xmlfile; do
+ eval debug "::$var: \$$var"
+ done
+
+ definition="<network>\n<name>${ifacename}</name>...
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class
called XMLDoc. I may add more functionality to it later, hence the more
generic name, but you do something like this to convert XML to a hash:
XMLDoc = Class.create();
Object.extend(XMLDoc.prototype, {
initialize: function (xmlDoc) {
this.element = xmlDoc;
},
asHash: function () {
if (! this._xmlHash) {
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
...ce named, run exclusive, failover domain, etc ) i can
save this configuration and i dont have problem, but when after click to
"add resource" option and appears "add to resource to service" and i select
the option "virtual machine" i fill only the next option:
Path to xmlfile used to create the VM -> /etc/libvirt/qemu/centos.xml
VM configuration file path -> /etc/libvirt/qemu
and after save the change appears the error in lucci:
Error 500
We're sorry but we weren't able to process this request.
And the lucci.log :
Error - <type 'exceptions.Att...
2013 Mar 28
1
Snapshot without volumes temporarily
...#39;vda' snapshot='internal'>
<source file='/var/lib/libvirt/VM1/disk' />
</disk>
<disk name='vdb' snapshot='no' />
</disks>
</domainsnapshot>
=====================================
with this command: # virsh snapshot-create VM1 --xmlfile t1.xml
and get the message: # error: argument unsupported: unable to handle disk
requests in snapshot
My environment is Libvirt 0.9.8, Qemu 1.0.0 on Ubuntu12.04.02
I try to do this action before at libvirt 0.9.2 QEMU 0.14.1 on Ubuntu 11.10
before with following commands, It's success.
Step1...
2014 Jun 25
0
[ANNOUNCE] libnftnl 1.0.2 release
...in json
expr: reject: Add nft_rule_expr_reject_snprinf_* functions
expr: reject: Use nft_rule_expr_set_* in the xml
expr: reject: Do not print unset values in xml
expr: reject: Convert the type of a variable
expr: reject: Do not print unset values in json
tests: xmlfile: Remove unset child elements in the log expression
src: set: Use nft_rule_expr_set_* in the xml parsing code
tests: nft-parsing-test: Display error reason when testing XML
src: set: Do not print unset values in xml
src: set: Do not print unset values in json
set: Free...
2006 May 30
11
Display XML file, with some formatting.
Hi.
Im quite new to this Rails thing, but it seems like a good product so
why not try it out whit a little prototype i need to build.
What i want is to load any given XML file, and display it with some
formatting.
I have some XSD shemes to validate the XML files against, but its not
vital rigth now.
But how should i approach this task?
At first it would proberly be a good idea to load the
2019 Oct 24
0
Re: Reg: Adding "edu" device using XML file
...ation. But I would like to hot-plug the
> device to the running VM. I can add the device using the command line
> <virsh qemu-monitor-command --hmp VM-Name device_add edu,id=edu0>
>
> But I would like to add the device using the XML file, like <virsh
> attach-device VM-Name xmlfile.xml>. If the XML support is not provided in
> libvirt, Is there a document or pointers available to show how to add new
> device in libvirt xml code?
>
> ASAIK there is no development guide for adding new device in libvirt xml
code.
Maybe you can refer to former watchdog device patch...