[libvirt-users] about sharing the hugepage memory segment between the host and the container
by WANG Cheng D
Dear all,
What I want to do is to share a hugepage memory segment between the host and a container (I am trying to use intel DPDK package in container). For a normal memory (4k page), the memory sharing can be achieved by memory-mapped I/O (mmap())method with the same disk file on the host exposed to the container (that is, the host and the container share the same disk file).
my questions are:
1) Do I need to mount the hugetlbfs in host and container respectively?
2) According to my understanding, the exposed file that will be shared by the host and container must locate at the hugetlbfs mount point. Is this right?
3) According to my understanding, the mount point in the host doesn't necessarily to be the same as that of the container, as long as the mount point is exposed to the container, Is this right?
4) If I want to share the hugepage memory segment betwen two containers, what's the answers for 1) ?
5) According to my internet research, if use open() to open a file under the hugepage mount point, the mmap() will automatically return a pointer to the hugepage memory segment. Is this right? Apart from this, I cannot see other difference from memory-mapped I/O with the 4k page memory.
Any answer will be highly appreciated.
Cheng Wang
10 years, 6 months
[libvirt-users] Libvirt with virtualbox
by Dr. Boris Neubert
Hi,
has anyone of you successfully used libvirt with VirtualBox? I ask because
I haven't managed to connect to my machines and would like to benefit from
your experience.
Cheers
Boris
10 years, 6 months
[libvirt-users] Vulnerability in gnuTLS
by Boehme, Alfred
Hello,
There is a vulnerability described in the gnuTLS library which is used in libvirt:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3466
We are using libvirt 0.8.7 on Windows so my question is:
Is there already a windows version with a newer gnuTLS library which has a fix for the mentioned vulnerability?
---
Sent from my Fujitsu Lifebook E782
With best regards
Alfred Boehme
Senior Developer
PSO PM&D SV E SW 4
[cid:image001.gif@01CF8617.647717D0]
FUJITSU
Mies-van-der-Rohe-Str. 8, 80807 Munich, Germany
Tel: +49 (89) 62060 2990
Mob: +49 (171) 62060 329 2990
E-mail: Alfred.Boehme(a)ts.fujitsu.com<mailto:Alfred.Boehme@ts.fujitsu.com>
Web: ts.fujitsu.com<http://ts.fujitsu.com/>
Company details: Fujitsu Technology Solutions GmbH / ts.fujitsu.com/imprint<http://ts.fujitsu.com/imprint.html>
This communication contains information that is confidential, proprietary in nature and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender and delete the original communication. Thank you for your cooperation.
Please be advised that neither Fujitsu, its affiliates, its employees or agents accept liability for any errors, omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments, or which may otherwise arise as a result of this e-mail transmission.
10 years, 6 months
Re: [libvirt-users] a small problem about *Disk* type pool
by shyu
CC to libvirt-users mail list
Thank you Eric
----- Original Message -----
| From: "Eric Blake" <eblake(a)redhat.com>
| To: "shyu" <shyu(a)redhat.com>
| Sent: Thursday, June 12, 2014 6:07:13 AM
| Subject: Re: a small problem about *Disk* type pool
|
| On 06/10/2014 09:23 PM, shyu wrote:
| > Hi Eric,
| >
| > There is a small problem about *Disk* type pool.
|
| This sort of question might be better on the libvirt-users mailing list,
| as it will reach a wider audience.
|
| >
| > On libvirt.org, the valid pool format type include "lvm2", which was
| > introduce by commit c47884a. While "POOL_DISK_LVM2 can not be created by
| > "parted mklabel" but is only returned from auto-detection on disk
| > pools", should this word be added to the org in case of misleading
| > building a "lvm2" type pool?
|
| Yes, it might make sense to document that libvirt can't currently create
| lvm partitions automatically (but such support might be added in the
| future, if parted is enhanced, or if libvirt is taught to use lvm tools
| to do it).
|
| >
| > And, since lvm2 can't be create by parted mklabel, while when build disk
| > type pool, libvirt call "parted", so how POOL_DISK_LVM2 was created ?
|
| This particular enum value is used when reading a disk that was
| partitioned externally by some other tool, and already had an lvm
| partition on it (just because libvirt can't create it does not make it
| any less useful for libvirt to report that it exists).
|
| --
| Eric Blake eblake redhat com +1-919-301-3266
| Libvirt virtualization library http://libvirt.org
|
|
--
Regards
shyu
10 years, 6 months
[libvirt-users] support for distributed portgroups in esxi
by vivek hari
Hi,
I tried to create a VM in ESXi 5.5 and to assign the interface to a
Distributed switch portgroup. But i failed to achieve it.
When i define a VM with distributed portgroup , i cannot see that
distributed portgroup getting assigned to the VM network interface.
My libvirt version is 0.10.2
I wish to know whether the libvirt supports assigning interface to a
distributed port group ?
If so how to proceed with it.
Thanks,
Vivek
10 years, 6 months
[libvirt-users] TCP connection works for only remote host
by usha basavaraju
tcp connection working only for remote host . for localhost raising the
following error
>>> con=libvirt.open("qemu+tcp:///system")
libvirt: XML-RPC error : unable to connect to server at 'localhost:16509':
Connection refused
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/fluent/cvt/convirt-enterprise/tg2env/local/lib/python2.7/site-packages/libvirt.py",
line 239, in open
if ret is None:raise libvirtError('virConnectOpen() failed')
libvirt.libvirtError: unable to connect to server at 'localhost:16509':
Connection refused
>>>
Is there any other params to be set for local host connection..? please help
10 years, 6 months
[libvirt-users] Cannot obtain CPU freq during vbox machine creation
by Tomasz Kowal
Dear libvirt experts,
I can not instantiate even a simple machine when using the 'vbox' hypervisor:
s14% virt-install --connect=vbox:///session --virt-type vbox --name vtest --memory 500
ERROR cannot obtain CPU freq: No such file or directory
s14% virsh -c vbox:///session
błąd: cannot obtain CPU freq: No such file or directory
(1)
How to fix this error? The VirtualBox driver seems to be installed:
s14% virsh -V
Narzędzie wiersza poleceń virsh biblioteki libvirt 1.2.5
Proszę zobaczyć stronę WWW pod adresem http://libvirt.org/
Compiled with support for:
Hypervisors: QEMU/KVM UML VMWare PHYP VirtualBox ESX Test
Networking: Remote Bridging
Storage: Dir SCSI
Miscellaneous: Daemon Secrets Debug Readline Modular
s14% uname -a
FreeBSD s14 9.3-PRERELEASE FreeBSD 9.3-PRERELEASE #0: Fri May 16 06:45:56 CEST 2 014
.
Yours faithfully,
Tomasz Kowal
10 years, 6 months
[libvirt-users] Libvirt Python Bindings - Remote Connection using openAuth.
by Sijo Jose
Hi,
I am using libvirt with python binding, and I want to connect to a remote
host.
I was able to connect after making ssh certificate, but It is not
applicable for my project.
So I want to use openAuth() method, but I could not succeed connecting to a
remote host using it.
Here is my code
------------------------
import libvirt
USER = "root"
PASS = "mypasswd"
def authcb(credentials, user_data):
for credential in credentials:
if credential[0] == libvirt.VIR_CRED_AUTHNAME:
credential[4] = USER
elif credential[0] == libvirt.VIR_CRED_PASSPHRASE:
credential[4] = PASS
return 0
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], authcb, None]
conn = libvirt.openAuth("qemu+ssh://192.168.1.21/system", auth, 0)
print conn.getHostname()
-------------------------------
*If there is something wrong, how am I supposed to use it.*
If its not the right place to get libvirt-python related help, from
where can I get it.
Regards
Sijo
10 years, 6 months