[libvirt-users] Sys::Virt
by Evaggelos Balaskas
Can anyone help me:
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Sys::Virt
Writing MYMETA.yml and MYMETA.json
$ make
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" perl-Sys-Virt.spec.PL
perl-Sys-Virt.spec
make: *** [perl-Sys-Virt.spec] Segmentation fault
make: *** Deleting file `perl-Sys-Virt.spec'
Evaggelos Balaskas - Unix System Engineer
http://gr.linkedin.com/in/evaggelosbalaskas
12 years, 10 months
[libvirt-users] Not able to mount iSCSI volume to Guest VM
by Sarath P R
Hi All,
I have created a 10GB logical volume in iSCSCI target machine. I am abe to
mount the volume in my Dom0 . But I am not able to attach the volume to
Guest VM
I tried
"<pool type='iscsi'>"+
"<name>virtvolume</name>"+
"<source>"+
"<host name='192.168.1.1'/>"+
"<device path='"+src+"'/>"+
"</source>"+
"<target>"+
"<path>/dev/disk/by-path</path>"+
"</target>"+
"</pool>"
I Could create a storage pool using the above xml. But how can I attach
that volume to the guest VM. Please Help. Thanks in Advance
--
Thank You
Sarath P R
12 years, 10 months
[libvirt-users] lockmanager for use with clvm
by Michael Menge
Hi,
i am setting up a cluster of kvm hypervisors managed with libvirt.
The storage pool is on iscsi with clvm. To prevent that a vm is
started on more than one hypervisor, I want to use a lockmanager
with libvirt.
I could only find sanlock as lockmanager, but AFSIK sanlock will not
work in my setup as I don't have a shared filesystem. I have dlm running
for clvm. Are there lockmanager implementations that use dlm? Or other
implementations that can be used in my setup?
Regards
Michael Menge
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universität Tübingen Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung mail:
michael.menge(a)zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen
12 years, 10 months
[libvirt-users] Regarding file vs block devices for the guest
by Udayan Bapat
Hi
There is a general consensus in regards to use of a block device (exported
partition) over a file device (.img or .qcow2) image. It is expected to see
a big performance jump in case of a block device. However in my test I have
seen it is not always the case.
My testbed has Fedora-14.0 as the host and Ubuntu-10.0 as guest running on
Intel x86 4 core/8 thread VTX enabled system. I ran file system benchmarks
from the guest using iozone and measure throughput as well as CPU
utilization. I observed that upto device sizes of 8 GB, file device (.img
with ext3 partition) consistently outperformed block device (ext3 partition
exported directly to the guest). Is similar anomaly seen by the community
too? If not, i.e. block device should always outperform file, which layer
should I be looking at to understand what could be happening. Just to make
sure, I repeated same test a bunch of times to eliminate noise.
As I increased the HDD size, then block device performance drastically
improved and consistently performed better than fileIO. In both tests, my
guest had 512 MB RAM with 1 vcpu. I ran all 11 iozone test to do
performance comparisons.
Any pointer/insight would be extremely helpful.
Thank you in advance.
--
Udayan
12 years, 10 months
Re: [libvirt-users] [SeaBIOS] RFE: Print amount of RAM
by Igor Galić
Cross posting from seabios@
[snip]
> > Now I'd like to ask you guys if you could print the amount
> > of RAM available -- like most other BIOSes out there already
> > do - it would be extremely helpful to aid troubleshooting.
>
> SeaBIOS boots too fast for anything useful to be seen on the screen.
> That said, one can add "-chardev stdio,id=seabios -device
> isa-debugcon,iobase=0x402,chardev=seabios" to the qemu command line
> to
> see the SeaBIOS debugging output. That output has the memory info
> and much more.
I guess that's then something to propose for libvirt as RFE
as an extra argument for <bios useserial='yes' /> we could
introduce <bios useserial='debug' /> perhaps.
> -Kevin
Thanks Kevin.
So long,
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic(a)brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
12 years, 10 months
[libvirt-users] libvirt doesn't boot kVM, hangs, qemu on 100% CPU
by Igor Galić
Hi folks,
it's been adventurous.
Yesterday night I've started debugging this particular
issue of why my KVMs don't boot on Ubuntu 11.10.
A first hint was apparmor, which seemed to deny access
to the LVM partitions I had assigned as disks.
After correctly configuring apparmor, or even disabling
it the issue was still the same.
After a wild goose chase, I decided to update everything,
I now have
* libvirt 0.9.8 (built from Ubuntu 12.04 sources)
* qemu 1.0 (built from Ubuntu 12.04 sources)
* SeaBIOS (built from git master: pre-1.6.4-20120221_203841)
I even installed sgabios to see what's going on without
having to connect with virt-manager every time.
So what's going on? What am I trying to do?
I'm trying to boot an Ubuntu amd64 VM, which looks pretty
much the same as the Ubuntu host, except that I uninstalled
libvirt and qemu-kvm, which felt out of place.
This I'm trying to accomplish by booting it with the host's
kernel and initrd (os/kernel and os/initrd).
So much for the starting conditions. You can find my
configuration here: http://sprunge.us/gCVj (I'm attaching
it just in case the pastebin goes stale).
The first thing that is slightly irritating is that it
doesn't validate:
"""
Relax-NG validity error : Extra element kernel in interleave
web.xml:9: element kernel: Relax-NG validity error : Element os failed to validate content
web.xml:8: element type: Relax-NG validity error : Error validating value
web.xml:8: element type: Relax-NG validity error : Element type failed to validate content
web.xml:1: element domain: Relax-NG validity error : Invalid sequence in interleave
web.xml:1: element domain: Relax-NG validity error : Element domain failed to validate content
web.xml fails to validate
"""
Interestingly, even if I remove some of the elements that
`virt-xml-validate` complains about via `virsh edit`, next
time I `edit`, or `dumpxml` it'll be back in place.
With sgabios in place, I can fortunately just c/p to show
you what a boot looks like:
"""
SeaBIOS (version pre-1.6.4-20120221_203841-bacon)
iPXE (http://ipxe.org) 00:03.0 C100 PCI2.10 PnP PMM+001C9B80+00189B80 C100
iPXE (http://ipxe.org) 00:04.0 C200 PCI2.10 PnP PMM 001C9B80 00189B80 C200
Booting from ROM...
"""
And that's it.
And that's wrong. But I can't seem to figure out how and why.
I'll be hugely in debt for your help and welcome any
suggestions, ready to provide as much information as
you need to solve this issue.
So long,
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic(a)brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
12 years, 10 months
[libvirt-users] [libvirt] a question about sanlock
by Alex Jia
Hi Daniel,
I got a question about lock manager, if I enable 'sanlock' in qemu.conf and
uncomment 'auto_disk_leases = 1' in qemu-sanlock.conf then restart libvirtd
service, libvirtd will be dead, I know I should also uncomment 'host_id = 1'
in qemu-sanlock.conf, because I enable 'auto_disk_leases'. The question is
the libvirtd must die due to a error users configuration? or could we give
some warning information instead of libvirtd die?
Thanks & Regards,
Alex
12 years, 10 months
[libvirt-users] libvirt -user'question
by 冰淇淋
hi,:
I am a new user of libvirt ,I asked a question about using libvirt to connect to esxi server. I got the answer is https://www.redhat.com/archives/libvir-list/2012-February/msg00860.html
So,I try to make the change on the mailing list you just added.
- * Add a dummy expect header to stop CURL from waiting for a response code
+ * Add an empty expect header to stop CURL from waiting for a response code
- curl->headers = curl_slist_append(curl->headers, "Expect: nothing");
+ curl->headers = curl_slist_append(curl->headers, "Expect:");
and I did the follow steps in my computer:
1../configure --with-esx
2.make
3.make install
4../autogen.sh --prefix=$HOME/usr
5.make
6.make install
I complete installing the libvirt and run the command :virsh --version ,get the right answer 0.9.7
and I run the command :virsh -c esx://me@exampe.com/?tansport=http
the error before I mentioned related to http did disappeared ,but
and I still get a error like:error: internal error XPath evaluation of response for call to 'RetrieveServiceContent' failed
I don't understand what does this error mean,or is my steps wrong ?so I hope you can help me to figure out the promble. thanks a lot and so sorry for trouble you too much .waiting for you reply on line.
ps: I have another question about libvirt , I saw this :%if %{with_esx}%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 in /libvirt0.9.7/livirt.spec,I want to know if libvirt esx driver only can be useful on fedora>=9||rhel>=6,and the other OS like centos 6.0 or redhat ,will disable the use of esx driver of libvirt.
thanks again.
best regards!
------------------ 原始邮件 ------------------
发件人: "Matthias Bolte"<matthias.bolte(a)googlemail.com>;
发送时间: 2012年2月21日(星期二) 凌晨5:44
收件人: "冰淇淋"<453193368(a)qq.com>;
抄送: "libvirt-users"<libvirt-users(a)redhat.com>;
主题: Re: [libvirt-users] the probelm in using libvirt to connect esx server
2012/2/20 冰淇淋 <453193368(a)qq.com>:
> hi,
> I am a new user of libvirt ,i really appreciate libvirt,and want to use it
> in my work.I want to use it to conncet to a ESXi server.when I try to
> connect to the server ,I use the command :virsh -c
> esx://name@exmaple.com,And I get an
>
> 1.error :error: internal error curl_easy_perform() returned an error:
> Couldn't connect to server (7) : couldn't connect to host
> so I think maybe the firewall shutdown the 443 for https,so I used
> command:virsh -c esx://name@example.com/?transport=http And I still get an
> error like:
> error: internal error HTTP response code 417 for call to
> 'RetrieveServiceContent'
> error: failed to connect to the hypervisor
HTTP error code 417 is related to the Expect header. The error
indicates that the server or a proxy in between doesn't handle the
Expect header. I assume that the ESXi sever itself is not the problem,
because it works for me here. Maybe there is a HTTP proxy between your
computer and the ESXi server that returns this 417 error code.
This problem is probably related to libvirt sending a dummy Expect
header instead of sending no Expect at all.
If you're building libvirt from source you can try this patch that I
just send to the mailing list for review
https://www.redhat.com/archives/libvir-list/2012-February/msg00860.html
It fixes the Expect header problem and might fix your connection problem.
--
Matthias Bolte
http://photron.blogspot.com
</:includetail>
12 years, 10 months
[libvirt-users] the probelm in using libvirt to connect esx server
by 冰淇淋
hi,
I am a new user of libvirt ,i really appreciate libvirt,and want to use it in my work.I want to use it to conncet to a ESXi server.when I try to connect to the server ,I use the command :virsh -c esx://name@exmaple.com,And I get an
1.error :error: internal error curl_easy_perform() returned an error: Couldn't connect to server (7) : couldn't connect to host
so I think maybe the firewall shutdown the 443 for https,so I used command:virsh -c esx://name@example.com/?transport=http And I still get an error like:
error: internal error HTTP response code 417 for call to 'RetrieveServiceContent'
error: failed to connect to the hypervisor
so ,I still can't find the way to connet the server,if you kown how to handle this problem ,i hope you can help me thanks a lot. i will wait for you letter day and night.
Best regards
12 years, 10 months
[libvirt-users] Error deleting a volume
by Bo Bo
Hello group.
This is my first post here so first of all I'd like to greet everybody reading this group.
Secondly, I have a problem with libvirt used from a perl script. I would like to undefine a domain and afterwards delete the volume that had been attached to the domain as a disk. The volume is a qcow2 file and is placed in a 'dir' type pool. I succeed in undefining the domain but trying to delete a volume using $vol->delete() crashes the libvirtd. The script catches an exception:
libvirt error code: 38, message: server closed connection
and the init process echoes an entry to the log:
init: libvirt-bin main process (6999) killed by ABRT signal
When I try to list volumes afterwards using virsh, I see that not only the volume, but also the pool are missing. Moreover the pool that holds a backing storage for the qcow2 file is also missing. It seems that the delete operation actualy succeeds because the file gets deleted from disk as well. Fortunately the backing storage file is still present on the disk although its pool in virsh disappears.
Has anybody come across a similar problem before? Any help is highly appreciated.
Best regards
Bogdan Katynski
12 years, 10 months