Re: [libvirt-users] libvirt unavailable while a VM is in migration?]
by Igor Serebryany
On Mon, Dec 20, 2010 at 02:14:42PM +0100, Jiri Denemark wrote:
> Ouch, I wonder if that could be the reason...
Just to make sure that my strange compiling/packages aren't causing the
problem, I've set up two servers running fedora 14 with the official
libvirt packages. i experience the same problem -- while a vm is in
migration, nothing else works. my traces reveal libvirt getting stuck at
the same exact spot as on my debian machines.
at this point, i'm pretty sure that this is a bug in libvirt. Has
libvirt ever had the ability to perform other operations while a qemu
migration is in progress? If so than this is a regression, and a pretty
serious one. For me, this makes live-migrations totally unusable, and
since I cannot run my project without live-migrations and I cannot use
any outside tools to do live-migrations when I'm using libvirt this
makes libvirt totally unusable.
i am desperate to get this bug fixed, and i don't think i have the
resources to try to patch it myself. is there anything i can do to help
you guys? more debugging info? foot massage?
--Igor
13 years, 7 months
[libvirt-users] libvirt, snapshots, LVM, and existing VMs
by Casey Link
Hello,
I am running libvirt 0.8.3 with a couple VMs using a LVM VG that I had
previously setup on my host. I did not use the storage pool
functionality of libvirt to create the VG in the first place
('pool-list' is empty).
Now I want to be able to take snapshots of the VMs. Having read this
previous post [1] on the mailing list, I gather that libvirt does
indeed support taking snapshots of VMs on an LVM. I suppose I need to
create storage pool that includes the <backingStore> element. However,
I am not sure how to go about creating this pool and making my
existing VMs utilize it.
Is what I am trying to do even possible? If so, what is the proper way
to go about doing it?
Best,
Casey Link
[1] http://www.redhat.com/archives/libvir-list/2009-February/msg00196.html
13 years, 9 months
[libvirt-users] libvirt bridge configuration
by Taras Lipatov
Hi Every one,
I'm hoping some one can point me in the right direction.
We are piloting KVM + Libvirt for migrating off Xen and I'm stuck with
the network bridge configuration via libvirt.
What we have currently with xen is:
1 server with Wan/lan interfaces and a pool of public ip addresses.
Using xen bridge scripts I'd start a xenbr0 and attach eth0 (wan) and go
ahead and assign public IP's
to images attached to xenbr0.
Now with creating virbr0, I need to assign it an ip address? and routing
methods? what about creating a transparent bridge via libvirt?
I kno I can achieve this using bridge utils, but it would be nice to
have everything handled by libvirt.
Any help would be appreciated.
cheers,
Taras
13 years, 9 months
[libvirt-users] Guest interface info under ESX driver
by Sengor
Hi,
Is there a way to fetch the current IP address of a running guest
domain (with VMware Tools installed) running on an ESX host?
Ideally this would be doable via the libvirt Python bindings.
Thank you.
--
sengork
13 years, 9 months
[libvirt-users] syslog messages after cd-rom removal
by Alexander Topolanek
Sorry, I know this is not really libvirt related, but I'm searching for
a solution sind about an hour and cannot find anything that helps me ...
Ok, I used to install a standard debian in a kvm instance, and removed
the virtual cd-rom after installation. Now I'm getting this triplet
every five minutes in my syslog:
Jan 26 19:25:12 srv62 kernel: [ 1324.267675] hdc: task_in_intr:
status=0x41 { DriveReady Error }
Jan 26 19:25:12 srv62 kernel: [ 1324.267683] hdc: task_in_intr:
error=0x04 { AbortedCommand }
Jan 26 19:25:12 srv62 kernel: [ 1324.267685] ide: failed opcode was: 0xec
and I'm looking how to get rid of the device.
thanks for any help
Alexander
13 years, 9 months
[libvirt-users] compilation error
by antoni artigues
Hello
I'm trying to compile libvirt-0.8.6 on RHEL4 with kernel 2.6.9-67
The make command returns:
--------------------
util/interface.c: In function `ifaceGetVlanID':
util/interface.c:355: error: `GET_VLAN_VID_CMD' undeclared (first use in
this function)
util/interface.c:355: error: (Each undeclared identifier is reported
only once
util/interface.c:355: error: for each function it appears in.)
make[3]: *** [libvirt_util_la-interface.lo] Error 1
make[3]: Leaving directory `/root/InstalledPackages/libvirt-0.8.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/InstalledPackages/libvirt-0.8.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/InstalledPackages/libvirt-0.8.6'
make: *** [all] Error 2
--------------------
I have saw that GET_VLAN_VID_CMD should be in if_vlan.h file, but it is
not present.
What do I have to update in my system to avoid this error?
Thanks in advance
regards
Antoni Artigues
13 years, 9 months
[libvirt-users] libvirtd + vir-manager + kerberos
by Thomas Schweikle
Hi!
Having two hosts installed with libvirtd, kvm, qemu on (Ubuntu
10.10). Now I have one big problem and one less:
I have set up kerberos for both hosts. Created the principal
"libvirt/srv1.example.org(a)EXAMPLE.ORG" and
"libvirt/srv2.example.org(a)EXAMPLE.ORG", Exported the krb5.keytab,
Installed it and tested the servers:
srv1.example.org: I can connect using kerberos after acquiring a
ticket with kinit.
srv2.example.org: I am asked for user and password. Setup seems to
be identical. Is there a way to debug, what is going on on this
server? I'd like to have both respect kerberos and allow logging in
with no password it already authenticated!
Here is what I've set up:
/etc/sasl2/libvirt.conf
listen_tls = 0
listen_tcp = 1
mdns_adv = 0
auth_unix_ro = "none"
auth_unix_rw = "none"
auth_tcp = "sasl"
/etc/sasl2/libvirt.conf
mech_list: gssapi
keytab: /etc/libvirt/krb5.kqemu
sasldb_path: /etc/libvirt/passwd.db
I start libvirtd with:
KRB5_KTNAME=/etc/libvirt/krb5.kqemu
/usr/sbin/libvirtd -d --listen
In virt-manager I've set both hosts:
qemu+tcp://srv1.example.org
qemu+tcp://srv2.example.org
Since both configs are identical (I've ran diff on them) I am a bit
lost at the moment. I do not have any idea why it works for one
host, but not the other. Any ideas?
--
Thomas
13 years, 9 months
[libvirt-users] multi-user libvirt / virsh?
by Tomasz Chmielewski
I was wondering if libvirt / virsh was designed for multi-user environments.
I.e. I was thinking of the "roles", i.e. root would be able to do
everything, but regular users would only be able to stop/start/suspend,
or use vnc with the virtual machines which belong to them.
Is it possible with libvirt / virsh? If not, are there any other options
to achieve it?
--
Tomasz Chmielewski
http://wpkg.org
13 years, 9 months
[libvirt-users] Allocating Sockets Cores and Threads.
by joe fu
Hi,
Is there any other way I could allocate sockets, cores and threads to my
virtual machine? I looked over the virsh man page and I didn't find anything
that talks about sockets, threads and cores.
I edited the vm xml file and added this...
<cpu>
<topology sockets='1' cores='2' threads='1'/>
</cpu>
Saw this in the libvirt documents, http://libvirt.org/formatdomain.html
Setting this up shows me a single core in my vm, but I don't see any sockets
and threads. Can somebody tell me how to do it in a right way so that I see
all sockets, cores and threads allocated in my vm.
Thanks
joe
13 years, 9 months
[libvirt-users] Is there a way to suppress netfilter rules (default.xml)?
by Oliver Schneider
Hi,
in order to get hook scripts to work, I used a backported version of
libvirtd on Ubuntu 10.04 LTS. Here are the details:
Compiled against library: libvir 0.8.3
Using library: libvir 0.8.3
Using API: QEMU 0.8.3
Running hypervisor: QEMU 0.12.5
After adjusting the apparmor profile to accept the hook scripts under
/etc/libvirt/hooks/, I am able to start and stop domains again, but only
the script named "daemon" gets executed, the one named "qemu" gets
ignored. All my domains are KVM domains. I thought the "qemu" script
should apply to that?!
My actual goal is to suppress the rules or better yet execute my own
script (in order to amend or replace the libvirt rules) after insertion
of the "default" rules during startup of the daemon. The reason being
that I need to do some PNAT and other custom handling ...
So far I have not been able to catch the state where the bridge has
already been created and the rules inserted. Thus I've had to manipulate
the firewall rules manually (well, still scripted ;)) after booting the
host.
Any ideas?
Thanks,
// Oliver
PS: Side-note, I tried using the newfilter facilities, but there seems
to be no way to insert rules at the start of a chain and similar things.
PPS: # cat /etc/libvirt/qemu/networks/default.xml
<network>
<name>default</name>
<bridge name="virbr%d" />
<forward/>
<ip address="192.168.122.1" netmask="255.255.255.0" />
</network>
13 years, 9 months