[libvirt-users] xl extra parameters equivalent for libvirt
by Emma Anderson
hi,
I use xl toolstack to manage vms on a Xen machine, and also pass some custom parameters when creating a vm, for example:
xl create vm.cfg ' param="xyz" '
I am moving to libvirt for vm management. How I can pass those extra parameters using libvirt?
Thanks.
9 years, 6 months
[libvirt-users] Pivot without copy
by Mathew Moon
Hi,
Is it possible to "pivot" to a new image without doing blockcopy or
blockpull? I know how to use snapshots and blockpull to create a new image
and pivot to using it live, but what I would like to do is to have a VM
switch from using imageA.qcow2 to image2.qcow2 while running. I don't see
why this wouldn't be possible since some of the existing libvirt tools can
do this when they are done. I would love to see an example from a bash
terminal as well as how it would be done using the python API.
Regards,
Mathew
9 years, 6 months
[libvirt-users] Hardware requirements for SPICEd desktops
by Lucio Crusca
Hello,
I posted the following to the kvm list yesterday, but now I suspect this
is a more appropriate place to ask...
I'm considering to build a new server and to use SPICE protocol to
deploy all the Windows guests to the local network.
It's my understanding that:
1. I should create the guests on the server
2. I should use remote-viewer on a minimal desktop linux on the clients
over SPICE protocol
3. I should enable QXL on the server
4. I can get clients USB ports and soundcards working in the guests
Now, assuming I've understood the above correctly, I haven't understood
what are the hardware requirements server and client side:
1. Let's say I assign 4GB of RAM to each guest and that the network has
20 running guests at any given time, should the server have at least
80GB (20 by 4) of RAM or can I "oversell" a bit and bet on the fact that
only few guests will actually use 4GB?
2. What's a reasonable amount of RAM to have installed client-side, for
4GB-RAM guests?
3. Should the clients have a CPU that supports VT-x?
4. Is it possible to have QXL supported on the clients regardless of the
physical video adapter installed?
5. And what about the soundcard support? Will any linux-supported
soundcard do on the clients?
9 years, 6 months
[libvirt-users] Live Migration failure: An error occurred, but the cause is unknown
by RockCui@zhaoxin.com
Hi everyone,
I’m testing the new Openstack Kilo on Ubuntu-15.04 and hypervisor is KVM.
I can creat instance successfully , but live migration is always failed. Error report like this (from nova-compute.log on a compute node):
2015-05-12 18:11:12.753 3641 INFO nova.virt.libvirt.driver [-] [instance: cee4965c-b298-4b5b-8669-bee9ac72c720] Migration running for 0 secs, memory 0% remaining; (bytes processed=0, remaining=0, total=0)
2015-05-12 18:11:16.342 3641 ERROR nova.virt.libvirt.driver [-] [instance: cee4965c-b298-4b5b-8669-bee9ac72c720] Live Migration failure: An error occurred, but the cause is unknown
2015-05-12 18:11:16.777 3641 ERROR nova.virt.libvirt.driver [-] [instance: cee4965c-b298-4b5b-8669-bee9ac72c720] Migration operation has aborted
If someone has a clue what may cause this, pls help.
Thanks.
Rock Cui
本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。
如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢!
The information transmitted in this e-mail is intended only for the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. If you received this e-mail in error, please notify the sender immediately, and delete this e-mail and any attachments. Thank you.
9 years, 6 months
[libvirt-users] vnetX interface name persistence
by Lucas Brasilino
Hi!
I'm aware that (host side) vnetX are created when VM boots. But I'm trying to
figure out a way ti create a persistence in vnetX names. What I mean is,
say, I want to associate VMs vm0 to vnet0, vm1 to vnet1, vm2 to vnet2 and
so forth, no matter which order the VMs are booted. I looked around network
XML format, but did't find something...
Since I'm using Open vSwitch as bridge, and it is controlled by my OpenFlow
application, I can query for OF ports numbers based on port names
(interfaces names).
OVSDB can be used for such query, but the controller I'm
using, Pox, has a limited support to it (stills in development).
I'm using libvirt 1.0.5 and Qemu/KVM 1.4.2 on a Fedora 19 host.
Thanks a lot in advance.
--
Att
Lucas Brasilino
MSc Student @ Federal University of Pernambuco (UFPE) / Brazil
twitter: @lucas_brasilino
9 years, 6 months
[libvirt-users] Failed dependencies with perl-Sys-Virt
by xuanmao_001
Hi, erveryone:
I compiled libvirt-1.1.2.tar.gz from source.
my compile step:
./configure --prefix=/usr --libdir=/usr/lib64 --without-xen --without-xen-inotify \
--without-uml --without-openvz --without-vmware --without-vbox --without-lxc \
--without-esx --without-parallels --without-phyp -- without-test --with-yajl \
--without-selinux --without-secdriver-selinux
make && make install
#ls -l /usr/lib64/libvirt*
-rw-r--r-- 1 root root 10144610 2月 6 15:34 /usr/lib64/libvirt.a
-rwxr-xr-x 1 root root 1018 5月 8 19:51 /usr/lib64/libvirt.la
-rwxr-xr-x 1 root root 1064 5月 8 19:51 /usr/lib64/libvirt-lxc.la
lrwxrwxrwx 1 root root 23 5月 8 19:51 /usr/lib64/libvirt-lxc.so -> libvirt-lxc.so.0.1001.2
lrwxrwxrwx 1 root root 23 5月 8 19:51 /usr/lib64/libvirt-lxc.so.0 -> libvirt-lxc.so.0.1001.2
-rwxr-xr-x 1 root root 75419 5月 8 19:51 /usr/lib64/libvirt-lxc.so.0.1001.2
-rw-r--r-- 1 root root 78856 2月 6 15:34 /usr/lib64/libvirt-qemu.a
-rwxr-xr-x 1 root root 1070 5月 8 19:51 /usr/lib64/libvirt-qemu.la
lrwxrwxrwx 1 root root 24 5月 8 20:31 /usr/lib64/libvirt-qemu.so -> libvirt-qemu.so.0.1001.2
lrwxrwxrwx 1 root root 24 5月 8 20:31 /usr/lib64/libvirt-qemu.so.0 -> libvirt-qemu.so.0.1001.2
-rwxr-xr-x 1 root root 74097 5月 8 19:51 /usr/lib64/libvirt-qemu.so.0.1001.2
lrwxrwxrwx 1 root root 19 5月 8 20:31 /usr/lib64/libvirt.so -> libvirt.so.0.1001.2
lrwxrwxrwx 1 root root 19 5月 8 20:31 /usr/lib64/libvirt.so.0 -> libvirt.so.0.1001.2
-rwxr-xr-x 1 root root 8100016 5月 8 19:51 /usr/lib64/libvirt.so.0.1001.2
everyone seems ok, but when I install perl-Sys-Virt-0.10.2-5.el6.x86_64.rpm with rpm -ivh,
it occured error message:
error: Failed dependencies:
libvirt.so.0()(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.0.3)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.0.5)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.1.0)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.1.1)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.1.4)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.1.5)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.1.9)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.10.0)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
libvirt.so.0(LIBVIRT_0.10.2)(64bit) is needed by perl-Sys-Virt-0.10.2-5.el6.x86_64
...
I checked with the follow command.
[root@CH08134252 ~]# nm -A -D /usr/lib64/libvirt.so.0 | grep LIBVIRT
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.0.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.0.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.1.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.1.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.1.4
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.1.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.1.9
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.10.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.10.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.2.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.2.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.2.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.3.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.3.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.3.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.4.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.4.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.4.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.4.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.5.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.6.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.6.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.6.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.6.4
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.7.7
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.6
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.8.8
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.10
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.11
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.13
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.4
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.7
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.8
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_0.9.9
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.2
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.3
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.5
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.0.6
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.1.0
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_1.1.1
/usr/lib64/libvirt.so.0:0000000000000000 A LIBVIRT_PRIVATE_1.1.2
I have no idea, please give me some help. thanks.
xuanmao_001
9 years, 6 months
[libvirt-users] Live Migration failure: this function is not supported by the connection driver: virDomainMigrateToURI2
by RockCui@zhaoxin.com
Hi everyone,
I’m testing the new openstack kilo on ubuntu15.04 and hypervisor is xen4.5.
I can creat instance successfully , but live migration is always failed. Error report like this:
2015-05-07 10:47:22.135 1331 ERROR nova.virt.libvirt.driver [-] [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] Live Migration failure: this function is not supported by the connection driver: virDomainMigrateToURI2
2015-05-07 10:47:22.246 1331 WARNING nova.virt.libvirt.driver [-] [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] Error monitoring migration: this function is not supported by the connection driver: virDomainGetJobInfo
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] Traceback (most recent call last):
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 5689, in _live_migration
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] dom, finish_event)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 5521, in _live_migration_monitor
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] info = host.DomainJobInfo.for_domain(dom)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/host.py", line 164, in for_domain
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] return cls._get_job_stats_compat(dom)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/host.py", line 113, in _get_job_stats_compat
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] info = dom.jobInfo()
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in doit
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] result = proxy_call(self._autowrap, f, *args, **kwargs)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] rv = execute(f, *args, **kwargs)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] six.reraise(c, e, tb)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] rv = meth(*args, **kwargs)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1241, in jobInfo
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] if ret is None: raise libvirtError ('virDomainGetJobInfo() failed', dom=self)
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c] libvirtError: this function is not supported by the connection driver: virDomainGetJobInfo
2015-05-07 10:47:22.246 1331 TRACE nova.virt.libvirt.driver [instance: b1081b86-fdce-4fcc-82c4-51896de4418c]
If someone has a clue what may cause this, pls help.
Thanks.
本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。
如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢!
The information transmitted in this e-mail is intended only for the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. If you received this e-mail in error, please notify the sender immediately, and delete this e-mail and any attachments. Thank you.
9 years, 6 months