[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
9 years, 9 months
[libvirt-users] Using Java bindings to event callback
by Howie
Hi
My test environment :
CentOS 6.3 6.4
Ubuntu 13.10
For CentOS 6.4
libvirt-java-0.4.9-1.el6.noarch
libvirt-python-0.10.2-29.el6.x86_64
libvirt-client-0.10.2-29.el6.x86_64
libvirt-0.10.2-29.el6.x86_64
I am try to use java bindings to event callback.
int register = conn.domainEventRegisterAny(null, 0, cb);
But always get the following error message:
libvirt: Remote Driver error : adding cb to list
exception caught:org.libvirt.LibvirtException: adding cb to list
level:VIR_ERR_ERROR
code:VIR_ERR_RPC
domain:VIR_FROM_REMOTE
hasConn:false
hasDom:false
hasNet:false
message:adding cb to list
str1:%s
str2:adding cb to list
str3:null
int1:-1
int2:-1
By the way I also trace the mail list
*[libvirt] [PATCH] Java bindings for domain events* (2008 Nov 07)
*[libvirt] [PATCH 1/2] Java bindings for domain events**[libvirt]
[PATCH 2/2] Java bindings for domain events* (2008 Nov 18) --> Reject
patch*Re: [libvirt] [PATCH 1/2] Java bindings for domain events* (2008
Dec) —>No Result*[libvirt-users] Using Java bindings to event
callback * (2010 Jul) —>No Result
*[libvirt] [PATCH 0/2] Libvirt-java event handling (2011Jul)* —>
I think most drivers don't support that. We have a custom driver for
our hypervisor and it works.
*[libvirt] [libvirt-java] [PATCH 00/12] event support* (2013 Jan)
—> *Re: [libvirt] [libvirt-java] [PATCH 00/12] event support (2013
Mar)* --> No Result
Any suggestions?
Thanks,
Howie
10 years, 7 months
[libvirt-users] Fake Network Interface
by Andrew Martin
Hello,
Is there a supported method for creating a fake network interface in a VM's configuration file? I was using the below construct, however it is no longer working for me in recent versions of libvirt (libvirt 1.0.2 with qemu-kvm 1.4.0). Is there a different, preferred method for creating a fake virtual interface on the guest which does not exist on the host?
<interface type='network'>
<mac address='aa:aa:aa:aa:aa:aa'/>
<source network='fake'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
Thanks,
Andrew
10 years, 7 months
[libvirt-users] --persistent/--config confusion
by Dennis Jacobfeuerborn
Hi,
I'm wondering how to attach a network device properly to a domain.
According to the man page without "--config" a device created with
"attach-device" will be added to the domain yet with "--config" it will
only be added to the config and only be available after a restart of the
guest.
Is there no way to attach the device immediately *and* also make that
change persistent?
Regards,
Dennis
10 years, 7 months
[libvirt-users] Connect libvirt to iSCSI target
by Marco
Hi!
I'm new to libvirt and face problems connecting to an iSCSI target.
What I intend to do is to connect libvirt (I tried virt-manager and
virsh) to an iSCSI target and then boot from the LUNs which contain
the VMs.
I followed the documentation¹ but got stuck at section 12.1.5.4.3.
1)
virsh pool-define-as \
--name foo \
--type iscsi \
--source-host vmhost \
--source-dev iqn.2013-11.vmhost:vmpool \
--target /dev/disk/by-path
2)
virsh pool-start foo
error: Failed to start pool foo
error: internal error: cannot find session
virsh -c qemu:///system pool-start foo
error: Failed to start pool foo
error: internal error: cannot find session
Why can't libvirt find the session, and which session? Running
iscsiadm --mode discovery --type sendtargets --portal vmhost:3260,1
succeeds and lists the targets. How to connect libvirt to the iSCSI
target?
System info:
Debian sid, Linux 3.11-2-amd64
libvirtd (libvirt) 1.1.4
virsh version: 1.1.4
iSCSI target: FreeNAS-9.1.1
Best regards
Marco
¹ https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Lin...
10 years, 8 months
[libvirt-users] fail to live migration is related to virtio-console
by yue
hi,all
this error occured when live migration windows os, log of that vm is:
features 0x1e unsupported allowed features 0x71000002
qemu warning error while loading state for instance 0x0 of device '0000:00:04.4/virtio-console'
do you have some idea about that?
thanks
10 years, 8 months
[libvirt-users] Reg: Methods in DomainJobInfo
by Rathidevi
Hi All,
I am new to libvirt. Please explain about the units (which is bytes or KB or MB) and uses of DomainJobInfo and DomainBlockInfo methods. Like getMemRemaining(), getDataRemaining() etc.
Using libvirt version is libvirt-0.5.1.
Thank you
Regards,
Rathidevi
10 years, 8 months
[libvirt-users] Live migration without block copy
by Paul Mathews
Hello all,
I'm trying to get live migration without block copying working in a custom
solution, but I think I need a better understanding of the migration
process. In my environment, I have two iscsi targets exported which are
then placed into a raid via mdadm on the compute node. I've tried using the
already exposed hook on stop to disassemble and re-export storage, and I
also made my own when the source hits perform3_done phase, but at that
point the md device is still locked. It seems like there should be a time
in a live migration where both instances are in a paused state and
everything has been flushed to disk, I'm just not familiar enough with the
code to determine where that is.
-Paul
10 years, 8 months
[libvirt-users] man page
by Fl@sh
It seems to me that the man page is not complete.
Personally, I had to read the code to understand. Propose to
amend paragraph of included files on:
-i GUEST-PATH=HOST-PATH, --include GUEST-PATH=HOST-PATH
File (HOST-PATH) to copy into custom dir
(GUEST-PATH).
-I HOST-PATH, --includefile=HOST-PATH
Copy all files listed in inputfile into the
appropriate temporary sandbox directories. File should
contain a line like: GUEST-PATH=HOST-PATH
Directory (or subdirectory) of GUEST-PATH path
must to exist in the guest filesystem (use --mount)
Maybe I misunderstood how to use inclusion, but it says even
more about what leadership should be written in detail.
P.S. On the use of the network too.
--
F1ash
10 years, 8 months