1 |
On Mon, Dec 3, 2012 at 10:19 AM, Michael Hampicke <gentoo-user@××××.biz> wrote: |
2 |
>>> Do you need a virsh command, or is it enough to know libvirt supports? |
3 |
>>> In the second case you might look at [1] |
4 |
>> |
5 |
>> Well, given that I'm on gentoo, USE flags start getting involved in |
6 |
>> enabling and disabling functionality. Rather than actively examining |
7 |
>> the compile-time factors, I was hoping for a way to simply ask |
8 |
>> libvirtd via virsh. Going that route gives me an approach that works |
9 |
>> weather I'm on Gentoo, Linux, Debian or whatever. |
10 |
>> |
11 |
> |
12 |
> Good point. Virsh should at least tell you what storage pool support has |
13 |
> been enabled while compiling. That would still leave you with another |
14 |
> problem: Even if iSCSI or LVM support has been enabled, it doesn't mean |
15 |
> you can actually use it on that host (maybe no kernel support, not |
16 |
> configured, maybe no disk in node, ...) |
17 |
> |
18 |
> In virsh there's a find-storage-pool-sources command, sadly there's |
19 |
> almost no documentation. On my testing machine it is at least able to |
20 |
> discover the LVM. |
21 |
> |
22 |
> virsh # find-storage-pool-sources logical |
23 |
> <sources> |
24 |
> <source> |
25 |
> <device path='/dev/sdb6'/> |
26 |
> <name>kvm1</name> |
27 |
> <format type='lvm2'/> |
28 |
> </source> |
29 |
> </sources> |
30 |
|
31 |
After digging through the docs a little more, I'm almost certainly |
32 |
going with 'directory'. Later, it'll be NFS. I'm surprised it didn't |
33 |
offer you either of those options...but I guess it was looking for |
34 |
fully-configured things. |
35 |
|
36 |
> |
37 |
>>> You also might take a look at virt-manager (in portage) which is a gui |
38 |
>>> for libvirt that manages libvirt on your local machine an remote |
39 |
>>> machines (via ssh tunnel for example). |
40 |
>> |
41 |
>> I've played with virt-manager before. I could use it again, but at |
42 |
>> least part of this exercise is to learn libvirt and kvm using a |
43 |
>> spartan toolchain. So I'm trying to do everything I can via CLI. (I'm |
44 |
>> handy enough with Python that I could use the python API bindings, but |
45 |
>> I presumed virsh would be easier, if not simpler.) |
46 |
> |
47 |
> Yeah, I was a hardcore kvm user once too :) No libvirt installed, just |
48 |
> pure kvm, did everything on cli, creating images, setting up the virtual |
49 |
> network, starting kvm vms by hand with a big-ass argument list, ... I |
50 |
> guess I just got lazy :) |
51 |
|
52 |
Actually more familiar with Xen. I'm going with kvm on this one |
53 |
bevause virtualbox on a debian system doesn't give me the flexibility |
54 |
for network topology that I'm looking for...so I want to go with Linux |
55 |
as a hypervisor and do the topology magic there. |
56 |
|
57 |
Anyway, I'm of the opinion that once you understand what you're doing, |
58 |
being lazy is the best thing you can be. But you have to understand |
59 |
what you're doing in order to know when to be lazy. ^^ |
60 |
|
61 |
> |
62 |
>>> I am really happy with virt-manager here, it work very well on you don't |
63 |
>>> need to remember all the virsh commands (which becomes pretty handy when |
64 |
>>> managing storage, virtual networks and creating vms) |
65 |
>> |
66 |
>> Yeah, I'm hoping to learn all those commands. I want to |
67 |
>> proof-of-concept an approach for a high-availability NFS server using |
68 |
>> VMs.[2] :) |
69 |
> |
70 |
> Sounds interesting, I'll bookmark that. |
71 |
|
72 |
Yeah, it's going to be fun. :) |
73 |
|
74 |
|
75 |
|
76 |
-- |
77 |
:wq |