[libvirt-users] libvirt and linux-vserver
by Christian Parpart
Hi,
I was just googling around for linux-vserver support in libvirt,
however, only found sad ppl complaining about the fact,
that there is still no linux-vserver support in libbirt.
Despite the fact, that there was some kind of lag in review by more
than one person, why isn't it still in? so... merely two years after?
I think once the patched would have been applied, ppl would start
using it, and then also report bugs in case there were some not
yet found by the author nor the single reviewer :)
Best regards,
Christian Parpart.
13 years, 1 month
[libvirt-users] Ruby libvirt gem: state reasons
by Ken Coar
Does anyone know of a way to use the Ruby bindings to find out
the 'reason' value for the state of the VM? Such as obtaining
VIR_DOMAIN_RUNNING_BOOTED for a running domain?
--
#ken B-)}
Ken Coar, Sanagendamgagwedweinini
IT Engineering Tower, Red Hat/RDU
"Millennium hand and shrimp!"
13 years, 1 month
[libvirt-users] Defined VM goes missing in multi-threaded environment.
by Sharad Mishra
In a multi-threaded environment where multiple threads are trying to get
list of all VMs on host, we have seen that at times this list is missing
couple of VMs. The code used is fairly simple, it makes three libvirt
calls.
1. Call virConnectNumOfDefinedDomains() to get number of defined domains.
2. Call virConnectNumOfDomains() to get a list of active domains.
3. If there are defined domains, then call virConnectListDefinedDomains
(conn, (char **)names, n_names), where n_names is the count returned from
#1.
The count returned from #3 is less than the one returned from #1.
I have bumped up the connection count in libvirtd.conf to 100, and using 20
threads. On average I get one missing defined VM every 5 runs of this test.
I have 25 running VMs and 8 defined VMs on this host.
# rpm -aq | grep libvirt
libvirt-python-0.8.7-18.el6_1.1.x86_64
libvirt-0.8.7-18.el6_1.1.x86_64
libvirt-cim-0.5.14-1.el6.x86_64
libvirt-client-0.8.7-18.el6_1.1.x86_64
Its RHEL 6.1 running 2.6.32-131.17.1.el6.x86_64
Regards,
Sharad Mishra
13 years, 1 month
[libvirt-users] [libvirt-user] questions about disk driver virtio and charmonitor
by Chang Liu
hi all,
I have two questions about libvirt.
At first, how can I write a XML file that libvirt could give me a command that include this: if=virtio.
-drive file=/dev/vg.vmms/lvm-v097218.sqa.cm4,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
event I have let the <target dev=vda bus=virtio> the XML file also make the command not include virtio, it's like this:
-drive file=/dev/vg.vmms/lvm-v097226.sqa.cm4,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
and my question is, this is command args could enable virtio? or there is some other XML format could let the if=virtio.
Second when I boot the vm in the second step after use the kickstart install it.
Once in a while, it occurs an error that:
monitor socket did not show up.: No such file or >
Traceback (most recent call last):
File "/home/lingjiao.lc/vmms/backserv/bin/../lib/virtmgr.py<http://lingjiao.lc/vmms/backserv/lib/virtmgr.py>", line 1007, in request_vm
dom.create()
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 325, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: monitor socket did not show up.: No such file or directory
But if I reinstall it, it will be ok. If I install hundreds of VMs once, I think this is a headache.
Could anybody help me, how can I disable the charmonitor or solve these problem.
Thanks.
________________________________
This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。
13 years, 1 month
[libvirt-users] libvirt uninstall @ install problem??
by 张光鹏
Hi:
I have a rhel6.1 system, before I installed libvirt0.9.6.tar.gz, it already have installed libvirt-0.8.7-xxx.rpm.
Can someone tell me how to uninstall the libvirt-0.8.7XXX.rpm ,and then i can install libvirt0.9.6.tar.gz and use it .
Thanks!
zhanggp(a)neusoft.com
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
13 years, 1 month
[libvirt-users] consider bios upgrade...
by jurgen.depicker@let.be
Dear all,
I didn't get any reply, so I send this mail again.
On one of my windows Vms (KVM), I get from time to time a 'windows
recovered from a serious error' message, and if I click the wonderfully
useful (ahum) support link, I reach this page:
http://wer.microsoft.com/responses/Response.aspx/1445/en/5.1.2600.2.00010...
I quote the first part of it here:
"Consider BIOS upgrade
Microsoft is unable to determine the exact cause of this error. However,
this problem was most likely caused by an error in your computer’s random
access memory (RAM). RAM is the main internal storage area the computer
uses to run programs and store data.
During the crash analysis, we noticed the basic input/output system (BIOS)
version on this computer does not match the specifications for the central
processing unit (CPU), also known as a processor, that is installed on
your computer. This can occur when a newer processor is installed on an
older system board or older BIOS. Using a BIOS that does not support the
installed processor can result in Windows system crashes. Contact your
computer manufacturer or motherboard manufacturer for an updated version
of BIOS for your computer's processor."
Now I'm not sure what this is all about: how can I possibly upgrade my
VM's BIOS, or should I do something else? Can it have something to do
with the processor specs in the VM's XML definition?
Thanks for looking into this,
Jürgen
13 years, 1 month
[libvirt-users] Checking if the VM has been created
by Preethi Ramesh
I'm a Libvirt newbie and I'd really appreciate it if someone could answer
my doubts. I'm using Libvirt's Java API.
My doubts:
1.Currently, I'm able to create a VM on Ubuntu 11.04 using Libvirt
functions domainCreateLinux() and domainDefineXML(). Apart fromt the
boolean return status of these operations and running the virsh list
command, is there any way to SSH in (login) to the newly created VMs and
run applications on them? I tried running virsh console but nothing comes
up. Also I tried fixing the XML file to accommodate the console operation(
link <http://ubuntuforums.org/showthread.php?t=1159220>) but that was
unsuccessful too.
2. If yes, how can I get the IP of the VM created?
3. Is there any function to create image files(in any format qcow or qcow2)
using Libvirt API? Right now, I'm using a shell script which creates the
image from it's iso.
Thanks in advance
P Ramesh
13 years, 1 month
[libvirt-users] Speaking of DNSmasq ....
by William A. Mahaffey III
.... I am getting a bit tired of those pesky DNSmasq entries in my
syslog file, they fill it up about weekly, wash other stuff out of view
on a tail. Is there any way to suppress them. or else increase their
lease time so that they happen less frequently ? Having a finite lease
time for a VM seems nonsensical, it can't go anywhere or disconnect
(obviously) .... I tried restarting DNSmasq, but it said 'Socket busy'
or some such & didn't restart. Someone on another list said that DNSmasq
was/is in fact started by libvirt/KVM/QEMU, & I poked around in the
various /etc/sysconfig files, but couldn't find anything related to
DNSmasq, whatever options it is started with seem to be hardwired or
compiled into one of the pertinent executables .... FC 14, 64 bit,
terminally patched up, libvirt 0.8.3-10.fc14 64-bit, qemu-KVM
2:0.13.0-1.fc14 64-bit .... TIA ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
13 years, 1 month
[libvirt-users] virsh Attach-disk function
by Jatin Kumar
Hello,
I have to use attach-disk function for providing additional storage to the
guest domain
but i couldn't found proper documentation anywhere which i can follow.
----
For linux (Ubuntu 11.10 server edition, 64bit) guest i tried
qemu-img create -f qcow2 disk.qcow2 size
virsh attach-disk guest_name --driver file disk.qcow2 sdc
Both of the above commands are working fine but when i try to format the
drive from
inside linux then its size reduces to few KB. Before formatting qemu-img
info reports
correct info(as expected, correct virtual size) but after formatting the
even qemu-img
info reports its actual size(few KB) not virtual size.
-----
For windows (Windows 2008 Server R2) guest, i tried
qemu-img create -f raw disk.img size
virsh attach-disk guest_name --driver file disk.img vdb
virsh shows that the disk is attached successfully, but i cannot find any
disk attached
from inside the guest (in storage management). I tried rebooting the guest
but same
problem.
Is there anything that i am doing wrong or missing.
--
Jatin Kumar
13 years, 1 month
[libvirt-users] listDomains() not working on Xen
by PREETHI RAMESH
Hey all,
I've been trying to make listDomains() work on Xen but it simply returns an
array of null values. Also, while displaying the length of the array
returned by listDomains(). Upon using the same function in KVM, I'm able to
retrieve the complete array of active machines. I'm positive that active
Xen machines are running(cross checked it with xm list).
I've been posting this for quite sometime now but haven't received any
reply which could debug my code. I'd really appreciate it if someone could
help me.
Thanks,
P Ramesh
13 years, 1 month