[libvirt] ISCSI Live Migration with LUN backed VMs
by Tim Hughes
I am using iscsi backed VMs which use a separate LUN for each VM. This is
all good until I try to live migrate because the LUN is not logged into on
the new machine. Does anyone have a way of handling logging into and out of
iscsi luns during the migration ?
Tim Hughes
mailto:thughes@thegoldfish.org
16 years, 3 months
[libvirt] default networking issues
by Bryan Kearney
Need some help about where to look next. I am running a Fedora 9
machine, up to date on the releaed rpms. SELinux is permissive, iptables
is stopped. I have followed the instructions for NAT forwarding [1].
When I launch a guest in virt manager it uses the default network, and
is assigned an IP address in the 192.168.122 space. It can do dns
resolution, but can not wget a known website (www.cnn.com). From my host
machine, I can ssh into the guest.
Where is the next place I should look. Is the fact that I am running in
a corporate network causing me issues?
Thanks!
-- bk
[1]
http://wiki.libvirt.org/page/Networking#NAT_forwarding_.28aka_.22virtual_...
16 years, 3 months
[libvirt] [PATCH] The logic in veth.c that searches for free interface names takes into account
by Dan Smith
only current devices, but not device names already planned for the other
half of a container's device pair. Thus, the search can result in attempting
to create a pair of devices such as veth1 and veth1, which obviously does
not work.
This patch augments the logic to be a little smarter in this regard, and should
fix one case where attempting to start a container results in an error message
of "unable to create device pair".
diff -r 8c5e6387e449 -r 8545f7ac1f0f src/veth.c
--- a/src/veth.c Tue Aug 05 16:45:07 2008 +0000
+++ b/src/veth.c Wed Aug 06 08:14:16 2008 -0700
@@ -92,17 +92,18 @@
DEBUG("veth1: %s veth2: %s", veth1, veth2);
- if (1 > strlen(veth1)) {
+ while ((1 > strlen(veth1)) || STREQ(veth1, veth2)) {
vethDev = getFreeVethName(veth1, veth1MaxLen, 0);
++vethDev;
DEBUG("assigned veth1: %s", veth1);
}
- if (1 > strlen(veth2)) {
+ while ((1 > strlen(veth2)) || STREQ(veth1, veth2)) {
vethDev = getFreeVethName(veth2, veth2MaxLen, vethDev);
DEBUG("assigned veth2: %s", veth2);
}
+ DEBUG("veth1: %s veth2: %s", veth1, veth2);
rc = virRun(NULL, (char**)argv, &cmdResult);
if (0 == rc) {
16 years, 3 months
[libvirt] update from gnulib
by Jim Meyering
I've just checked in a big batch of changes from gnulib.
Each of those changes has been reviewed by at least two
people (see bug-gnulib(a)gnu.org), and most of them address
problems also reported on that list, or e.g., on bug-coreutils,
bug-m4, etc.
However, I suspect some of them have not yet been exercised
on RHEL4/5 systems, so test builds there may be interesting.
>From e6440820773161436812ccad7eba6d555a8186dd Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Thu, 7 Aug 2008 10:28:22 +0200
Subject: [PATCH] update from gnulib
* build-aux/mktempd (rand_bytes, mktempd):
* build-aux/useless-if-before-free (FILE):
* build-aux/vc-list-files:
* gnulib/lib/.cvsignore:
* gnulib/lib/Makefile.am:
* gnulib/lib/poll.c (poll):
* gnulib/lib/stdbool.in.h (_GL_STDBOOL_H, true):
* gnulib/lib/stdio-impl.h (fp_, fp_ub):
* gnulib/lib/stdio.in.h (vasprintf, obstack_printf)
(obstack_vprintf):
* gnulib/lib/vasnprintf.c (_GNU_SOURCE, sprintf, IF_LINT, exp)
(remainder, scale10_round_decimal_long_double)
(scale10_round_decimal_double, pad_ourselves):
* gnulib/m4/gnulib-cache.m4:
* gnulib/m4/gnulib-common.m4 (gl_MODULE_INDICATOR):
* gnulib/m4/gnulib-tool.m4 (gl_LOCAL_DIR, gl_M4_BASE, gl_PO_BASE)
(gl_DOC_BASE, gl_TESTS_BASE, gl_WITH_TESTS, gl_LIB, gl_LGPL)
(gl_MAKEFILE_NAME, gl_MACRO_PREFIX, gl_PO_DOMAIN, gl_VC_FILES):
* gnulib/m4/lock.m4 (gl_LOCK_EARLY_BODY, gl_PREREQ_LOCK)
(gl_DISABLE_THREADS):
* gnulib/m4/onceonly.m4:
* gnulib/m4/posix-shell.m4 (gl_POSIX_SHELL):
* gnulib/m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS):
* gnulib/tests/test-getaddrinfo.c (ENABLE_DEBUGGING, dbgprintf)
(simple):
* gnulib/tests/test-stdint.c (UINTMAX_MAX, or):
* gnulib/tests/test-vc-list-files-cvs.sh (compare):
* gnulib/tests/test-vc-list-files-git.sh (compare):
---
build-aux/mktempd | 6 +++-
build-aux/useless-if-before-free | 32 +++++++++++++++---------
build-aux/vc-list-files | 5 ++-
gnulib/lib/.cvsignore | 12 ++++----
gnulib/lib/Makefile.am | 15 +++++++++++-
gnulib/lib/poll.c | 34 ++++++++++++++++++-------
gnulib/lib/stdbool.in.h | 6 ++--
gnulib/lib/stdio-impl.h | 4 +-
gnulib/lib/stdio.in.h | 20 +++++++++++++++
gnulib/lib/vasnprintf.c | 25 +++++++++++++++----
gnulib/m4/gnulib-cache.m4 | 21 ++++++++++++++-
gnulib/m4/gnulib-common.m4 | 9 ++++++-
gnulib/m4/gnulib-tool.m4 | 28 ++++++++++++++++++++-
gnulib/m4/lock.m4 | 37 +++++++++++++++++++++-------
gnulib/m4/onceonly.m4 | 15 +++++++----
gnulib/m4/posix-shell.m4 | 7 +++--
gnulib/m4/stdio_h.m4 | 6 ++++-
gnulib/tests/test-getaddrinfo.c | 41 +++++++++++++++++++------------
gnulib/tests/test-stdint.c | 6 ++++-
gnulib/tests/test-vc-list-files-cvs.sh | 3 +-
gnulib/tests/test-vc-list-files-git.sh | 3 +-
21 files changed, 249 insertions(+), 86 deletions(-)
16 years, 3 months
[libvirt] Is CVS server working?
by Atsushi SAKAI
Hi,
CVS server anoncvs@libvirt.org:2401/data/cvs is working?
I can see git repository but CVS repository are not.
Thanks
Atsushi SAKAI
16 years, 3 months
[libvirt] [PATCH] Install default storage pool
by Cole Robinson
The attached patch adds a default pool definition to install
with libvirt. The pool is a directory pool, hardcoded to use
/var/lib/libvirt/images, though this is replaced with
%{_localstatedir}/lib/libvirt/images if installing via rpm.
Since /var/lib/libvirt/images may not exist if installing
from tar.gz, the pool is set not to autostart by default
via that method.
This patch isn't ready to apply though, since there is one
issue I don't know how to solve. We don't want every rpm
upgrade to install the default pool, since we don't want
the default to continually resurrect itself if a user
explicitly deletes it.
The default network handles this by checking if libvirtd
has been installed. Since libvirtd and virtual network
support were introduced around the same time, this makes
sense. However for storage, I can't think of any simple
check we can make. If we used the same as the default
network, all f8 or f9 upgrades wouldn't install the
default pool.
I can't really think of anything to check, besides maybe
doing some sort of time comparison on when
/usr/share/libvirt/storage/default.xml was accessed. This
code is just hardcoded to always add it.
Any ideas?
Thanks,
Cole
16 years, 3 months
[libvirt] [patch][doc] fix typos 20080807
by Atsushi SAKAI
Hi,
Typo fixes on document.
formatdomain.html | 22 +++++++++++-----------
formatdomain.html.in | 22 +++++++++++-----------
java.html | 2 +-
java.html.in | 2 +-
4 files changed, 24 insertions(+), 24 deletions(-)
Thanks
Atsushi SAKAI
16 years, 3 months
[libvirt] How does virt-manager send shutdown?
by Bryan Kearney
How does virt-manager send shutdown to guests? Does it depend on if you
are running kvm or xen? I have been building images with acpid enabled
and acpi=force on the command line. After upgrading to f9 and running
kvm my images no longer respond to shutdown. Is there a tweak which I
have missed?
- bk
16 years, 3 months