[libvirt-users] Problem starting VM
by junkmail
I am having a problem starting a VM and seem to be unable to determine
what the problem is. I get the following lines in my log files.
Feb 26 06:32:31 yours dbus[14359]: [system] Activating service
name='org.freedesktop.machine1' (using servicehelper)
2014-02-26 06:32:31.914+0000: 14451: error : virDBusCallMethod:1205 :
Launch helper exited with unknown return code 1
Feb 26 06:32:31 yours dbus[14359]: [system] Activated service
'org.freedesktop.machine1' failed: Launch helper exited with unknown
return code 1
This is running on Gentoo using dbus 1.6.18 Libvirt 1.2.1 qemu 1.5.3
Kernel 3.10.7
Let me know what else I can provide.
Thanks
10 years, 9 months
[libvirt-users] VirtFS accessmode
by Lanati, Matteo
Hi all,
I'm trying to share a folder between a host and a guest using VirtFS.
The source is NAS mounted on the host and QEMU runs as unprivileged user.
The only way for me to use the folder inside the guest is to set the access mode to 'squash' but all file operations are performed by the user running QEMU.
If I ran QEMU as root, the passthrough mode works as expected.
Is there the possibility to configure the passthrough access also for non-root users?
Thanks,
Matteo
Matteo Lanati
Distributed Resources Group
Leibniz-Rechenzentrum (LRZ)
Boltzmannstrasse 1
85748 Garching b. München (Germany)
Phone: +49 89 35831 8724
10 years, 9 months
[libvirt-users] VM Creation Timestamp
by Tony Atkinson
Hello,
Is there any way to query libvirt, ideally through virsh CLI utility or
similar, to get a timestamp of when a VM was created.
Or to put it another way, a timestamp of when a domain's UUID was allocated.
Many thanks,
--
Tony Atkinson
10 years, 9 months
[libvirt-users] libvirt lxc /dev/null
by Nerijus Baliunas
Hello,
I created lxc container on F19 with virt-manager and it starts OK. The only
problem is that sshd does not run complaining "/dev/null is not a character
device".
# ls -l /dev/null
-rw-r--r-- 1 root root 0 2014-02-25 22:39 /dev/null
/sys/fs/cgroup/devices/machine/VM_NAME.libvirt-lxc/devices.list has "c 1:3
rwm" line, but I cannot create /dev/null:
# mknod /dev/nulll c 1 3
mknod: `/dev/nulll': Operation not permitted
Thanks,
Nerijus
10 years, 9 months
[libvirt-users] Problems with tls connection when ran with user privileges
by Pasquale Dir
I set up my certificates, ca client and server, as described in your
documentation: http://wiki.libvirt.org/page/TLSCreateServerCerts.
I followed it step by step so it must be ok.
However, when I run
virsh -c qemu://192.168.1.2/system and I try a command like
list --all
I get:
error: impossible connect to the hypervisor
errore: no valid connection
errore: Unable to set x509 CA certificate: /etc/pki/CA/cacert.pem: Error
while reading file.
If I run the same command with root privileges:
virsh -c qemu://192.168.1.2/system
everything works, anyway I get this warning too:
2014-02-26 13:03:25.035+0000: 10825: info : libvirt version: 1.1.1
2014-02-26 13:03:25.035+0000: 10825: warning :
virNetTLSContextCheckCertKeyPurpose:364 : Certificate
/etc/pki/libvirt/clientcert.pem purpose does not allow use for with a TLS
client
I don't know if it is a problem, I need to live migrate machines...
Anyway, main problem is that I don't want to run virsh with root privileges.
Where the problem is?
10 years, 9 months
[libvirt-users] libvirt iSCSI target discovery
by Sijo Jose
Hi,
Is it possible to discover iSCSI targets using libvirt API..?
OR
is it possible to get the similar results of below commands using
libvirtAPI..?
iscsiadm --mode discovery --type sendtargets --portal server1.example.com
sudo iscsiadm -m discovery -t st -p 192.168.0.10
Regards
Sijo
10 years, 9 months
[libvirt-users] assigning a single IP to the guest with "typical" hosting provider
by Tomasz Chmielewski
I have a server with a hosting company, Hetzner.
The servers at this hosting company have a public IP, let's say,
A.B.C.D/255.255.255.x.
Additionally, one can order extra IPs like below:
1) additional subnet (let's say X.Y.Z.0 / 28)
2) single IP (let's say, E.F.G.H)
With additional subnet, assigning the IP to libvirt guest is simple:
- assign X.Y.Z.1 on the host
- assign X.Y.Z.2 to the guest, with X.Y.Z.1 gateway - done, works fine.
However, I'm having problems assigning a single IP to the guest (when
there is no extra subnet on the host, but just an extra IP):
- if I assign E.F.G.H/255.255.255.255 to the host, the IP is reachable
from the internet
- if I assign E.F.G.H to the guest (with a proper gateway), the guest is
not able to communicate with the internet.
Which networking mode should I use in this setup? Bridge, macvtap? I've
tried both, without success (i.e. in macvtap mode, arp who-has are
passed from the guest to the gateway, replies received on the host, but
they are not passed to the guest).
Has anyone ever set libvirt with a "typical" hosting provider, when
only an extra IP, from a non-host subnet, is available for a guest?
--
Tomasz Chmielewski
http://wpkg.org
10 years, 9 months
[libvirt-users] Rhel7 snap6 -- SR-IOV
by Murali Krishna
Hi,
This is regarding SRIOV in Rhel7. I have added intel_iommu=on in grub.cfg file. When I attach Virtual Function to VM and I try to poweron the VM, I get the below error:
[root@Dell-Rhel7 ~]# virsh start rhel64x64GA
error: Failed to start domain rhel64x64GA
error: internal error: early end of file from monitor: possible problem:
qemu-kvm: -device vfio-pci,host=42:10.2,id=hostdev0,bus=pci.0,addr=0x8: vfio: failed to open /dev/vfio/vfio: Permission denied
qemu-kvm: -device vfio-pci,host=42:10.2,id=hostdev0,bus=pci.0,addr=0x8: vfio: failed to setup container for group 47
qemu-kvm: -device vfio-pci,host=42:10.2,id=hostdev0,bus=pci.0,addr=0x8: vfio: failed to get group 47
qemu-kvm: -device vfio-pci,host=42:10.2,id=hostdev0,bus=pci.0,addr=0x8: Device initialization failed.
qemu-kvm: -device vfio-pci,host=42:10.2,id=hostdev0,bus=pci.0,addr=0x8: Device 'vfio-pci' could not be initialized
We are facing this problem with both Emulex and Intel adapters. Please help me to resolve this issue.
Thanks,
Murali.
10 years, 9 months
Re: [libvirt-users] event-test.py cannot detects domain shutdown
by Kim Larry
2014년 2월 11일 오후 10:00에 Eric Blake <eblake(a)redhat.com> 작성:
On 02/11/2014 12:20 AM, Kim Larry wrote:
libvirtd version is 1.1.4 and using Xen for hypervisor.
I'm not as familiar with the xen hypervisor as with qemu; it may just be
the case that no one has coded the xen driver to send a shutdown event.
At any rate, I can confirm that with the qemu driver, shutdown events
are delivered.
It is a bit weird that all except shutdown event are coded...
If it is true, do I have to just wait?
https://rwmj.wordpress.com/2010/11/08/want-help-dont-email-me-directly/
Or you could look into the source code and provide a patch; but
discussing this on the list is a better way to get a reaction from
someone familiar with the xen code.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Ah, I forgot to add libvirt-users in Cc... sorry.
The thing I found today is that if libvirt uses xend driver, shutdown events are delivered, but if libvirt uses libxl drvier, doesn't show up anything. It seems there are bugs on shutdown event, so I did dig into the libvirt source briefly, but I couldn't find where libxl driver calls event callback.
Any help will be greatly appreciated. Especially someone who is familiar with xen code.
10 years, 9 months
[libvirt-users] Problems with qemu-system-arm and isa-serial
by Niccolo Rigacci
Hi,
I'm trying to use libvirt for an armel virtual machine hosted
into an x86_64 box.
I know the command line to start qemu-system-arm directly, but I
cannot figure a proper .xml configuration file to let libvirt do
this job.
The main problem is that I want a serial console attached via
telnet, this is the Qemu incantation:
-serial telnet::4000,server,nowait,nodelay
Wahtever I do in libvirt, I get this paramter added:
-device isa-serial
which causes Qemu to fail:
qemu-system-arm -M versatileab -device isa-serial \
-kernel vmlinuz-2.6.32-5-versatile
qemu-system-arm: -device isa-serial: No 'ISA' bus found for device 'isa-serial'
How can I instead have -device pl011, or just have the default
devices provided by qemu-system-arm, i.e. to prevent libvirt from
adding the -nodefaults switch?
Thank you!
--
Niccolo Rigacci - http://www.rigacci.net/
Campi Bisenzio - Firenze - Italy
Tel. Office: +39-055-9331021, Mobile: +39-327-5619352
10 years, 9 months