[libvirt-users] virsh list not working with xen 4
by Rogério Vinhal Nunes
Hi, I'm having some trouble to get libvirt to show the correct power state
of my virtual machines. I'm using Ubuntu 10.04 + Xen 4.1.1 + libvirt 0.8.8.
virsh list --all only shows turned off machines registered in xend. If I
turn them on, they just "disappear", and when I start machines directly from
xml, they just doesn't appear at all.
Libvirt is correctly connecting to xen as I can use the other commands fine,
just the list option doesn't seem to work at all. What can I do to change
that?
# virsh version
Compiled against library: libvir 0.8.8
Using library: libvir 0.8.8
Using API: Xen 3.0.1
Running hypervisor: Xen 4.1.0
12 years, 1 month
[libvirt-users] converting save/dump output into physical memory image
by Andrew Tappert
A lot of people in the security community, myself included, are
interested in memory forensics these days. Virtualization is a natural
fit with memory forensics because it allows one to get access to a
guest's memory without having to introduce any extra software into the
guest or otherwise interfere with it. Incident responders are
particularly interested in getting memory dumps from systems they're
investigating.
Virsh has "save" and "dump" commands for storing the state of a guest to
a file on disk, but memory of KVM guests doesn't get saved in the
"standard" input format for memory forensics tools, which is a raw
physical memory image. (This is what you'd get via the classical "dd
/dev/mem" approach or the contemporary equivalent using the crash
driver; and VMware Server and Workstation produce .vmem files, which are
such raw physical memory images, when a guest is paused or snapshotted.)
In order to analyze the memory of Libvirt/KVM guests with my Linux
memory forensics software, Second Look, I've created a tool for
converting Libvirt-QEMU-save files (output of virsh save command) or
QEMU-savevm files (output of virsh dump command) to raw physical memory
images.
I've got a basic working capability, though I'm still tracking down some
problems with a guest allocated 8GB RAM--not all the memory seems to be
present in the save or dump file. And I haven't tested very extensively
yet, version support is limited to what I myself am currently running, etc.
I'd like to know if this is a capability that others are interested in.
Is this something that would be of interest to the Libvirt project if I
were to contribute the code, or to the KVM project, or do you think it
best exists as a separate project?
I've also got a proof-of-concept tool for converting hibernate images to
raw physical memory images. Perhaps a collection of tools for
converting various memory dump formats would be a good project. Anyone
else interested in this kind of stuff? As an author of commercial
memory forensics software I've got a vested interest in availability of
good memory acquisition capabilities. But there are a number of people
working on FOSS Linux memory analysis tools, too...
Andrew
12 years, 5 months
Re: [libvirt-users] ruby-libvirt 0.4.0
by Chris Lalancette
On 07/29/11 - 09:34:17AM, David M. Barlieb wrote:
> Hi, I'm fairly new to using libvirt. I have RHEL6 servers running KVM
> virtual environment. As I understand it, libvirt provides the tools to
> the KVM environment so that I can create domains or virtual guests. So,
> that being said, what does this ruby-libvirt provide me or enhance given
> my current setup.
>
>
>
> I'll understabnd if this is a little rudimentary but I really do not
> know who or where else to ask these types of question. I get quite a bit
> of email from the libvirt-users groups about libvirt and really have no
> idea if I can or should put any of these into my current setup, or if I
> should be asking RedHat this.
>
>
>
> I certainly wouldn't mind testing and contributing to these effort to
> enhance the libvirt tools and KVM hypervisor but think I need a better
> understanding of exactly how libvirt and KVM interact and what the
> enhancements bring to the table.
In the future it is usually best to keep one of the lists on an email; that
way, if I'm away or not responding, someone else can help you. I've added
libvirt-users to this response.
In any case, you have the right idea. Libvirt is a control plane for various
different virtualization solutions. Arguably the most popular virtualization
solution that libvirt can control is KVM, but it can also manage Xen, VMware
ESX, LXC (linux containers), UML, etc.
Libvirt provides both tools (like virsh and libvirtd) and APIs for interacting
with virtual machines. The APIs are things like virDomainShutdown(),
virDomainReboot(), etc. The ruby-libvirt package is a thin wrapper around
these APIs, so that you can use this functionality from ruby programs. That
is, you would be able to do something like:
dom.reboot
dom.shutdown
from your ruby programs. There are also bindings for other languages such
as python, php, and perl.
There is a lot more information at http://libvirt.org, and there is more
information specifically about the ruby bindings at http://libvirt.org/ruby
--
Chris Lalancette
12 years, 11 months
[libvirt-users] no connection driver available for openvz:///system
by 张立洪
dears.
I can not solved the problem:
vzctl works. But how do I connect to Virtuozzo? Using the openvz
>> > driver
>> > it doesn't work out of the box:
>> > virsh # connect openvz:///system
>> > error: Failed to connect to the hypervisor
>> > error: no connection driver available for openvz:///system
Why can not I connect to the openvz???
please help me , thanks.
12 years, 12 months
[libvirt-users] Hard limit for the cpu usage of a VM
by sethuraman subbiah
Hi ,
I was previously using xen and currently moved to KVM. I am using libvirt to manage these VMs. In den's credit scheduler , I had the ability to set a cap on the cpu usage for a VM. But I was not able to find a similar substitute in KVM. I find that we can use cgroups to provide shares for VM but that will be more like weight based and it doesn't set a hard cap for that VM. I tried using cpulimit but I find it inaccurate and we can give values only between 0-100. Thus, I think it cannot support multi core environments. Can any one suggest a method to set a hard limit on a VM's cpu usage? Thank you.
-
Regards,
Sethuraman Subbiah
Graduate Student - NC state University
M.S in Computer Science
13 years
[libvirt-users] [ruby-libvirt] who's using it
by Christian Parpart
Hey all,
I would like to know who / what project is using this binding. So I could
learn the API a bit easier than reading through the rough rdoc-based API
documentation, which is not really helpful to me, as I do not know the C
API yet either.
my intention is, to some day, be able to create a Rails web app for
managing libvirt hosts (mainly OpenVZ/vserver/LXC and possibly QEMU).
Thanks in advance,
Christian Parpart.
13 years
[libvirt-users] libvirt-php - API libvirt_domain_suspend() problem, doesn't work
by vmnode guy
Hi Guys,
I was trying to suspend a virtual machine but fail not sure why.... However
i was successfully list all the vm on the host, below are my source code,
can any one who have experience in this area give me some advised ?
*My OUTPUT from browser*
Array
(
[libvirt.release] => 3
[libvirt.minor] => 9
[libvirt.major] => 0
[connector.version] => 0.4.3
[connector.major] => 0
[connector.minor] => 4
[connector.release] => 3
)
Resource id #2Array
(
[0] => VM_6E472D93-F943-2D1E-B1EA-5896D95B9C84
[1] => VM_B090CFCA-77FE-962B-9D06-F85047324527
[2] => VM_7478E5EB-B843-225A-00FC-09D0E846FE61
[3] => winxpnew
[4] => VM_1F9BC5A1-352D-0E7D-8BAB-F46FBFE1C80D
[5] => VM_B6DA1C45-3F0D-16EF-FDF1-512935D88C37
[6] => VM_F32717EE-4AA4-A17C-8E4B-D1D5A79612A5
[7] => VM_03ABB818-D226-32FB-0A6E-458849AB7C7B
[8] => nagios
[9] => VM_6C158DB3-71BE-A0D1-3FFB-1EEE5854E45D
[10] => VM_8D560513-036A-14FD-7546-48C370F0A057
[11] => VM_AA3DC5CA-A447-E6E5-0E7A-869416869B1D
[12] => VM_C19AC7F1-AA49-92D0-336F-B8A8D7FADCD5
)
*Below are my php source : -*
<?php
echo "<html><body><pre>";
print_r ( libvirt_version() );
$conn = libvirt_connect('qemu+ssh://root@10.0.0.122/system', true);
echo $conn;
$doms = libvirt_list_domains($conn);
print_r($doms);
$doms =
libvirt_domain_suspend('VM_7478E5EB-B843-225A-00FC-09D0E846FE61');
print_r($doms);
echo "</pre></body></html>";
?>
Thanks!!
Regards,
Peter
13 years