[libvirt-users] Facing some error when restarting the libvirtd.
by cool dharma06
hi,
i installed libvirt-1.2.1 from the source with xen-4.3.1 and i am facing
the following error when restarting the libvirt.
Installation steps:
./autogen.sh --system --with-xen=yes --with-libxl=yes
make
make install
and in the libvirtd.conf i enabled the following things
auth_unix_ro
auth_unix_rw
unix_sock_group
unix_sock_ro_perms
unix_sock_rw_perms
unix_sock_dir
and libvirt logs
when running the following commands i got error message in libvirtd.log
tools/libvirtd -f /etc/libvirt/libvirtd.conf -d
Error message:
2014-03-28 12:44:59.480+0000: 20024: info : libvirt version: 1.2.2
2014-03-28 12:44:59.480+0000: 20024: error : virIdentityGetSystem:173 :
Unable to lookup SELinux process context: Invalid argument
2014-03-28 12:44:59.557+0000: 20024: error : libxlDriverConfigNew:1123 :
Unable to configure libxl's memory management parameters
2014-03-28 12:44:59.557+0000: 20024: error : virStateInitialize:749 :
Initialization of LIBXL state driver failed: Unable to lookup SELinux
process context: Invalid argument
2014-03-28 12:44:59.557+0000: 20024: error : daemonRunStateInit:920 :
Driver state initialization failed
Any suggestion to solve this one.
regards,
cooldharma06..:)
10 years, 8 months
[libvirt-users] TUN/TAP device for lxc guest
by 邓尧
I want to run a VPN software inside an lxc guest, but the required TUN/TAP
device (/dev/net/tun) is missing in the container. Anyone knows how to
enable this device ? Here is the definition XML:
<domain type="lxc">
<name>centos</name>
<memory unit="MiB">1024</memory>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<devices>
<console type="pty"/>
<filesystem type="mount">
<source dir="/virsh/centos"/>
<target dir="/"/>
</filesystem>
<interface type="bridge">
<source bridge="br0"/>
<model type="virtio"/>
</interface>
</devices>
</domain>
Thanks
Yao
10 years, 8 months
[libvirt-users] Libvirt libssh2 authentication
by David Dias
Hi,
I am working on a java application using libvirt java API (version 0.4.7)
and i would like to authenticate through ssh within my application (no need
for the user to type his password). How can i submit SSH authentication
credentials to libvirt?
I am trying to get it working using libssh2 callback, but i get the error:
"SSH transport error: no suitable method to retrieve authentication
credentials" before anything happens. I have the same error running "virsh
-c qemu+libssh2://username@host/system list" command.
What is the right way to get the ssh connection working from the java code?
regards,
David
10 years, 8 months
[libvirt-users] Attach / detach problem for passthrough/SR-IOV in libvirt
by Mohsen Ghaemi
Hi all
I just encountered a problem in libvirt while was trying to attach and
detach a sr-iov vf to my VM
The version of my libvirt is 1.1.1-0ubuntu8.5
I tried to attach the device using following xml
<interface type='hostdev' managed='yes'>
<mac address='5c:01:fd:12:34:58'/>
<source>
<address type='pci' domain='0x0000' bus='0x04' slot='0x01'
function='0x1'/>
</source>
</interface>
When i attached device it worked properly and i managed to ping another
host.
virsh # attach-device t5 1.xml
Device attached successfully
But when i detached it still i had network traffic in my VM but
libvirt (virsh) said that
virsh # detach-device t5 1.xml
Device detached successfully
The next time i tried to attach it libvirt said that
virsh # attach-device t5 1.xml
error: Failed to attach device from 1.xml
error: Requested operation is not valid: PCI device 0000:04:01.1 is in
use by domain t5
I tried it with different VMs and different guest OSs that the same
happend.
The same action was done with another host running libvirt version
Installed: 1.0.2-0ubuntu11.13.04.5~cloud1
Candidate: 1.0.2-0ubuntu11.13.04.5~cloud1
and it worked pretty OK. No problem.
Do you have any idea what is wrong?
More information:
Kernel : 3.8.0-37-generic
/etc/libvirt/qemu.conf : security_driver = "none”
root@compute01:~# ethtool -i eth5
driver: bnx2x
version: 1.78.58
firmware-version: bc 7.4.22 phy 1.34
bus-info: 0000:04:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
10 years, 8 months
[libvirt-users] libvirt-users@redhat.com
by Mohsen Ghaemi
Hi all
I just encountered a problem in libvirt while was trying to attach and
detach a sr-iov vf to my VM
The version of my libvirt is 1.1.1-0ubuntu8.5
I tried to attach the device using following xml
<interface type='hostdev' managed='yes'>
<mac address='5c:01:fd:12:34:58'/>
<source>
<address type='pci' domain='0x0000' bus='0x04' slot='0x01'
function='0x1'/>
</source>
</interface>
When i attached device it worked properly and i managed to ping another
host.
virsh # attach-device t5 1.xml
Device attached successfully
But when i detached it still i had network traffic in my VM but
libvirt (virsh) said that
virsh # detach-device t5 1.xml
Device detached successfully
The next time i tried to attach it libvirt said that
virsh # attach-device t5 1.xml
error: Failed to attach device from 1.xml
error: Requested operation is not valid: PCI device 0000:04:01.1 is in
use by domain t5
I tried it with different VMs and different guest OSs that the same
happend.
The same action was done with another host running libvirt version
Installed: 1.0.2-0ubuntu11.13.04.5~cloud1
Candidate: 1.0.2-0ubuntu11.13.04.5~cloud1
and it worked pretty OK. No problem.
Do you have any idea what is wrong?
More information:
Kernel : 3.8.0-37-generic
/etc/libvirt/qemu.conf : security_driver = "none”
root@compute01:~# ethtool -i eth5
driver: bnx2x
version: 1.78.58
firmware-version: bc 7.4.22 phy 1.34
bus-info: 0000:04:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
10 years, 8 months
[libvirt-users] Sending command to virtual machine
by lukass.vacek@seznam.cz
Hello,
I would like to know if there is a way how to execute a command inside of
running virDomainPtr. For example call exec command but not on my computer,
but on running virtual machine. If there is a way, what needs to be done for
it?
Thanks for answer!
10 years, 8 months
[libvirt-users] Recreating nwfilter rules without a restart
by Brian Rak
Let's say I have some iptables rules defined to restrict guest traffic.
If I restart the hosts firewall 'service iptables restart', all the
guest-specific rules get blown away.
Is there a way to reapply all the guest firewall rules, without
restarting each individual guest?
It looks like if I edit a nwfilter with `virsh nwfilter-edit` it goes
and reapplies the rules to all the guests, so this functionality seems
to be present already.
10 years, 8 months
[libvirt-users] Starting processes inside VMs using Libvirt?
by Taimur Al Said
Hi there,
I am a beginner with Libvirt. I was practicing using Python bindings with
libvirt to do some basic stuff like starting a VM, rebooting a VM,
displaying the number of domain,etc. I was wondering since the hypervisor
has control over the VMs, it is possible to use Libvirt to inject code into
the VM? Is it possible to start processes inside a particular VM using the
Libvirt API. If not, what would you recommend instead? Thanks in advance
Regards,
T.alsaid
10 years, 8 months
[libvirt-users] Clock problems on live migration
by Paul Boven
Hi everyone,
While doing a live migration, Linux guests will frequently get stuck and
become unresponsive, while the CPU utilization on the host for that
guest goes to 100%. Sometimes they recover, and dmesg then shows that
there's been a clock problem during the live migration:
Clocksource tsc unstable (delta = 35882846234 ns)
So the TSC did a jump of nearly 36 seconds.
Migrations often fail when going from server A to B, but will then work
fine in the other direction.
Both servers are locked to the same NTP source, and are well within 1ms
from one another.
Both hosts are running Ubuntu 13.04 with these versions (from Ubuntu
packages):
Kernel: 3.8.0-35-generic x86_64
Libvirt: 1.0.2
Qemu: 1.4.0
Gluster-fs: 3.4.2 (libvirt access the images via the filesystem, not
using libgfapi yet).
The interconnect between both machines (both for migration and gluster)
is 10GbE.
We have different guests (all Ubuntu releases, 13.04 and 13.10), and
they all seem to be affected.
Clocksource: kvm-clock on all guests.
Clock entry from the guest XML: <clock offset='utc'/>
Now as far as I've read in the documentation of kvm-clock, it
specifically supports live migrations, so I'm a bit surprised at these
problems. There isn't all that much information to find on these issue,
although I have found postings by others that seem to have run into the
same issues, but without a solution.
Any help would be much appreciated.
Regards, Paul Boven.
--
Paul Boven <boven(a)jive.nl> +31 (0)521-596547
Unix/Linux/Networking specialist
Joint Institute for VLBI in Europe - www.jive.nl
VLBI - It's a fringe science
10 years, 8 months