Virt-resize error (ntfs) : Fatal error: exception Guestfs.Error("ntfsresize_opts: /dev/vda2)
by Morgan Cox
Hi.
Libguestfs 1.14
Ubuntu 11.10
I am trying use virt-resize on NTFS partitions.
I have installed Windows 2008 in an LVM partition (in order to use RAW) - I
am trying to resize to a larger LVM partition.
I have ntfsresize installed on the server - the windows partition is not
encrypted.
root@kvm1:~# ntfsresize -v
ntfsresize v2011.4.12AR.4 (libntfs-3g)
The attempt ends with an error
Fatal error: exception Guestfs.Error("ntfsresize_opts: /dev/vda2)
I have attached a txt file of the results where I have used
export LIBGUESTFS_DEBUG=1 ; export LIBGUESTFS_TRACE=1
I have also tried using
virt-resize --expand /dev/sda2 /dev/vgpool/w2008webtemplate
/dev/vgpool/wintest2
as well as
virt-resize --expand /dev/vda2 /dev/vgpool/w2008webtemplate
/dev/vgpool/wintest2
Any ideas how to get it working ?
13 years
[PATCH] out-of-tree build: ruby
by Hilko Bengen
---
ruby/Makefile.am | 4 ++--
ruby/Rakefile.in | 18 +++++++++---------
ruby/run-bindtests | 2 +-
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/ruby/Makefile.am b/ruby/Makefile.am
index 112512b..032ace2 100644
--- a/ruby/Makefile.am
+++ b/ruby/Makefile.am
@@ -62,7 +62,7 @@ RUBY_SITEARCH := $(shell ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']"
install:
$(MKDIR_P) $(DESTDIR)$(RUBY_SITELIB)
$(MKDIR_P) $(DESTDIR)$(RUBY_SITEARCH)
- $(INSTALL) -p -m 0644 lib/guestfs.rb $(DESTDIR)$(RUBY_SITELIB)
- $(INSTALL) -p -m 0755 ext/guestfs/_guestfs.so $(DESTDIR)$(RUBY_SITEARCH)
+ $(INSTALL) -p -m 0644 $(srcdir)/lib/guestfs.rb $(DESTDIR)$(RUBY_SITELIB)
+ $(INSTALL) -p -m 0755 $(builddir)/ext/guestfs/_guestfs.so $(DESTDIR)$(RUBY_SITEARCH)
endif
diff --git a/ruby/Rakefile.in b/ruby/Rakefile.in
index 7c5a63a..f4bf901 100644
--- a/ruby/Rakefile.in
+++ b/ruby/Rakefile.in
@@ -24,7 +24,7 @@ require 'rake/gempackagetask'
PKG_NAME='@PACKAGE_NAME@'
PKG_VERSION='@PACKAGE_VERSION@'
-EXT_CONF='@srcdir(a)/ext/guestfs/extconf.rb'
+EXT_CONF='@abs_srcdir(a)/ext/guestfs/extconf.rb'
MAKEFILE='@builddir@/ext/guestfs/Makefile'
GUESTFS_MODULE='@builddir(a)/ext/guestfs/_guestfs.so'
GUESTFS_SRC='@srcdir(a)/ext/guestfs/_guestfs.c'
@@ -38,13 +38,13 @@ CLOBBER.include [ "@builddir(a)/config.save", "@builddir(a)/ext/**/mkmf.log",
# Build locally
file MAKEFILE => EXT_CONF do |t|
- unless sh "top_srcdir=$(pwd)/@top_srcdir@; top_builddir=$(pwd)/@top_builddir@; export ARCHFLAGS=\"-arch $(uname -m)\"; cd #{File::dirname(EXT_CONF)}; ruby #{File::basename(EXT_CONF)} --with-_guestfs-include=$top_srcdir/src --with-_guestfs-lib=$top_builddir/src/.libs"
+ unless sh "top_srcdir=$(pwd)/@top_srcdir@; top_builddir=$(pwd)/@top_builddir@; export ARCHFLAGS=\"-arch $(uname -m)\"; mkdir -p @builddir@/ext/guestfs; cd @builddir@/ext/guestfs; ruby #{EXT_CONF} --with-_guestfs-include=$top_srcdir/src --with-_guestfs-lib=$top_builddir/src/.libs"
$stderr.puts "Failed to run extconf"
break
end
end
file GUESTFS_MODULE => [ MAKEFILE, GUESTFS_SRC ] do |t|
- Dir::chdir(File::dirname(EXT_CONF)) do
+ Dir::chdir("@builddir@/ext/guestfs") do
unless sh "make"
$stderr.puts "make failed"
break
@@ -61,19 +61,19 @@ end
task :test => :build
RDOC_FILES = FileList[
- "README.rdoc",
- "lib/**/*.rb",
- "ext/**/*.[ch]"
+ "@srcdir(a)/README.rdoc",
+ "@srcdir(a)/lib/**/*.rb",
+ "@srcdir(a)/ext/**/*.[ch]"
]
Rake::RDocTask.new do |rd|
- rd.main = "README.rdoc"
+ rd.main = "@srcdir(a)/README.rdoc"
rd.rdoc_dir = "doc/site/api"
rd.rdoc_files.include(RDOC_FILES)
end
Rake::RDocTask.new(:ri) do |rd|
- rd.main = "README.rdoc"
+ rd.main = "@srcdir(a)/README.rdoc"
rd.rdoc_dir = "doc/ri"
rd.options << "--ri-system"
rd.rdoc_files.include(RDOC_FILES)
@@ -82,7 +82,7 @@ end
# Package tasks
PKG_FILES = FileList[
- "Rakefile", "COPYING", "README", "NEWS", "README.rdoc",
+ "Rakefile", "COPYING", "README", "NEWS", "@srcdir(a)/README.rdoc",
"lib/**/*.rb",
"ext/**/*.[ch]", "ext/**/MANIFEST", "ext/**/extconf.rb",
"tests/**/*",
diff --git a/ruby/run-bindtests b/ruby/run-bindtests
index a78b5f6..4cac863 100755
--- a/ruby/run-bindtests
+++ b/ruby/run-bindtests
@@ -18,5 +18,5 @@
set -e
-ruby -Ilib -Iext/guestfs bindtests.rb > bindtests.tmp
+ruby -I${srcdir}/lib -Iext/guestfs ${srcdir}/bindtests.rb > bindtests.tmp
diff -u ${srcdir}/../bindtests bindtests.tmp
--
1.7.7.3
13 years
Possible issue with virt-v2v writing to wrong Windows registry control set
by Greg Scott
I may have stumbled across a virt-v2v bug.
I just did a successful virt-v2v migration of a Windows 2008 server from
an ESXi host to a RHEV environment. While the VM was still on the ESXi
side, I removed its VMWare tools and rebooted it just make sure it was
still functional. Then I shut it down and V2V'd and imported it into
RHEV.
When I first powered up the new RHEV copy, it found and installed the
driver for the Virtio NIC and tried to install the Viostor SCSI driver,
but failed with "Access Denied". This was strange. Looking at the
Windows Device Manager, I noticed a SCSI controller without any driver
and an "Unknown Device". This looked similar to the situation when it
was an ESXi VM.
I tinkered around with drivers a little bit, trying to be the Viostor
stuff to load. It never did. So I rebooted the VM, just to make sure
it would come back up while I was there to watch it and I could deal
with its missing 2nd disk drive later. Good call - it went into a
crash/reboot loop. Bummer.
I caught it and tried "Last Known Good" from the Windows boot menu.
This never works, but I keep trying anyway. Good thing, because this
time it came right back up. It also successfully loaded the Viostor
block driver this time and now there are no more SCSI controllers
without drivers and no more Unidentified Devices. And that VM's second
hard drive also showed up - this was probably the "unknown device" from
before.
I wonder if virt-v2v wrote its registry updates to the wrong registry
control set and I stumbled across it?
And a tip for anyone else - if your Windows VM crashes after a virt-v2v,
try booting with Last Known Good.
- Greg Scott
13 years
[ANNOUNCE] libguestfs webinar TOMORROW (Friday)
by Richard W.M. Jones
I'll be holding a libguestfs live “webinar” tomorrow, Friday,
18th November 2011 at 16:00 UTC.
To convert the date and time to your timezone, do:
date -d '2011-11-17 16:00Z'
The programme will include:
- An introduction to libguestfs features.
- Live demonstrations of guestfish, a Python program, inspection, and
image resizing.
- An overview of major new features in RHEL 6.3.
- The opportunity to ask questions on any technical topic related to
libguestfs.
This is going to be a Webex conference. It's possible, albeit
difficult, to get Webex working on Linux. You will need the Java
plugin for your browser, and there are some other tips on my blog:
https://rwmj.wordpress.com/2011/11/17/libguestfs-web-seminar-this-friday/
The Webex conference link, an accompanying handout, and other details
will be posted to the above URL ^^ shortly before the session starts.
Don't worry if you can't make it or can't get Webex to work, as it
will all be recorded and placed online in an open format as soon as we
can afterwards.
This seminar is sponsored by Red Hat.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
13 years
[PATCH] New API: mdadm-detail
by Matthew Booth
Return a hash containing metadata about a specific Linux MD device, based on the
output of 'mdadm -DY'.
---
daemon/md.c | 78 ++++++++++++++++++++++++++++++++++++++++
generator/generator_actions.ml | 31 ++++++++++++++++
regressions/test-mdadm.sh | 60 ++++++++++++++++++++++++++++++-
src/MAX_PROC_NR | 2 +-
4 files changed, 169 insertions(+), 2 deletions(-)
13 years
Re: [Libguestfs] febootstrap-3.12 configure error on Fedora 16
by Richard W.M. Jones
On Mon, Nov 14, 2011 at 04:43:28PM +0100, Andrzej Tobola wrote:
> Hello Richard,
>
> Can't configure febootstrap-3.12 on Fedora 16:
>
> $ ./configure
> ............
> checking for aptitude... no
> checking for apt-cache... no
> checking for dpkg... no
> checking for pacman... no
> checking for gzopen in -lz... no
> checking for mke2fs... /sbin/mke2fs
> checking for error_message in -lcom_err... no
> configure: error: in `/home/ato/febootstrap/febootstrap-3.12':
> configure: error: com_err library not found (part of e2fsprogs)
> See `config.log' for more details
>
> [ato@f16 febootstrap-3.12]$ gcc -std=gnu99 -o conftest -g -O2 conftest.c -lcom_err
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `et_list_lock':
> (.text+0x18d): undefined reference to `sem_wait'
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `et_list_unlock':
> (.text+0x1b6): undefined reference to `sem_post'
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `setup_et_lock':
> (.text.startup+0x11): undefined reference to `sem_init'
> /usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/libcom_err.a(error_message.o): In function `fini_et_lock':
> (.text.exit+0xa): undefined reference to `sem_destroy'
> collect2: ld returned 1 exit status
>
>
> It seems that sem_* symbols are in -pthread - thist works OK:
>
> $ gcc -std=gnu99 -o conftest -g -O2 conftest.c -pthread -lcom_err
>
> so What must be corrected ?
I don't see this error myself. I just unpacked febootstrap-3.12 from
the tarball, and ./configure && make works fine.
What does config.log say?
> PS
> You can also add:
>
> yum install git mailx autoconf automake texinfo ocaml pcaml-findlib
>
> to the descripion on how to install on fresh F16.
> to save others from my detective work.
I'm fairly sure you don't need autoconf and automake, to build from
the tarball. Building from git does of course require these.
OCaml and ocaml-findlib are already mentioned in the README file.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
13 years
[PATCH 1/3] out of tree build: erlang
by bengen@hilluzination.de
From: Hilko Bengen <bengen(a)hilluzination.de>
---
erlang/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/erlang/Makefile.am b/erlang/Makefile.am
index f336375..2c9e359 100644
--- a/erlang/Makefile.am
+++ b/erlang/Makefile.am
@@ -32,7 +32,7 @@ erlang_bindir = $(libdir)/erlang/lib/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/ebin
erlang_bin_DATA = guestfs.beam
guestfs.beam: guestfs.erl
- $(ERLC) +debug_info guestfs.erl
+ $(ERLC) +debug_info $^
bin_PROGRAMS = erl-guestfs
--
1.7.7.2
13 years