[libvirt-users] method for communication between containers
by WANG Cheng D
Dear all,
In my system, two containers need to exchange data as quick as possible and the two containers are hosted by the same physical machine, I wonder if socket is the only method for communication between containers?
Thank you.
Cheng Wang
10 years, 7 months
[libvirt-users] Question regarding ssh and lxc
by Schulz, Arno
I'm trying to narrow down the source of a bug where a docker container sshd closes the connection after a successful authentication (https://bugzilla.redhat.com/show_bug.cgi?id=1085081) - filed with libvirt as there's no docker-io component for RHEL 6.5 in bugzilla.
One of the steps I'm taking is to reproduce a similar setup using LXC but while it seemed to have worked I'm not sure I've properly reproduced the setup I would have with docker.
I've based myself on the RHEL 7b Linux Container Guide
1. Created a HelloWorld containe based on the sample config file
<domain type='lxc'>
<name>test-container</name>
<memory>102400</memory>
<os>
<type>exe</type>
<init>/bin/sh</init>
</os>
<devices>
<console type='pty'/>
</devices>
</domain>
2. Defined, started and connected to it using virsh
3. Obtained the ip and started sshd
4. And when I logged in via sshd I got the bash from the host
Any assistance would be appreciated.
Arno
--------------------
Confidentiality Statement - The contents of this e-mail, including its attachment, are intended for the exclusive use of the recipient and may contain confidential or privileged information. If you are not the intended recipient, you are strictly prohibited from reading, using, disclosing, copying, or distributing this e-mail or any of its contents. If you received this e-mail in error, please notify the sender by reply e-mail immediately or the Privacy Office (privacy(a)ottawahospital.on.ca ) and permanently delete this e-mail and its attachments, along with any copies thereof. Thank you.
Avis de confidentialit� � Ce courriel, y compris ses pi�ces jointes, s�adresse au destinataire uniquement et pourrait contenir des renseignements confidentiels. Si vous n��tes pas le bon destinataire, il est strictement interdit de lire, d�utiliser, de divulguer, de copier ou de diffuser ce courriel ou son contenu, en partie ou en entier. Si vous avez re�u ce courriel par erreur, veuillez en informer imm�diatement l�exp�diteur ou le bureau de la Protection des renseignements personnels (info.privee(a)hopitalottawa.on.ca), puis effacez le courriel ainsi que les pi�ces jointes et toute autre copie. Merci.
--------------------
10 years, 7 months
[libvirt-users] Not able to start a VM - Xen and libvirt
by Aravindhan Dhanasekaran
Hello,
I've installed Xen 4.3.1 on a machine with x86 based 64-bit Intel processor
running Fedora 20 (Linux 3.11) and libvirt 1.0.1.
I'm not able to start a VM. It's failing with the below mentioned error. What am
I doing wrong? If this is documented somewhere, a pointer to that would be great.
I did a "generic" search, but in vain, before posting to this list and I
couldn't find an easier way to search through the mailman archives of this
mailing list.
Thanks for your time.
Aravind
Error starting domain: internal error: libxenlight failed to create new domain 'vm1'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1355, in startup
self._backend.create()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: libxenlight failed to create new domain 'vm1'
10 years, 7 months
[libvirt-users] Issue with 1.2.3 and lxcCheckNetNsSupport
by Thierry Parmentelat
Hi there
I’ve just moved to libvirt-1.2.3 from 1.2.1; we use it for dealing with lxc containers
I just wanted to report that everything went well for us with this new release, except for one little glitch
At some point the lxc drivers seems to check that the kernel indeed has the netns feature built in
Well in our environment this checks miserably fails; I haven’t been able to tell exactly why, but could find this post that might be related
Bug 1050210 – lxcCheckNetNsSupport fails to detect NETNS
As a quick workaround I have this patch below in place, with which everything else seems to be working fine; at least all our system tests are passing..
It feels like the way the 1.2.3 code checks for the presence of netns is clearly not exactly right (in our case selinux is disabled), and I wish a more reliable solution can be found in the future :)
Hope this helps — Thanks in any case
10 years, 7 months
[libvirt-users] need help on libvirt and virt manager
by Muhammad Yousuf Khan
Hello every one. i have been running Libvirt for few weeks on testing and
will be migrating from Proxmox to libvirt very soon however there is a
problem with command line learning. Virsh and virt-install is a complete
set of commands. but i want to learn in depth some more command line option.
so my question is; can i learn what "Virt-manager" GuI is running on the
back end. so that i can learn how it add,edit,delete some advance level of
configuration via GUI.
i mean like we have "history" command which show what have we run in past
so can i also have the details what Virt-manager has run remotely
Thanks,
MYK
10 years, 7 months
[libvirt-users] set keep alive
by Fl@sh
Can anyone explain what is happening.
After call
virConnectOpen
virEventRegisterDefaultImpl()
call virConnectSetKeepAlive returns
VirtError(1): internal error: the caller doesn't
support keepalive protocol; perhaps it's missing
event loop implementation,
but the next call this sequence of commands returns success.
Why virConnectSetKeepAlive not work right the first time?
--
Fl@sh
10 years, 7 months
[libvirt-users] libvirt live migrate problem
by lyz_pro
Hi
The problem is after I successful live migrate a domain, the domain os become read-only.
and when I use qemu-img to show the disk info at node which domain current running ,
the command return 'Permission denied'.
BUT, I can use qemu-img show the disk info at the previous node.
My Env:
two node, all install libvirt + kvm . use glusterfs as shared storage.
the libvirt/kvm version:
libvirt-0.10.2-29.el6_5.5.x86_64
qemu-kvm-0.12.1.2-2.415.el6_5.6.x86_64
qemu-img-0.12.1.2-2.415.el6_5.6.x86_64
glusterfs-3.4.1-3.el6.x86_64
--------------
lyz_pro
2014-04-02
10 years, 7 months
[libvirt-users] ebtables rules are not applied when using libvirt nwfilter
by Thinh Nguyen
Dear all,
I configure my kvm vm like this:
<interface type='bridge'>
<mac address='52:54:00:dd:b2:c5'/>
<source bridge='nw-vpc-1017'/>
<target dev='if-57'/>
<model type='virtio'/>
<filterref filter='clean-traffic'>
<parameter name='IP' value='10.0.0.1'/>
</filterref>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</interface>
But when i start it and show the ebtables rules, nothing is applied
[root@kvmhost ~]# ebtables -L
Bridge table: filter
Bridge chain: INPUT, entries: 0, policy: ACCEPT
Bridge chain: FORWARD, entries: 0, policy: ACCEPT
Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
Bridge chain: libvirt_qemu_FORWARD, entries: 0, policy: DROP
Please show me what wrong i've done.
Thanks so much!
--
Nguyen Thinh
10 years, 7 months
[libvirt-users] Advice request for building a centralized vm disk provider server
by Pasquale Dir
Hello again, sorry for mailing in so short time but I have another question
about live migration.
>From redhat documentation I see that the storage for a VM which has to be
migrated has to be shared throught some mechanism and I have chosen iscsi.
Anyway I now would need a way to dinamically create a new virtual machine
and so a virtual hard disk, note that this vm will have to be migrated too.
I though about this solution: I would share an HUGE iscsi target, this
target is a logical hard drive containing many disk images which would be
the VM's hard drives. I can easily clone a vm by making a simple file copy
of a vm disk.
This would allow me to create a VM by specifying a path like <iscsi target
path>/disk1.img.
I have two problems:
1)how to get an unique <iscsi target path>? On my phisical host it is
mounted as a random uuid in the /media folder.
2)will migration work with a <file> instead of a <device> as hard disk
field?
If you have any better solution, even involing the change from iscsi to
another technology, you are free to propose it to me.
Sorry for bothering,
Pasquale
10 years, 7 months
[libvirt-users] Async migration: possible?
by Pasquale Dir
I am seeing that migrate() function is blocking, isn't there a non blocking
function with a callback associated to it, so to report events like end
migration, migration progress (job domain info informations) and so on?
Pasquale
10 years, 7 months