[libvirt] Workshop Virtualization Technologies in Essen, Germany
by Henning Sprang
Hello everybody!
For the third time, I arranged a "Workshop on Virtualization
Technologies" in cooperation with the Linuxhotel in Essen, Germany.
Our goal is, to provide developers of Open Source Software related to
virtualization, and interested, skilled administrators with the
possibility to come together for a weekend to work on their projects,
exchange experiences and play around with the technology.
The Linuxhotel as a location delivers a great, relaxed athmosphere and a
perfect infrastructure to enable carefree working.
Details - currently in German only - here:
https://wiki.villa-vogelsang.de/doku.php?id=virtualisierung:start
It's no problems to attend the workshop if you're not speaking german -
please let me know if you're interested, and I'll give you more info
on the details - basically it is, if you are an OpenSource developer
in a
virtualization related field, you can attend for free, otherwise you
have to pay a flat fee of 135 Euros.
We're looking for sponsors to see if we can get to reimburse travel
costs for the Open Source developers.
I'd be glad to see you there!
Registration will be by first come-first serve principle - the event
will be limited to 20 Persons.
Henning Sprang
--
Henning Sprang
http://www.sprang.de | http://lazyb0y.blogspot.com/
16 years, 6 months
[libvirt] remote access libvirtd / bindings for php/asp
by Stefan de Konink
Hi,
A few people around me want to use php or asp to access libvirtd. Along
this wish is to access it as 'proxy' for the entire cluster (this is
where I come in).
My target it to make a proxy for libvirtd that allows all host in the
network to be managed by any libvirtd instance that has the sufficient
certificate. Now it seems clear that this dispatch/proxy functions are
doable. But what I wonder about is the actual access to libvirtd.
There seems to be a pretty big warning about the XDR/ RPC calls.
My people would like to see bindings to connect to libvirtd by php or
asp/.net, is there any progress on that one?
Stefan
16 years, 6 months
[libvirt] ANNOUNCE: virt-mem: tools for monitoring virtual machines
by Richard W.M. Jones
I'm pleased to announce this very early pre-alpha release of a further
set of tools for monitoring virtual machines.
The idea is to provide simple commands which can be run outside the
virtual machine to monitor its status. These commands don't require
you to log in to the virtual machine, or to install any software,
since they work entirely by snooping. So they could be very useful
for analyzing guests which are stuck / unresponsive / heavily loaded.
Done so far:
virt-uname like uname(1), print guest's system information
virt-dmesg like dmesg(1), print guest's kernel messages
Coming soon:
virt-ps like ps(1), lists processes
virt-free like free(1), lists free memory and swap
If virt-ps works out, I might do a 'top'-like command, although of
course I can't call it virt-top. I'm open to other suggestions too.
Home page: http://et.redhat.com/~rjones/virt-mem/
Source: http://hg.et.redhat.com/virt/applications/virt-mem--devel
****NOTE****
These require a (forthcoming) patch to libvirt to snoop on virtual
machines' memory. At the moment you can run them by using the QEMU
memsave command to snapshot kernel memory to a file, and then run the
program on the file. The snapshot process is described here:
http://felinemenace.org/~andrewg/MikroTik_Router_Security_Analysis_Part2/
Support for Xen is still under investigation, but we believe it should
be possible.
Example:
(qemu) memsave 3222274048 15728640 snap.mem
$ virt-uname -A i386 -T i386 -t ~/snap.mem
/home/rjones/snap.mem: Linux localhost.localdomain 2.6.24-0.155.rc7.git6.fc9 #1 SMP Tue Jan 15 17:52:31 EST 2008 i686 (none)
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
16 years, 6 months
[libvirt] [PATCH] kvm 32bit guest on 64bit host
by Gerd von Egidy
Hi,
I want to manage a 32 bit i686 guest on an x86_64 host with kvm and libvirt.
KVM is perfectly capable of doing this (look e.g. at
http://kvm.qumranet.com/kvmwiki/Guest_Support_Status) but libvirt did not
allow it.
So I created the attached patch to allow it and make it easy to extend the
capabilities of kvm and kqemu later on.
I did not add anything I'm not sure about, so I did not at 64bit guest on
32bit host (though the page linked above seems to indicate that it works) and
did not change the capabilities of kqemu at all (because I don't have any
experience with it and never used it).
Please consider merging.
Kind regards,
Gerd
--
Address (better: trap) for people I really don't want to get mail from:
james(a)cactusamerica.com
16 years, 6 months
[libvirt] Support for passing arbitrary qemu/kvm admin console commands?
by Charles Duffy
I'm looking at building a framework which makes use of KVM's
pseudo-migration support for snapshot management. To my knowledge, this
functionality is not presently available through libvirt.
Is it possible to send arbitrary qemu/kvm admin console commands to a VM
started and controlled by libvirt, or does any requirement for
funtionality not presently exposed through libvirt conflict with its use?
Thanks!
16 years, 6 months
[libvirt] [PATCH] Add error message when the invalid XML file is defined.
by Hiroyuki Kaguchi
Hi,
When cpuset that is the attribute of vcpu tag of the XML file is the invalid
string, "virsh define" succeeds.
(Ex. <vcpu cpuset='aaa'>4</vcpu>
<vcpu cpuset=' '>4</vcpu>
<vcpu cpuset=',,,'>4</vcpu> )
The patch changes policy that the definition is failed and shows error message.
Thanks,
Signed-off-by: Hiroyuki Kaguchi <fj7025cf(a)aa.jp.fujitsu.com>
Index: src/xm_internal.c
===================================================================
RCS file: /data/cvs/libvirt/src/xm_internal.c,v
retrieving revision 1.79
diff -u -p -r1.79 xm_internal.c
--- src/xm_internal.c 29 May 2008 19:20:23 -0000 1.79
+++ src/xm_internal.c 30 May 2008 05:27:35 -0000
@@ -2004,20 +2004,15 @@ virConfPtr xenXMParseXMLToConfig(virConn
char *ranges;
ranges = virConvertCpuSet(conn, cpus, 0);
- if (ranges != NULL) {
- VIR_FREE(cpus);
- if (xenXMConfigSetString(conf, "cpus", ranges) < 0) {
- VIR_FREE(ranges);
- goto error;
- }
+ VIR_FREE(cpus);
+ if (ranges == NULL) {
+ goto error;
+ }
+ if (xenXMConfigSetString(conf, "cpus", ranges) < 0) {
VIR_FREE(ranges);
- } else {
- if (xenXMConfigSetString(conf, "cpus", cpus) < 0) {
- VIR_FREE(cpus);
- goto error;
- }
- VIR_FREE(cpus);
+ goto error;
}
+ VIR_FREE(ranges);
}
obj = xmlXPathEval(BAD_CAST "string(/domain/os/type)", ctxt);
16 years, 7 months
[libvirt] network unreachable on XEN guest
by Kenneth Nagin
I created a new network based on the default network. However the network
is unreachable to the XEN guest.
I used net-dumpxml to print the "default" xml. I changed the network XML
network name, bridge name, and uuid
and successfully created a new network. I replaced source network
attribute in the domain creation XML to point to the new network name.
However, the guest can not properly initialize eth0 because the new network
is unreachable.
It tries to ping the ip assigned to the new bridge but fails. The same
guest created with the default network works
fine, i.e. it can access the network.
This what network restart looks like on the guest (I'm not sure if this
will be visible on the forum):
(Embedded image moved to file: pic26442.jpg)
This is a copy of the network XML:
<network>
<name>test-net1</name>
<uuid>7cfbfa88-542f-44c7-bbc1-3e19f67d8ca6</uuid>
<forward mode='nat'/>
<bridge name='test-br1' stp='on' forwardDelay='0' />
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254' />
</dhcp>
</ip>
</network>
This the interface segment domain creation XML:
<interface type='network'>
<!--source network='default'/-->
<source network='test-net1'/>
<script path='vif-bridge'/>
</interface>
This is the relevant ifconfig on host:
....
test-br1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.122.1 Bcast:192.168.122.255
Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9768 (9.5 KiB) TX bytes:5018 (4.9 KiB)
vif13.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:194 errors:0 dropped:2771 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:11136 (10.8 KiB) TX bytes:10122 (9.8 KiB)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255
Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:365 errors:0 dropped:0 overruns:0 frame:0
TX packets:3291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34127 (33.3 KiB) TX bytes:512877 (500.8 KiB)
This the brctl show output:
bridge name bridge id STP enabled interfaces
br1 8000.000000000000 no
eth1 8000.001a64a12e56 no peth1
test-br1 8000.feffffffffff yes vif13.0
virbr0 8000.000000000000 yes
What am I missing?
Thanks in advance.
-Kenneth Nagin
16 years, 7 months