[PATCH libguestfs] maint: remove a subsumed syntax-check rule
by Jim Meyering
Hi Rich,
I noticed that libguestfs's cfg.mk had an old (and relatively
inefficient) version of the rule that checks for empty lines at EOF.
The one in maint.mk is much more efficient:
>From cf93f04a980ec01ef37db9a0d4c7b99015169eee Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 17 Sep 2012 11:49:34 +0200
Subject: [PATCH libguestfs] maint: remove a subsumed syntax-check rule
* cfg.mk (sc_prohibit_trailing_blank_lines): Remove rule. It is now
subsumed by the much more efficient sc_prohibit_empty_lines_at_EOF
rule in gnulib's maint.mk.
---
cfg.mk | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index e619f0a..3b0b45e 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1,5 +1,5 @@
# Customize Makefile.maint. -*- makefile -*-
-# Copyright (C) 2003-2009 Free Software Foundation, Inc.
+# Copyright (C) 2003-2012 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -115,16 +115,6 @@ sc_prohibit_gethostby:
halt='use getaddrinfo, not gethostby*' \
$(_sc_search_regexp)
-# Disallow trailing blank lines.
-sc_prohibit_trailing_blank_lines:
- @$(VC_LIST_EXCEPT) \
- | xargs perl -ln -0777 -e \
- '-f $$ARGV or next; /\n\n+$$/ and print $$ARGV' > $@-t
- @found=0; test -s $@-t && { found=1; cat $@-t 1>&2; \
- echo '$(ME): found trailing blank line(s)' 1>&2; }; \
- rm -f $@-t; \
- test $$found = 0
-
# We don't use this feature of maint.mk.
prev_version_file = /dev/null
--
1.7.12.464.g83379df
12 years, 1 month
NOTE: In libguestfs 1.19.41, the libvirt backend will have sVirt enabled by default
by Richard W.M. Jones
[If you're using the upstream libguestfs with default settings, then
this does NOT affect you. libvirt isn't required by libguestfs.]
>From libguestfs 1.19.41, if you have selected the alternate libvirt
method to launch the appliance, ie, if you have done:
./configure --with-default-attach-method=libvirt
then sVirt is enabled by default.
This is for enhanced security: if a malicious disk image manages to
corrupt the appliance *and* take over qemu, then SELinux provides
additional confinement of the qemu process, ensuring it cannot read or
write arbitrary files or other resources in the host. From Fedora 18,
this will be the default.
However sVirt won't work currently unless you patch libvirt and add
some SELinux policy. The details are in these two bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=853393
https://bugzilla.redhat.com/show_bug.cgi?id=857453
I hope to get these fixes upstream soon.
Furthermore if you want to run 'make check' with libvirt + sVirt +
SELinux=Enforcing, then you'll need to label the 'tmp' directory in
the libguestfs sources:
cd /path/to/libguestfs
chcon --reference=/tmp tmp
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
12 years, 1 month
ANNOUNCE: RHEL 6.4 preview packages available
by Richard W.M. Jones
As some may remember, in the run-up to RHEL 6.3 I made a yum
repository available of libguestfs and other packages. It's time for
the same thing for RHEL 6.4.
These packages should work on RHEL 6.3, CentOS 6.3 and other RHEL 6
derivatives (although I've only tried them on RHEL 6.3). A source RPM
is also supplied in case you want to try rebuilding the package.
To use the repo, run the following command as root:
cat >/etc/yum.repos.d/libguestfs-RHEL-6.4-preview.repo <<EOF
[libguestfs-RHEL-6.4-preview]
name=libguestfs RHEL 6.4 preview - x86_64
baseurl=http://people.redhat.com/~rjones/libguestfs-RHEL-6.4-preview/
enabled=1
gpgcheck=0
EOF
Then:
yum install '*guestf*'
Running 'libguestfs-test-tool' after this is a good way to test if
things are generally working or not. If you want to try a more
thorough set of tests, then see:
http://libguestfs.org/guestfs-testing.1.html
To go back to the supported packages, uninstall libguestfs, remove the
file /etc/yum.repos.d/libguestfs-RHEL-6.4-preview.repo and install
libguestfs from the usual place.
If you find bugs, please let me know, or file them in Bugzilla.
For a list of known bugs in libguestfs on RHEL 6, see:
https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Red%...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
12 years, 1 month
virt-rescue --ro option has no effect
by Olaf Hering
Should 'virt-rescue -a some.img --ro' tell qemu/kvm that some.img is
supposed to be read-only in the guest? I have not looked at the code
yet, perhaps --ro has a meaning only when attaching to a live guest.
I was expecting that all write access to some.img is denied in the
rescue shell.
Olaf
12 years, 1 month
guestfish(1) references non-existant tar_out/tar_in option
by Olaf Hering
While creating my first guestfish script I noticed an inconsistency in
the guestfish(1) man page. The option tgz-out references "tar_out",
which does not exist, instead its called "tar-out". The same is true for
tgz-in/tar_in. After a quick grep in the code its not clear to me how to
resolve this issue.
Olaf
12 years, 1 month
guestfsd process dead while quitting guestfish
by Richard Huang
I've compiled guestfsd and run it on CentOS 6.3. It worked well, but when I
quit guestfish, the guestfsd process in guest is always dead itself
automatically. Is this a bug? or did I miss something?
thanks.
12 years, 1 month
Re: [Libguestfs] compile guestfsd
by Richard W.M. Jones
On Wed, Sep 12, 2012 at 04:39:48PM +0800, Richard Huang wrote:
> Hi Richard,
>
> I want to compile guestfsd only for some guests, including centos, debian,
> variable versions. But I didn't find scripts for it. Can you guide me how
> to do this?
I'm unclear exactly what the question is. You can compile guestfsd
(just the daemon) this way:
./configure \
--enable-daemon \
--disable-appliance \
--disable-fuse \
--disable-perl \
--disable-python \
--disable-ruby \
--disable-haskell \
--disable-php \
--disable-erlang \
--disable-gobject
make
$ ls -l daemon/guestfsd
-rwxrwxr-x. 1 rjones rjones 2073914 Sep 12 09:57 daemon/guestfsd
You still have to run that command on each distro/version that you
want to build a daemon for, assuming that's what you're trying to do.
Try:
./configure --help | grep -E -- '--(dis|en)able'
to get a list of things that can be enabled or disabled. There is no
way currently to disable building the library, tools and language
bindings as a whole, although arguably we should add that.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
12 years, 1 month
java.lang.UnsatisfiedLinkError
by 周涛
hi jones!
i run a java testcase in my new environment(V1.19.35 that was installed by "make install"),
"System.loadLibrary ("guestfs_jni")" leads to :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no libguestfs_jni in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
but "find /usr/local/lib -name '*guestfs_jni*' " returns:
/usr/local/lib/libguestfs_jni.so.1.19.35
/usr/local/lib/libguestfs_jni.so
/usr/local/lib/libguestfs_jni.la
/usr/local/lib/libguestfs_jni.so.1
and i tried to add "/usr/local/lib/" into LD_LIBRARY_PATH, but it had no effect.
could you tell me the reason?
Thanks!
周涛
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
12 years, 1 month
mount device of 'unknow' filesystem type
by 周涛
hi all!
some windows vm's filesystem type is unknown(/dev/sda: unknown),
and 'mount' command leads to:
'libguestfs: error: mount: /dev/sda on / (options: ''): mount: you must specify the filesystem type '
if i don't know the type, whether i could mount the device?
Thanks!
周涛
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
12 years, 1 month