From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 16E941381F3 for ; Mon, 3 Dec 2012 16:16:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F097E06E8; Mon, 3 Dec 2012 16:15:48 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 506D2E06E8 for ; Mon, 3 Dec 2012 16:14:21 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id w12so2226272lag.40 for ; Mon, 03 Dec 2012 08:14:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=oCY62DDHKA1xr1UQ8P41PhedDs7AsCKuBfuUYB0DA6w=; b=RFVZ8guPzJOkCZ/w2ElXxipOaKXTJ5JtPWsHPbSGJYOcHXfrlk1MUF7uFakvZvRZf+ jEeGTEx7X7ZT+qIZMe+xqkzCccSRHJ664OSDiiGIyQv7rIC0VYzZmGNHoCAUkqx9reUi L4Dxj/aqgF8t/TUgn9eollezgXendrQ1gfTRaL86OSonRN6OGN1ZGw82WozmPFJgLnty dk6ZqMFJ2uePNdBfKMNy+MjkCYcBnwvesQGaTwNi6Agpv3ScjPS1KJs8W2NtMTjEgUGg TNkAVQ+9X+gxXW/C00IRM64xCB+AYN8voP3zidfcSioH0J/TjDIyk5QBaf8cnFWaigV3 4wNg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.152.123.103 with SMTP id lz7mr9846162lab.21.1354551259815; Mon, 03 Dec 2012 08:14:19 -0800 (PST) Received: by 10.112.163.133 with HTTP; Mon, 3 Dec 2012 08:14:19 -0800 (PST) Received: by 10.112.163.133 with HTTP; Mon, 3 Dec 2012 08:14:19 -0800 (PST) In-Reply-To: References: <50BC62C1.2070801@hadt.biz> Date: Mon, 3 Dec 2012 11:14:19 -0500 Message-ID: Subject: Re: [gentoo-user] libvirt From: Michael Trausch To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=f46d042ef447abdfe504cff50a2f X-Gm-Message-State: ALoCoQkBvogZAxJVPmxFRw+sY0HaGM8CMrOsMKiUiiyxw9S8slDsOV3o+vYE32cR3AUsRuK/YP4W X-Archives-Salt: be5e682d-20f6-4200-a47e-8e6a160737f0 X-Archives-Hash: 7e0d2071ad1558caadfe9c63544fdad2 --f46d042ef447abdfe504cff50a2f Content-Type: text/plain; charset=UTF-8 I would recommend reading the Red Hat Enterprise Linux virtualization docs. They are the best overview of libvirtd and friends. Then use the Web site to read the fine-grained documentation for things like the network, domain and storage XML formats so that you can easily configure those things directly from virsh. On Dec 3, 2012 9:00 AM, "Michael Mol" wrote: > On Mon, Dec 3, 2012 at 3:28 AM, Michael Hampicke > wrote: > > Am 03.12.2012 04:22, schrieb Michael Mol: > >> So, anyone have any experience with libvirt here? I'm familiar with > >> VMWare and Xen. Not so much libvirt, which I understand to be a > >> wrapper around other virt models. > >> > >> Starting from scratch in virsh...how do I ask libvirtd what pool > >> formats it supports? > >> > >> -- > >> :wq > >> > > > > Do you need a virsh command, or is it enough to know libvirt supports? > > In the second case you might look at [1] > > Well, given that I'm on gentoo, USE flags start getting involved in > enabling and disabling functionality. Rather than actively examining > the compile-time factors, I was hoping for a way to simply ask > libvirtd via virsh. Going that route gives me an approach that works > weather I'm on Gentoo, Linux, Debian or whatever. > > > > > You also might take a look at virt-manager (in portage) which is a gui > > for libvirt that manages libvirt on your local machine an remote > > machines (via ssh tunnel for example). > > I've played with virt-manager before. I could use it again, but at > least part of this exercise is to learn libvirt and kvm using a > spartan toolchain. So I'm trying to do everything I can via CLI. (I'm > handy enough with Python that I could use the python API bindings, but > I presumed virsh would be easier, if not simpler.) > > > I am really happy with virt-manager here, it work very well on you don't > > need to remember all the virsh commands (which becomes pretty handy when > > managing storage, virtual networks and creating vms) > > Yeah, I'm hoping to learn all those commands. I want to > proof-of-concept an approach for a high-availability NFS server using > VMs.[2] :) > > > > > > [1] http://libvirt.org/storage.html > > > > [2] http://mmol-6453.livejournal.com/279980.html > > -- > :wq > > --f46d042ef447abdfe504cff50a2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I would recommend reading the Red Hat Enterprise Linux virtu= alization docs. They are the best overview of libvirtd and friends.

Then use the Web site to read the fine-grained documentation= for things like the network, domain and storage XML formats so that you ca= n easily configure those things directly from virsh.

On Dec 3, 2012 9:00 AM, "Michael Mol" = <mikemol@gmail.com> wrote:
On Mon, Dec 3, 2012 at 3:28 AM, Michael Hampicke <gentoo-user@hadt.biz> wrote:
> Am 03.12.2012 04:22, schrieb Michael Mol:
>> So, anyone have any experience with libvirt here? I'm familiar= with
>> VMWare and Xen. Not so much libvirt, which I understand to be a >> wrapper around other virt models.
>>
>> Starting from scratch in virsh...how do I ask libvirtd what pool >> formats it supports?
>>
>> --
>> :wq
>>
>
> Do you need a virsh command, or is it enough to know libvirt supports?=
> In the second case you might look at [1]

Well, given that I'm on gentoo, USE flags start getting involved in
enabling and disabling functionality. Rather than actively examining
the compile-time factors, I was hoping for a way to simply ask
libvirtd via virsh. Going that route gives me an approach that works
weather I'm on Gentoo, Linux, Debian or whatever.

>
> You also might take a look at virt-manager (in portage) which is a gui=
> for libvirt that manages libvirt on your local machine an remote
> machines (via ssh tunnel for example).

I've played with virt-manager before. I could use it again, but at
least part of this exercise is to learn libvirt and kvm using a
spartan toolchain. So I'm trying to do everything I can via CLI. (I'= ;m
handy enough with Python that I could use the python API bindings, but
I presumed virsh would be easier, if not simpler.)

> I am really happy with virt-manager here, it work very well on you don= 't
> need to remember all the virsh commands (which becomes pretty handy wh= en
> managing storage, virtual networks and creating vms)

Yeah, I'm hoping to learn all those commands. I want to
proof-of-concept an approach for a high-availability NFS server using
VMs.[2] :)


>
> [1] http= ://libvirt.org/storage.html
>

[2] http://mmol-6453.livejournal.com/279980.html

--
:wq

--f46d042ef447abdfe504cff50a2f--