I'm still a virtualization in Fedora newbie, so forgive me if this is
a stupid question. Today I started a kernel compile going in a
qemu-kvm virtual machine on one desktop, switched to another desktop,
then left for lunch. When I got back, I switched back to the original
desktop to see how the compile had gone. It was still going. I ran
top, which showed a short-term load of over 4 and a long-term load of
near zero, along with 3 cc1 processes near the top of the list. As I
sat there puzzling over what had happened, the compile finished.
Other compiles have finished in only a few minutes. That near-zero
load makes me suspect that the VM simply stopped doing anything while
I was gone.
I've done a couple of more tests now and have seen the same thing. I
can start a download going, switch to another desktop, wait for
awhile, then switch back. The download has progressed only a short
amount past when I switched away from that desktop, and (apparently)
abruptly resumes when I switch back to the desktop containing the VM
window.
Is this expected? Do KVM-based VMs have to be looked at to do
anything? If so, is there an option somewhere along the lines of
RunEvenWhenIAmNotLookingAtYou=true?
--
Jerry James
http://loganjerry.googlepages.com/
(apologies if you've already seen this, my SMTP was a little
confused this morning when i sent it initially.)
yesterday, in my ongoing quest to turn my brain to yogurt, i was
playing with richard jones' guestfish and libguestfs, and tried to
mount the root filesystem from the disk image that's now sitting in my
home directory so i can get at it without needing root permissions.
$ guestfish
> <fs> add f1164.img
> <fs> run
... wait wait wait ...
> <fs> mount /dev/f1164guest/lv_root /
libguestfs: error: mount: /dev/f1164guest/lv_root on /: mount: unknown
filesystem type 'ext4'
i mentioned this off-line to richard, who said he was just getting a
newer version of the libguestfs packages together, so i just upgraded
to 1.0,6 and:
$ guestfish
> <fs> run
open /dev/kvm: Permission denied
Could not initialize KVM, will disable KVM support
qemu: loading initrd (0x13acad0 bytes) at 0x0000000016c43000
> <fs> pvs
/dev/sda2
> <fs> lvs
/dev/f1164guest/home
/dev/f1164guest/lv_root
/dev/f1164guest/lv_swap
> <fs> mount /dev/f1164guest/lv_root /
> <fs> mounts
/dev/mapper/f1164guest-lv_root
> <fs>
in short, ext4 filesystem support now appears to work, but there's
still the issue (perhaps addressed earlier) that non-root users don't
have access to KVM support but, from the perspective of libguestfs,
does that really matter?
anyway, ext4 support is in there so things are working, at least to
the extent that i've tested it.
rday
--
p.s. i could have sworn i didn't get that /dev/kvm perms error
yesterday. did something about that change since version 1.0.4?
$ ls -l /dev/kvm
crw-rw---- 1 root root 10, 232 2009-04-22 05:16 /dev/kvm
$
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
On Wed, Apr 22, 2009 at 08:43:58PM -0400, Robert P. J. Day wrote:
>
> i can't see posting this to the list, being as pedantic as it is.
> the man page for "guestfish" has a number of references to guestfish
> commands where a hyphen is incorrectly used instead of an underscore.
> just search for the strings in that man page:
>
> aug_init
> aug_set
> aug_*
> aug_close
> aug_load
> aug_match
> blockdev_getsz
> blockdev_getss
> blockdev_getsize64
> is_file
> is_dir
> lvs_full
> pvs_full
> tgz_in
> tgz_out
> tar_in
> tar_out
> vgs_full
This is now fixed in git.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.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/MinGWhttp://www.annexia.org/fedora_mingw
Does anyone have a Windows compile they could send me? I'm having some
problems with Vencrypt.
Thanks,
Rob
The SAQ Group
Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ
SAQ is the trading name of SEMTEC Limited. Registered in England & Wales
Company Number: 06481952
http://www.saqnet.co.uk AS29219
SAQ Group Delivers high quality, honestly priced communication and I.T. services to UK Business.
Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : Backups : Managed Networks : Remote Support.
ISPA Member
Find us in http://www.thebestof.co.uk/petersfield
I'm currently uploading libguestfs 1.0.10 to the site.
http://et.redhat.com/~rjones/libguestfs/http://et.redhat.com/~rjones/libguestfs/files/
There have been a lot of changes (and indeed versions) out over the
past couple of days, but I'll try to summarise the major new features
added in the past week:
- C++ fixes and Java bindings (so now we support the following
with equal status: C, C++, Perl, Python, OCaml, Ruby, Java
and shell scripting)
- KVM support
- QEMU binary is completely configurable at compile & runtime
- ext4 support
- support for uploading and downloading arbitrary-sized files
- support for uploading and downloading tar and tar.gz content
- support for querying size of block devices, setting r/o
- support for reading ext2/3 superblocks
- stat, lstat, statvfs commands
- commands to mount filesystems read-only
- run arbitrary commands from the guest
- file(1) command
- readline in guestfish with history and tab completion
- guestfish 'edit' command
- big documentation improvements, including more on the internals
- pkgconfig file
- and dozens of bug fixes
Enjoy ...
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.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/MinGWhttp://www.annexia.org/fedora_mingw
On Wed, Apr 22, 2009 at 07:27:53AM +0200, Ján ONDREJ (SAL) wrote:
> checking for JDK in /usr/lib/jvm/java... configure: error: missing
> /usr/lib/jvm/java/bin/java binary
>
> I am not interested in these "java" things, so compilation without java can
> be useful, but I also have openjdk installed, just it's in different path:
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java
Use ./configure --with-java-home=no
Please send help requests to fedora-virt, NOT to me directly. I won't
answer any more which are just sent to me.
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
On Tue, Apr 21, 2009 at 05:22:53PM -0400, Robert P. J. Day wrote:
>
> ><fs> mount /dev/f1164guest/lv_root /
> libguestfs: error: mount: /dev/f1164guest/lv_root on /: mount: unknown
> filesystem type 'ext4'
>
> that's really going to limit the value of this. or have i done
> something wrong?
This is the patch:
http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=6d5f69f81a888e26a…
You're lucky that I'm just building version 1.0.5 right now, so it'll
be uploaded to the website, with that fix, in an hour or so.
Please don't mail me directly about stuff - mail it to fedora-virt
instead.
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
On Tue, Apr 21, 2009 at 05:22:53PM -0400, Robert P. J. Day wrote:
>
> ><fs> mount /dev/f1164guest/lv_root /
> libguestfs: error: mount: /dev/f1164guest/lv_root on /: mount: unknown
> filesystem type 'ext4'
>
> that's really going to limit the value of this. or have i done
> something wrong?
I've never tried ext4, and looking at the above it seems like I've
missed out the ext4 kernel module and/or mount program. I'll put in a
patch to fix this in a moment.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.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/
On Tue, Apr 21, 2009 at 10:12:47PM +0200, Ján ONDREJ (SAL) wrote:
> On Tue, Apr 21, 2009 at 09:53:20AM +0200, Ján ONDREJ (SAL) wrote:
> > Another feature enhacement requirement:
> >
> > can you add an option "--kvm" to use qemu-kvm instead of qemu? It's much
> > faster (aprox 50%) on machines, which support hardware virtualization.
> > Also you need to remove --no-kqemu option, which is not recognized by
> > qemu-kvm. May be ability to run kvm may be autodetected in future, but I
> > think, if there is no kvm support, qemu-kvm will run in normal qemu mode.
>
> Some tests with qemu or kvm:
>
> [ondrejj@work libguestfs]$ time ./fish/guestfish -a /home/images/test.img -m
> /dev/sda1 launch
> Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such
> /file or directory
> qemu: loading initrd (0x139cb32 bytes) at 0x16c53000
>
> real 0m27.033s
> user 0m0.016s
> sys 0m0.047s
> [ondrejj@work libguestfs]$ time ./fish/guestfish -a /home/images/test.img -m
> /dev/sda1 launch
> qemu: loading initrd (0x139cb32 bytes) at 0x0000000016c53000
>
> real 0m7.593s
> user 0m0.028s
> sys 0m0.052s
> [ondrejj@work libguestfs]$
>
> As you can see, it's more than 3.5 times faster. :)
>
> May be you can check, if there is qemu-kvm binary and if does not exist,
> then use standard qemu. This may be work well on all architectures.
Yes, that's a huge improvement.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.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
On Tue, Apr 21, 2009 at 08:13:49AM -0400, Robert P. J. Day wrote:
> On Tue, 21 Apr 2009, Robert P. J. Day wrote:
>
> >
> > from "man guestfish":
> >
> > Guestfish is a shell and command-line tool for examining and modifying
> > virtual machine filesystems. It uses libguestfs and exposes all of
> > the functionality of the guestfs API, see guestfs(3).
> > ^^^^^^^^^^ ???
> >
> > i have no such man page entry. where should that come from?
>
> never mind, i'm guessing there's a "-devel" rpm i need.
Yeah, it seems a shame to have guestfish depend on the whole of
libguestfs-devel, just to pull in a single manpage ...
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora