[libvirt-users] How to have a directory and its subdirectories as a storage pool
by Marc Haber
Hi,
I would like to use btrfs subvolumes as storage place for VM images to
use snapshots.
Unfortunately, this does not seem to work in virt-manager at least
since the "filesystem directory" storage pool type does not allow me
to descend into subdirectories.
Is there a trick to do this? Can I do it with virsh, or in the XML?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600420
10 years, 2 months
[libvirt-users] Network reconfiguration glitch after migration
by Joaquim Barrera
Hello everyone,
I have the following scenario:
* 2 host machines (H1 and H2) running VMs. I execute migrations (QEMU)
from one host to the other, and so on. The migrations are done in a
dedicated LAN (eth1 in both hosts) while regular department LAN runs on eth0
* 1 computer (my desktop computer) also connected to this common LAN on
eth0.
The VMs have a Python script sending UDP packets to my desktop computer
(which has the server part of the Python script), every 250 ms, to be
able to mesure downtime and other stuff. Once I run a live migration
from H1 to H2, I would expect the downtime to be in the order of ms, or
maybe a few seconds, but it takes something like 10 to 20 seconds on
average for the packets to resume arriving at my computer. One could
think about the network reconfiguration delay, or other reasons, but
here comes the tricky part:
If I have a ping running on the destination host to the internal IP that
the VM is supposed to have once the migration is done, the UDP packets
resume just a few ms after the migration os done.
Is like: if the VM only has outgoing connections, it takes a lot of time
to resume its operation, but if it has some incoming connection, the
network resumes very quick.
I know it may sound wierd, but maybe there is a clear reason for this
issue. Any ideas?
Thank you!
10 years, 2 months
[libvirt-users] libvirt ignores ip setting when creating a xen domU?
by Kim Larry
Hi,
I'm currently writing a script to avoid ip conflict but I couldn't get ip address from xenstore when I create a guest using libvirt with libxl connector. With 'xl create' command, it works everything fine, but not with libvirt. So I dug into the source code, I couldn't find any code for declaring x_nic->ip field in libxlMakeNic().
Or I just created XML file the wrong way?
Here is a part of domain XML:
<interface type="bridge">
<mac address="00:16:3e:51:6b:19" />
<protocol family="ipv4">
<ip address="10.0.1.119" prefix="24" />
<route gateway="10.0.1.1"/>
</protocol>
<source bridge="virbr0" />
</interface>
Hope someone can help me out.
- Larry
10 years, 2 months
[libvirt-users] How can I get the pid mapping relationship between the container and the native OS
by WANG Cheng D
Dear all,
I want to dynamically change the CPU affinity of multiple processes/threads started in a container. Changing affinity operation is done in native OS. My problem is how to obtain the mapping relationship between the two pids owned by the process/thread. As you know, one pid is given by the container, which is different from the corresponding pid seen by the native OS.
Thank you in advance.
Cheng
10 years, 2 months