f12 guest memory problems?
by Gianluca Cecchi
Hello,
F11 x86_64 + rawvirt with latest updates
I have a f12 near beta x86_64 kvm guest where now I'm doing "yum update" in
it and basically I'm only in gui session without doing anything else
Some strange things:
- in virt-manager set 400Mb for VM (both the allocated, change, max
allocation values... btw how to use them???)
my guest sees only about 330Mb
[gcecchi@localhost ~]$ free
total used free shared buffers cached
Mem: 344212 252944 91268 0 4268 26908
-/+ buffers/cache: 221768 122444
Swap: 950264 179092 771172
With dmesg on guest I see something like this:
Memory: 329452k/409536k ...... 79696k reserved
The 79696k reserved seems to fill the gap...
is this a feature in f12 or based on it being a guest?
- As you see, the guest is swapping about 180Mb, and actually it is very
slowly responsive.
Shouldn't it use some of buffers/cache before swapping so much? Is this
expected during a yum update (only 34 packages for an overall of 72MB)?
Or problem with F12 itself or virtualization layer?
Thanks
Gianluca
14 years, 6 months
Re: Oops
by Mark McLoughlin
Hi Gene,
On Tue, 2009-10-20 at 19:39 -0400, Gene Czarcinski wrote:
> F12 beta was available so I downloaded the DVD iso ... that was a waste of
> bandwidth since it was identical to F12-Beta RC2.
>
> Anyway, I had already installed a couple of copies of RC2 into qemu-kvm guests
> so it was time to install this on bare-metal.
>
> My test system already had F12-rawhide installed with all current updates but,
> afterall, this is a test of the install ... so I did another install ... my
> test system supports four, separate bootable systems (combinations of /boot
> partitions and LVM logical volumes for root).
>
> OK, boot it up and start configuring it, updating (I did a DVD-only install),
> etc. Well, one of the things this system does is run qemu-kvm so I had
> selected Virtualization during the install. My guest disk images are all on a
> separate logical volume which I mount on /.var/lib/libvirt/images but the
> system definition/configuration files are separate. When I went to copy them
> from the old system I found the was no place to copy them to ... /etc/libvirt/
> was missing. Further checking showed that the libvirt rpm was not installed
> ... this is easy enought to fix but it should not have happened ... it should
> have been installed when I selected virtualization.
Oops, indeed. I've filed this here:
https://bugzilla.redhat.com/530015
Thanks for finding this, it's a very serious issue that could have crept
by unnoticed.
Cheers,
Mark.
14 years, 6 months
'eject' on a KVM guest
by Matthew Booth
What does the eject (to eject a CD) command do to a KVM guest? It
succeeds, and the result is that the device can no longer be mounted.
However, looking at the domain XML reveals it hasn't disconnected the
backing file.
Matt
--
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team
M: +44 (0)7977 267231
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
14 years, 6 months
how to edit dhcp configuration
by Pavel Lisy
Hello
I want to set fixed IP for host (from MAC address) in dhcp. How can I do
it through libvirt configuration?
There is not possibility set it in virt-manager. I can edit manually
ldapnet.xml (ldapnet is name of my network) but:
1. question:
Where is right place to edit it:
/etc/libvirt/qemu/networks/ldapnet.xml
or
/var/lib/libvirt/network/ldapnet.xml
(after reboot one file replaces other but which direction but I didn't
find which direction)
2. question:
How can I propagate this changes?
Neither
/etc/init.d/libvirtd reload
/etc/init.d/libvirtd restart
changes dnsmasq settings. It is done only during reboot, why?
3. I've found this workaround:
* kill dnsmasq process for this settings
* start dnsmasq with new settings, ex.
.... --dhcp-host 52:54:00:22:a7:76,ldap-m1.ldapnet.tmapy.cz,192.168.241.101
Is it way how to do it through libvirt utility?
Pavel
--
Pavel Lisy <pavel.lisy(a)gmail.com>
14 years, 6 months
Re: nagios-virt: configure: error: Cannot find `nagios' program
by Richard W.M. Jones
On Fri, Oct 16, 2009 at 11:39:38AM +0200, Stephane Grand wrote:
> Hello,
>
> I've found your web page about nagios-virt (http://et.redhat.com/~rjones/nagios-virt/). This tools interesting me to supervise servers and vm.
>
> Unfortunately, I can't test it. Here is error message I got when I execute "./configure"
>
> [root] # ./configure
> ...
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking libvirt/libvirt.h usability... yes
> checking libvirt/libvirt.h presence... yes
> checking for libvirt/libvirt.h... yes
> checking for virConnectGetCapabilities... yes
> checking for nagios... no
> configure: error: Cannot find `nagios' program
>
> I've retried this command with others options but I got the same error message
Does the 'nagios' command exist? Is it on the $PATH?
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://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
14 years, 6 months
Re: Re: nagios-virt: configure: error: Cannot find `nagios' program
by Stephane Grand
Thank you for the answer.
Here is what I have done to follow the installation process.
[root] # PATH=$PATH:/var/supervision/nagios/bin/
[root] # ./configure --with-nagios-configdir=/var/supervision/nagios/etc
[root] # make
[root] # ./nagios-virt config
PACKAGE_NAME nagios-virt
PACKAGE_VERSION 0.2.0
NAGIOS_CONFIGDIR /var/supervision/nagios/etc/
NV_DATADIR /usr/local/share/nagios-virt-0.2.0
==>But I've got another problem.
[root] # ./nagios-virt install
Installing virt-library.cfg in /var/supervision/nagios/etc/ ...
Installing /var/supervision/nagios/etc//commands.cfg ...
Warning: could not install /var/supervision/nagios/etc//commands.cfg This file from the standard Nagios distribution is required in order for nagios-virt to work correctly.
Installing virt-hosts.cfg in /var/supervision/nagios/etc/ ...
virConnectNumOfDomains: failed
Why this command can not install "commands.cfg" file ?
Thank you.
Stephane
========================================
Date du message : oct. 16 2009, 12:05 PM
De : "Richard W.M. Jones" <rjones(a)redhat.com>
A : "Stephane Grand" <stephane.grand(a)atosorigin.com>, fedora-virt(a)redhat.com
Copie :
Sujet : Re: nagios-virt: configure: error: Cannot find `nagios' program
On Fri, Oct 16, 2009 at 11:39:38AM +0200, Stephane Grand wrote:
> Hello,
>
> I've found your web page about nagios-virt (http://et.redhat.com/~rjones/nagios-virt/). This tools interesting me to supervise servers and vm.
>
> Unfortunately, I can't test it. Here is error message I got when I execute "./configure"
>
> [root] # ./configure
> ...
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking libvirt/libvirt.h usability... yes
> checking libvirt/libvirt.h presence... yes
> checking for libvirt/libvirt.h... yes
> checking for virConnectGetCapabilities... yes
> checking for nagios... no
> configure: error: Cannot find `nagios' program
>
> I've retried this command with others options but I got the same error message
Does the 'nagios' command exist? Is it on the $PATH?
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://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
-----------------------
Atos Origin
Stéphane Grand
Open Source Center
dcen-net-grand.consultant(a)dgfip.finances.gouv.fr
14 years, 6 months
USB passthrough and disconnect
by Gianluca Cecchi
Hello,
following the instructions at
http://www.redhat.com/archives/fedora-virt/2009-June/msg00182.html
I'm able to attach an USB key to my Windows XP SP3 guest.
More better, I'm able to attach and use it with the guest already started.
Very good!
(Actually I don't have SElinux enabled so I skipped what related to it )
The doubt is, when in Windows I then safely remove the key and get the ok
msg from the os, if I try to hot remove the USB device in details windows of
the guest I receive the message that will be effective after reboot.
Is this expected and the hot unplug a feature next to come, or do I miss
anything in correct way to do things?
My sw versions for host are F11 x86_64 with up2date rawvirt repo:
libvirt-0.7.1-11.fc11.x86_64
qemu-kvm-0.11.0-6.fc11.x86_64
virt-manager-0.8.0-7.fc11.noarch
Suppose the message is correct behaviour based on current state of things,
what would be correct approach if during a vm session I use several usb keys
for example?
1) insert first usb key in host
2) add hw of first usb key in details tab of guest
3) use it in guest and at the end disconnect it from inside guest OS
4) remove hw in details tab of guest; confirming that this will overwrite
any othe rchanges occured in guest config....
5) remove key form host usb plug
6) insert second usb key in host
7) add hw of second usb key in details tab of guest
8) use it in guest and at the end disconnect it from inside guest OS
9) ? If I do same as 4 do I loose the action made in 4) ??
Do I have to remove more hw components together only at the end? Any removal
will let forget the previous ones?
It seems not clear to me this message about
"
This device could not be removed from the running machine. Would you like to
remove the device after the next VM shutdown?
Warning: this will overwrite any other changes that require a VM reboot.
"
This is true for more than one usb key, but also for more than one device in
general....
Thanks in advance,
Gianluca
14 years, 6 months
status of guest not well visible when selected
by Gianluca Cecchi
So all is working like a charm and I have to scale to aesthetics.... ;-)
With latest rawvirt repo on F11, when I have a guest selected in
virt-manager gui, the current status of it (Running vs Shutoff) is pretty
difficult to notice....
Ok, there is the play symbol inside the terminal icon but probably a black
color for the state of the guest, at least when selected, would be more
readable.
Planning to scratch these two hosts of mine from F11 + rawvirt to F12
Beta... any insights/suggestions? Preupgrade option viable in your opinion?
Bye and thanks,
Gianluca
14 years, 6 months