[libvirt-users] some problem with snapshot by libvirt
by xingxing gao
Hi,all,i am using libvirt to manage my vm,in these days i am testing
the libvirt snapshot ,but meet some problem:
the snapshot was created from this command:
snapshot-create-as win7 --disk-only --diskspec
vda,snapshot=external --diskspec hda,snapshot=no
but when i tried to revert from the snapshot which created from the
above command ,i got error below:
virsh # snapshot-revert win7 1338041515 --force
error: unsupported configuration: revert to external disk snapshot not
supported yet
version:
virsh # version
Compiled against library: libvir 0.9.4
Using library: libvir 0.9.4
Using API: QEMU 0.9.4
Running hypervisor: QEMU 1.0.93
10 years, 1 month
[libvirt-users] deadlock on connection loosing
by Александр
libvirtd will lock if for example kill programm which established connection,
only sigkill + restart helps., to reproduce:
virConnectPtr libvirt_connection = virConnectOpen("qemu:///system");
if(libvirt_connection == NULL)
{
std::cout<<"failed to connect to qemu:///system\n";
exit(-1);
}
exit(0);
11 years, 5 months
[libvirt-users] Same credentials stored in auth.conf for many servers
by Maciej Gałkiewicz
Hello
According to client authentication in documentation (
http://libvirt.org/auth.html) it is possible to store credentials in
auth.conf file and make appropriate mappings to servers:
[auth-$SERVICE-$HOSTNAME]
credentials=$CREDENTIALS
Is it possible to use the same credentials for many servers without
explicitly describing it?
For example replacing:
[auth-libvirt-myhost1]
credentials=mycred
[auth-libvirt-myhost2]
credentials=mycred
with:
[auth-libvirt-myhost*]
credentials=mycred
or
[auth-libvirt-any]
credentials=mycred
regards
--
Maciej Gałkiewicz
Shelly Cloud Sp. z o. o., Sysadmin
http://shellycloud.com/, macias(a)shellycloud.com
KRS: 0000440358 REGON: 101504426
11 years, 5 months
[libvirt-users] VMware distributed port groups..Supported?
by Morgan McLean
Hi,
I installed libvirt on CentOS 6 today, only to find I could create the
volume, create the VM, but could not assign the interface to a distributed
port group. I then downloaded the latest source, compiled, and it looks to
be the same...unless its under a command I'm not recognizing?
Does anybody have the great tip that is going to set me free? I hope?
Everything we use is on the vSwitches, as we run 60-80 VLAN's to each
cluster member.
--
Thanks,
Morgan
11 years, 5 months
[libvirt-users] add support to vde2
by Rodolfo Andres
what about add support to vde2??, in vde2-svn you can find a patch but is
outdated, try to apply to current version but lots of rej.
sadly im not a dev so cant help..
Regards.
--
11 years, 5 months
[libvirt-users] qemu-img convert to "sparse" LV
by Edoardo Comar
Apologies as this is is not a specific libvirt question.
Is qemu-img convert compatible with thin-provisioned LVs as targets ?
I wanted to convert a file-based image to a LV image
where the file-based image has a capacity much larger than the actual data
it contains, so it has a small footprint on disk
(either a qcow2 or a raw, but sparse, image).
If I use qemu-img convert -O raw ... with a target LV sized to the full
capacity of the file-image, all is fine.
But if I try use an LV whose virtual size equals the capacity, but its
size is smaller (although more than enough for the data)
the LV is invariably corrupt.
If I try use a thin-provisioned LV pool, and a LV backed by that pool,
the LV resulting from qemu-img convert is not corrupt but it uses as much
space as the file-image capacity it came from.
This on both RHEL64 and Fedora18.
--------------------------------------------------
regards,
Edoardo Comar
WebSphere Application Service Platform for Networks (ASPN)
ecomar(a)uk.ibm.com
+44 (0)1962 81 5576
IBM UK Ltd, Hursley Park, SO21 2JN
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
11 years, 5 months
[libvirt-users] virt-manager 0.10.0 gentoo bug on start?
by Marko Weber | ZBF
hello i installed virt-manager 0.10.0 on gentoo.
on start i get:
Fehler beim Starten des Virtual Machine Managers: cannot import name
SpiceClientGtk
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager", line 303, in <module>
main()
File "/usr/share/virt-manager/virt-manager", line 267, in main
from virtManager.engine import vmmEngine
File "/usr/share/virt-manager/virtManager/engine.py", line 45, in
<module>
from virtManager.details import vmmDetails
File "/usr/share/virt-manager/virtManager/details.py", line 37, in
<module>
from virtManager.console import vmmConsolePages
File "/usr/share/virt-manager/virtManager/console.py", line 28, in
<module>
from gi.repository import SpiceClientGtk
ImportError: cannot import name SpiceClientGtk
i dont set useflag spice. so why it alerts it cant import spice?
any ideas ?
thank you
marko
11 years, 5 months
[libvirt-users] error : Failed to find user record for uid '32722'
by Tony Cebzanov
I'm trying to use the libvirt Python API to manage VirtualBox VMs on Mac
OS X 10.8.3. I'm running libvirt 1.0.6 via Homebrew. However, the
following trivial Python script:
import libvirt
conn = libvirt.open('vbox:///session')
gives me the following error:
libvirt: error : Failed to find user record for uid '32722': Success
Traceback (most recent call last):
File "ch3vm.py", line 3, in <module>
conn = libvirt.open('vbox:///session')
File "/usr/local/lib/python2.7/site-packages/libvirt.py", line 236,
in open
if ret is None:raise libvirtError('virConnectOpen() failed')
libvirt.libvirtError: Failed to find user record for uid '32722': Success
I have no idea where that uid 32722 is coming from -- it's not the uid
of my user account, any of my VirtualBox files, or anything else that
I'm aware of.
Anyone have any idea what's going on here?
11 years, 5 months
[libvirt-users] virsh can create vHBA, but returen error msg "Node device not found"
by Dennis Chen
Hi,
I am using the libvirt 1.0.6 with the patch applied:
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=371c155
The problem I encountered is, with virsh comand 'nodedev-create
/home/kvm/vHBA.xml', the vHBA can be generated as expected on the host,
but error msg will show in the virsh shell:
libvirt: Node Device Driver error : Node device not found
I try to find the reason with gdb, and found that the 'nodedev-create'
command will call virNetClientIOEventLoop() function of the remote
driver, in this function, code will wait on:
repoll:
ret = poll(fds, ARRAY_CARDINALITY(fds), timeout);
after about 50s, poll() returns, but the replied
msg->header.status=VIR_NET_ERROR.
I am not familiar with the rpc call in the remote driver, does anybody
here can give some clues?
BRs,
Dennis
11 years, 5 months