Skip to contentSkip to conversation

KVM call minutes for Oct 19

DISCUSSION Chris Wright 8 participants 28 messages Oct 19, 2010 – Oct 23, 2010 KVM

lore
Share & tools
lore
#0 lore raw

0.13.X -stable
- Anthony will send note to qemu-devel on this
- move 0.13.X -stable to a separate tree
- driven independently of main qemu tree
- challenge is always in the porting and testing of backported fixes
- looking for volunteers

0.14
- would like to do this before end of the year
- 0.13 forked off a while back (~July),
- 0.14 features
- QMP stabilized
- 0.13.0 -> 0.14 QMP
- hard attempt not to break compatibility
- new commands, rework, async, human monitor passthrough
- goal getting to libvirt not needing human monitor at all
- QMP KVM autotest test suite submitted
- in-kernel apic, tpr patching still outstanding
- QED coroutine concurrency

Live snapshots
- merge snapshot?
- already supported, question about mgmt of snapshot chain
- integrate with fsfreeze (and windows alternative)

Guest Agent
- have one coming RSN (poke Anthony for details)
- works over legacy or virtio serial
- simple RPC mechanism between host/guest
- allows host initiated reboot, for example
- can be place to do host driven snahpshot too
- Matahari?
- can deal w/ block/net/UUID/cluster/etc
- too heavyweight?
- be sure to coordinate

threadlets and concurrency model (for virtfs)
- prior discussions
- 1st model: http://www.mail-archive.com/[email protected]/msg43838.html
- 2nd model: http://www.mail-archive.com/[email protected]/msg43921.html
- threadlets: http://www.mail-archive.com/[email protected]/msg43842.html
- please review and continue discussion on the list
- concurrency model questions
- async state machine is easiest to merge right now
- future work could push it to cooperative coroutines

usb-ccid (aka external device modules such as vtpm)
- isolating device specific interface from qemu device internals is hard
- usb-ccid description...(go read the patches)
- technical complexity with external emulation
- version skew
- live migration
- same complextiy as full plug-in

#1 lore raw
Quoted 7 lines · Chris Wright

0.13.X -stable
- Anthony will send note to qemu-devel on this
- move 0.13.X -stable to a separate tree
- driven independently of main qemu tree
- challenge is always in the porting and testing of backported fixes
- looking for volunteers

Quoted 12 lines

0.14
- would like to do this before end of the year
- 0.13 forked off a while back (~July),
- 0.14 features
- QMP stabilized
- 0.13.0 -> 0.14 QMP
- hard attempt not to break compatibility
- new commands, rework, async, human monitor passthrough
- goal getting to libvirt not needing human monitor at all
- QMP KVM autotest test suite submitted
- in-kernel apic, tpr patching still outstanding
- QED coroutine concurrency

Would it be realistic to declare deprecating the qemu-kvm fork for 0.14 as goal?

Quoted 7 lines

Live snapshots
- merge snapshot?
- already supported, question about mgmt of snapshot chain
- integrate with fsfreeze (and windows alternative)

Guest Agent
- have one coming RSN (poke Anthony for details)

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

Alex

maintainer
#2 lore raw
Quoted 2 lines · Alexander Graf

Would it be realistic to declare deprecating the qemu-kvm fork for 0.14 as goal?

I recall some performance problems with the qemu.git iothread, I'm not sure all of those have been fixed.

Paolo

#3 lore raw
Quoted 5 lines · Paolo Bonzini
Quoted 2 lines · Alexander Graf

Would it be realistic to declare deprecating the qemu-kvm fork for 0.14 as goal?

I recall some performance problems with the qemu.git iothread, I'm not sure all of those have been fixed.

Yes, hence "declare as goal". Deprecating doesn't mean to declare it void, but to actually work towards eliminating all the shortcomings. Another thing coming to mind there is that the default -accel should be moved to kvm,tcg instead of only tcg as it stands today.

Alex

#4 lore raw
In reply to Alexander Graf
Quoted 22 lines · Alexander Graf
Quoted 7 lines · Chris Wright

0.13.X -stable
- Anthony will send note to qemu-devel on this
- move 0.13.X -stable to a separate tree
- driven independently of main qemu tree
- challenge is always in the porting and testing of backported fixes
- looking for volunteers

Quoted 12 lines

0.14
- would like to do this before end of the year
- 0.13 forked off a while back (~July),
- 0.14 features
- QMP stabilized
- 0.13.0 -> 0.14 QMP
- hard attempt not to break compatibility
- new commands, rework, async, human monitor passthrough
- goal getting to libvirt not needing human monitor at all
- QMP KVM autotest test suite submitted
- in-kernel apic, tpr patching still outstanding
- QED coroutine concurrency

Quoted 1 line

Would it be realistic to declare deprecating the qemu-kvm fork for 0.14 as goal?

For general use perhaps, device assignment might need another cycle.

Signature · 1 line
error compiling committee.c: too many arguments to function
#5 lore raw
In reply to Alexander Graf
Quoted 30 lines · Alexander Graf
Quoted 7 lines · Chris Wright

0.13.X -stable
- Anthony will send note to qemu-devel on this
- move 0.13.X -stable to a separate tree
- driven independently of main qemu tree
- challenge is always in the porting and testing of backported fixes
- looking for volunteers

Quoted 12 lines

0.14
- would like to do this before end of the year
- 0.13 forked off a while back (~July),
- 0.14 features
- QMP stabilized
- 0.13.0 -> 0.14 QMP
- hard attempt not to break compatibility
- new commands, rework, async, human monitor passthrough
- goal getting to libvirt not needing human monitor at all
- QMP KVM autotest test suite submitted
- in-kernel apic, tpr patching still outstanding
- QED coroutine concurrency

Would it be realistic to declare deprecating the qemu-kvm fork for 0.14 as goal?

Quoted 5 lines

Live snapshots
- merge snapshot?
- already supported, question about mgmt of snapshot chain
- integrate with fsfreeze (and windows alternative)

Quoted 4 lines
Quoted 2 lines

Guest Agent
- have one coming RSN (poke Anthony for details)

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

More important than the number of instances is the usage of common framework. Here is the link to the Matahari project:
https://fedorahosted.org/matahari/wiki/API

Quoted 5 lines

Alex

#6 lore raw
Quoted 6 lines · Dor Laor
Quoted 5 lines · Alexander Graf
Quoted 2 lines · Chris Wright

Guest Agent
- have one coming RSN (poke Anthony for details)

Quoted 7 lines
Quoted 3 lines

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

More important than the number of instances is the usage of common framework. Here is the link to the Matahari project:
https://fedorahosted.org/matahari/wiki/API

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

Also happy to provide more information on Matahari if anyone is interested.

-- Andrew

#7 lore raw
Quoted 11 lines · Andrew Beekhof
Quoted 10 lines · Dor Laor
Quoted 8 lines · Alexander Graf
Quoted 2 lines · Chris Wright

Guest Agent
- have one coming RSN (poke Anthony for details)

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

Quoted 7 lines
Quoted 3 lines

More important than the number of instances is the usage of common framework. Here is the link to the Matahari project:
https://fedorahosted.org/matahari/wiki/API

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

http://repo.or.cz/w/qemu/mdroth.git/tree

He said that they'll publish the info in a week.

Quoted 2 lines

Also happy to provide more information on Matahari if anyone is interested.

Go ahead and supply it on upstream kvm-devel / qemu-devel list

Quoted 2 lines

-- Andrew

#8 lore raw
In reply to Andrew Beekhof

Hi Andrew,

Quoted 3 lines · Andrew Beekhof

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

Mike should be posting today or tomorrow.

Quoted 1 line

Also happy to provide more information on Matahari if anyone is interested.

I'd really like to hear more about Matahari's long term vision.

For a QEMU guest agent, we need something that is very portable. The interfaces it provides need to be reasonably guest agnostic and we need to support a wide range of guests including Windows, Linux, *BSD, etc.

From the little bit I've read about Matahari, it seems to be pretty specific and pretty oriented towards Fedora-like distributions. It exposes interfaces for manipulation of RPM packages, relies on netcf, etc.

There's nothing wrong with this if the goal of Matahari is to provide a robust agent for Fedora-based Linux distributions but I don't think it meets the requirements of a QEMU guest agent.

I don't think we can overly optimize for one Linux distribution either so a mentality of letting other platforms contribute their own support probably won't work.

Regards,

Anthony Liguori

Quoted 5 lines

-- Andrew

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw
Quoted 15 lines · Anthony Liguori

Hi Andrew,

Quoted 4 lines · Andrew Beekhof

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

Mike should be posting today or tomorrow.

Quoted 2 lines

Also happy to provide more information on Matahari if anyone is interested.

I'd really like to hear more about Matahari's long term vision.

Quoted 7 lines

For a QEMU guest agent, we need something that is very portable. The interfaces it provides need to be reasonably guest agnostic and we need to support a wide range of guests including Windows, Linux, *BSD, etc.

From the little bit I've read about Matahari, it seems to be pretty specific and pretty oriented towards Fedora-like distributions. It exposes interfaces for manipulation of RPM packages, relies on netcf, etc.

FYI netcf is not Fedora specific. There is a Win32 backend for it too. It does need porting to other Linux distros, but that's simply an internal implementation issue. The goal of netcf is to be the libvirt of network config mgmt - a portable API for all OS network config tasks. Further, Matahari itself is also being ported to Win32 and can be ported to other Linux distros too.

Quoted 7 lines

There's nothing wrong with this if the goal of Matahari is to provide a robust agent for Fedora-based Linux distributions but I don't think it meets the requirements of a QEMU guest agent.

I don't think we can overly optimize for one Linux distribution either so a mentality of letting other platforms contribute their own support probably won't work.

That is not the goal of Matahari. It is intended to be generically applicable to *all* guest OS. Obviously in areas where every distro does different things, then it will need porting for each different impl. You have to start somewhere and it started with Fedora. This is all is true of any guest agent solution.

Regards,
Daniel

Signature · 4 lines
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
#10 lore raw
Quoted 26 lines · Daniel P. Berrange
Quoted 16 lines · Anthony Liguori

Hi Andrew,

Quoted 4 lines · Andrew Beekhof

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

Mike should be posting today or tomorrow.

Quoted 3 lines

Also happy to provide more information on Matahari if anyone is interested.

I'd really like to hear more about Matahari's long term vision.

Quoted 8 lines

For a QEMU guest agent, we need something that is very portable. The interfaces it provides need to be reasonably guest agnostic and we need to support a wide range of guests including Windows, Linux, *BSD, etc.

From the little bit I've read about Matahari, it seems to be pretty
specific and pretty oriented towards Fedora-like distributions. It exposes interfaces for manipulation of RPM packages, relies on netcf, etc.

Quoted 7 lines

FYI netcf is not Fedora specific. There is a Win32 backend for it too. It does need porting to other Linux distros, but that's simply an internal implementation issue. The goal of netcf is to be the libvirt of network config mgmt - a portable API for all OS network config tasks. Further, Matahari itself is also being ported to Win32 and can be ported to other Linux distros too.

Yeah, I'm aware of the goals of netcf but that hasn't materialized a port to other distros.

Let me be clear, I don't think this is a problem for libvirt, NetworkManager, or even Matahari.

But for a QEMU guest agent where we terminate the APIs within QEMU itself, I do think it creates a pretty nasty portability barrier.

Quoted 8 lines
Quoted 8 lines

There's nothing wrong with this if the goal of Matahari is to provide a robust agent for Fedora-based Linux distributions but I don't think it meets the requirements of a QEMU guest agent.

I don't think we can overly optimize for one Linux distribution either so a mentality of letting other platforms contribute their own support probably won't work.

Quoted 6 lines

That is not the goal of Matahari. It is intended to be generically applicable to *all* guest OS. Obviously in areas where every distro does different things, then it will need porting for each different impl. You have to start somewhere and it started with Fedora. This is all is true of any guest agent solution.

There's two approaches that could be taken for a guest agent. You could provide very low level interfaces (read a file, execute a command, read a registry key). This makes for a very portable guest agent at the cost of complexity in interacting with the agent. The agent doesn't ever really need to change much the client (QEMU) needs to handle many different types of guests, and add new functionality based on the supported primitives.

Another approach is to put the complexity in the agent and simplify the management interface. For system's management applications, this is probably the right approach. For virtualization, I think this is a bad approach.

Very specifically, netcf only really needs to read and write configuration files and potentially run a command. Instead of linking against netcf in the guest, we should link against netcf in QEMU so that we don't have to constantly change the guest agent.

Regards,

Anthony Liguori

Quoted 3 lines

Regards,
Daniel

#11 lore raw
Quoted 12 lines · Anthony Liguori
Quoted 11 lines · Daniel P. Berrange
Quoted 10 lines · Anthony Liguori

Hi Andrew,

Quoted 3 lines · Andrew Beekhof

Hello from the Matahari tech-lead...
Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts.

Mike should be posting today or tomorrow.

Quoted 2 lines

Also happy to provide more information on Matahari if anyone is interested.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I'd really like to hear more about Matahari's long term vision.

For a QEMU guest agent, we need something that is very portable. The interfaces it provides need to be reasonably guest agnostic and we need to support a wide range of guests including Windows, Linux, *BSD, etc.

From the little bit I've read about Matahari, it seems to be pretty specific and pretty oriented towards Fedora-like distributions.

In that case we've done a bad job of the wiki.
Windows and other distributions are a key part of the Matahari vision.

Matahari is two things
- an architecture, and
- an implementation of the most common API sets

Each set of APIs (ie. host, network, services) is an independent daemon/agent which attaches to a common QMF broker (more on that later).

While some of these might be platform specific, packaging would be one likely candidate, the intention is to be agnostic distro/platform wherever possible.

Take netcf for example, instead of re-inventing the wheel we wrote the windows port for netcf.

So what's this about QMF you ask?
Again, rather than invent our own message protocol we're leveraging an existing standard that supports windows and linux, is fast, reliable and secure.

Its also pluggable and discoverable - so simply starting a new agent that connects to the matahari broker makes it's API available. Any QMF client/console can also interrogate the guest to see what agents and API calls are available.

Even better there's going to be a virtio-serial transport. So we can access the same agents in the same way with or without host-to-guest networking. This was a key requirement for us because of EC2-like cloud scenarios where we don't have access to the physical host.

Thats probably enough for the moment, I'd better go make dinner :-)

Quoted 59 lines
Quoted 9 lines
Quoted 3 lines

It
exposes interfaces for manipulation of RPM packages, relies on netcf, etc.

FYI netcf is not Fedora specific. There is a Win32 backend for it too. It does need porting to other Linux distros, but that's simply an internal implementation issue. The goal of netcf is to be the libvirt of network config mgmt - a portable API for all OS network config tasks. Further, Matahari itself is also being ported to Win32 and can be ported to other Linux distros too.

Yeah, I'm aware of the goals of netcf but that hasn't materialized a port to other distros.

Let me be clear, I don't think this is a problem for libvirt, NetworkManager, or even Matahari.

But for a QEMU guest agent where we terminate the APIs within QEMU itself, I do think it creates a pretty nasty portability barrier.

Quoted 4 lines
Quoted 4 lines

There's nothing wrong with this if the goal of Matahari is to provide a robust agent for Fedora-based Linux distributions but I don't think it meets the requirements of a QEMU guest agent.

Quoted 8 lines
Quoted 3 lines

I don't think we can overly optimize for one Linux distribution either so a mentality of letting other platforms contribute their own support probably won't work.

That is not the goal of Matahari. It is intended to be generically applicable to *all* guest OS. Obviously in areas where every distro does different things, then it will need porting for each different impl. You have to start somewhere and it started with Fedora. This is all is true of any guest agent solution.

There's two approaches that could be taken for a guest agent. You could provide very low level interfaces (read a file, execute a command, read a registry key). This makes for a very portable guest agent at the cost of complexity in interacting with the agent. The agent doesn't ever really need to change much the client (QEMU) needs to handle many different types of guests, and add new functionality based on the supported primitives.

Another approach is to put the complexity in the agent and simplify the management interface. For system's management applications, this is probably the right approach. For virtualization, I think this is a bad approach.

Very specifically, netcf only really needs to read and write configuration files and potentially run a command. Instead of linking against netcf in the guest, we should link against netcf in QEMU so that we don't have to constantly change the guest agent.

Regards,

Anthony Liguori

Quoted 2 lines

Regards,
Daniel

#12 lore raw

Hi Andrew,

Quoted 14 lines · Andrew Beekhof

In that case we've done a bad job of the wiki.
Windows and other distributions are a key part of the Matahari vision.

Matahari is two things
- an architecture, and
- an implementation of the most common API sets

Each set of APIs (ie. host, network, services) is an independent daemon/agent which attaches to a common QMF broker (more on that later).

While some of these might be platform specific, packaging would be one likely candidate, the intention is to be agnostic distro/platform wherever possible.

Take netcf for example, instead of re-inventing the wheel we wrote the windows port for netcf.

Quoted 6 lines

So what's this about QMF you ask?
Again, rather than invent our own message protocol we're leveraging an existing standard that supports windows and linux, is fast, reliable and secure.

Its also pluggable and discoverable - so simply starting a new agent that connects to the matahari broker makes it's API available. Any QMF client/console can also interrogate the guest to see what agents and API calls are available.

Even better there's going to be a virtio-serial transport. So we can access the same agents in the same way with or without host-to-guest networking. This was a key requirement for us because of EC2-like cloud scenarios where we don't have access to the physical host.

I did get this much and I think I'm doing a poor job explaining myself.

I think Matahari is tackling the same space that many other frameworks are. For instance, everything you say above is (supposed to be) true for something like OpenWBEM, Pegasus, etc.

The advantage I see in Matahari is that 1) it can take advantage of virtio-serial 2) it's significantly lighter than CIM 3) it's community driven.

So there's no doubt in my mind that if you need a way to inventory physical and virtual systems, something like Matahari becomes a very appealing option to do that.

But that's not the problem space I'm trying to tackle.

An example of the problem I'm trying to tackle is guest reboot.

On x86, there is no ACPI interface for requesting a guest reboot. Other platforms do provide this and we usually try to emulate platform interfaces whenever possible. In order to implement host-initiated reboot (aka virDomainReboot) we need to have a mechanism to execute the reboot command in the guest that's initiated by the hypervisor.

This is not the same thing as a remote system's management interface. This is something that should be dead-simple and trivially portable.

I think there's symbiotic relationship that a QEMU-based guest agent could play with a Matahari based agent. But my initial impression is that the types of problems we're trying to tackle are fundamentally different than the problem that Matahari is even if it superficially appears like there's an overlap.

For instance, communication window locations to enable "coherence" mode in the QEMU GUI is something that makes no sense as a network management interface. This is something that only makes sense between QEMU and the guest agent.

Regards,

Anthony Liguori

Quoted 64 lines

Thats probably enough for the moment, I'd better go make dinner :-)

Quoted 59 lines
Quoted 9 lines
Quoted 3 lines

It
exposes interfaces for manipulation of RPM packages, relies on netcf, etc.

FYI netcf is not Fedora specific. There is a Win32 backend for it too. It does need porting to other Linux distros, but that's simply an internal implementation issue. The goal of netcf is to be the libvirt of network config mgmt - a portable API for all OS network config tasks. Further, Matahari itself is also being ported to Win32 and can be ported to other Linux distros too.

Yeah, I'm aware of the goals of netcf but that hasn't materialized a port to other distros.

Let me be clear, I don't think this is a problem for libvirt, NetworkManager, or even Matahari.

But for a QEMU guest agent where we terminate the APIs within QEMU itself, I do think it creates a pretty nasty portability barrier.

Quoted 4 lines
Quoted 4 lines

There's nothing wrong with this if the goal of Matahari is to provide a robust agent for Fedora-based Linux distributions but I don't think it meets the requirements of a QEMU guest agent.

Quoted 8 lines
Quoted 3 lines

I don't think we can overly optimize for one Linux distribution either so a mentality of letting other platforms contribute their own support probably won't work.

That is not the goal of Matahari. It is intended to be generically applicable to *all* guest OS. Obviously in areas where every distro does different things, then it will need porting for each different impl. You have to start somewhere and it started with Fedora. This is all is true of any guest agent solution.

There's two approaches that could be taken for a guest agent. You could provide very low level interfaces (read a file, execute a command, read a registry key). This makes for a very portable guest agent at the cost of complexity in interacting with the agent. The agent doesn't ever really need to change much the client (QEMU) needs to handle many different types of guests, and add new functionality based on the supported primitives.

Another approach is to put the complexity in the agent and simplify the management interface. For system's management applications, this is probably the right approach. For virtualization, I think this is a bad approach.

Very specifically, netcf only really needs to read and write configuration files and potentially run a command. Instead of linking against netcf in the guest, we should link against netcf in QEMU so that we don't have to constantly change the guest agent.

Regards,

Anthony Liguori

Quoted 2 lines

Regards,
Daniel

#13 lore raw
Quoted 7 lines · * Anthony Liguori ([email protected]) wrote:

So there's no doubt in my mind that if you need a way to inventory physical and virtual systems, something like Matahari becomes a very appealing option to do that.

But that's not the problem space I'm trying to tackle.

An example of the problem I'm trying to tackle is guest reboot.

Matahari already has shutdown and reboot methods.

Inventory, reboot, filesystem freeze, cut'n paste, etc.. all are communicating between host and guest. Main point is to consolidate effort to keep from having some sprawl of agents (which agent do I install to do reboot?).

thanks,
-chris

#14 lore raw
In reply to Anthony Liguori
Quoted 36 lines · Anthony Liguori

Hi Andrew,

Quoted 28 lines · Andrew Beekhof

In that case we've done a bad job of the wiki.
Windows and other distributions are a key part of the Matahari vision.

Matahari is two things
- an architecture, and
- an implementation of the most common API sets

Each set of APIs (ie. host, network, services) is an independent daemon/agent which attaches to a common QMF broker (more on that later).

While some of these might be platform specific, packaging would be one likely candidate, the intention is to be agnostic distro/platform wherever possible.

Take netcf for example, instead of re-inventing the wheel we wrote the windows port for netcf.

So what's this about QMF you ask?
Again, rather than invent our own message protocol we're leveraging an existing standard that supports windows and linux, is fast, reliable and secure.

Its also pluggable and discoverable - so simply starting a new agent that connects to the matahari broker makes it's API available. Any QMF client/console can also interrogate the guest to see what agents and API calls are available.

Quoted 4 lines

Even better there's going to be a virtio-serial transport. So we can access the same agents in the same way with or without host-to-guest networking. This was a key requirement for us because of EC2-like cloud scenarios where we don't have access to the physical host.

Quoted 5 lines

I did get this much and I think I'm doing a poor job explaining myself.

I think Matahari is tackling the same space that many other frameworks are. For instance, everything you say above is (supposed to be) true for something like OpenWBEM, Pegasus, etc.

I think the scope is also different.
Our focus is on satisfying concrete needs rather than nebulous all-encompassing goals.

Quoted 10 lines

The advantage I see in Matahari is that 1) it can take advantage of virtio-serial 2) it's significantly lighter than CIM 3) it's community driven.

So there's no doubt in my mind that if you need a way to inventory physical and virtual systems, something like Matahari becomes a very appealing option to do that.

But that's not the problem space I'm trying to tackle.

Neither are we really.

I came to Matahari came from clustering (I wrote Pacemaker), so service management is my original area of interest.

But for the sake of argument, assume inventory was our sole focus. There is, by design, a place in the architecture for third-party agents.

Just because the agent wasn't built from matahari.git doesn't mean it can't make use of "our" bus.

Quoted 1 line

An example of the problem I'm trying to tackle is guest reboot.

Reboot was one of the first things we implemented :-)

Quoted 7 lines

On x86, there is no ACPI interface for requesting a guest reboot. Other platforms do provide this and we usually try to emulate platform interfaces whenever possible. In order to implement host-initiated reboot (aka virDomainReboot) we need to have a mechanism to execute the reboot command in the guest that's initiated by the hypervisor.

Quoted 7 lines

This is not the same thing as a remote system's management interface. This is something that should be dead-simple and trivially portable.

I think there's symbiotic relationship that a QEMU-based guest agent could play with a Matahari based agent. But my initial impression is that the types of problems we're trying to tackle are fundamentally different than the problem that Matahari is

Honestly, we're interested in whatever the teams that want to work with us are interested in. Our primary mission is to consolidate common functionality and avoid N implementations of essentially the same thing.

And I suspect that many people would be interested in having what you're working on exposed remotely.

So if you'd like to do this agent as part of Matahari, great.
But if you want to keep it separate and just want to leverage the design, that also not a problem.

Or if the core functionality was in a library, we'd happily write the glue to make it accessible via QMF and dbus.

There's really a number of levels on which we could work together - if you're interested.

#15 lore raw
In reply to Alexander Graf
Quoted 10 lines · Alexander Graf
Quoted 8 lines

Live snapshots
- merge snapshot?
- already supported, question about mgmt of snapshot chain
- integrate with fsfreeze (and windows alternative)

Guest Agent
- have one coming RSN (poke Anthony for details)

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

Our main design points are to keep the code simple with few dependencies and to provide interfaces that have the maximum amount of flexibility.

Having a single agent (not an agent framework) is important if we want these interfaces to be ubiquitous. This really means that the guest agent should be part of the QEMU source tree IMHO so that there is always a standard version of the agent.

Regards,

Anthony Liguori

Quoted 7 lines

Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#16 lore raw
Quoted 14 lines · Anthony Liguori
Quoted 5 lines · Alexander Graf
Quoted 5 lines

Live snapshots
- merge snapshot?
- already supported, question about mgmt of snapshot chain
- integrate with fsfreeze (and windows alternative)

Quoted 7 lines
Quoted 3 lines

Guest Agent
- have one coming RSN (poke Anthony for details)

Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent instead of a dozen individual ones? I'm mainly thinking Spice here.

Quoted 7 lines

Our main design points are to keep the code simple with few dependencies and to provide interfaces that have the maximum amount of flexibility.

Having a single agent (not an agent framework) is important if we want these interfaces to be ubiquitous. This really means that the guest agent should be part of the QEMU source tree IMHO so that there is always a standard version of the agent.

The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized or not. All that need change is the communication transport (TCP vs VirtIO Serial vs legacy serial vs some other data channel), and enable/disable certain agent services according to deployment scenario. Once you go to a more general purpose agent in this way, then it doesn't make such sense to put it all in the QEMU tree.

Regards,
Daniel

Signature · 4 lines
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
#17 lore raw
Quoted 9 lines · Daniel P. Berrange

The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized or not. All that need change is the communication transport (TCP vs VirtIO Serial vs legacy serial vs some other data channel), and enable/disable certain agent services according to deployment scenario. Once you go to a more general purpose agent in this way, then it doesn't make such sense to put it all in the QEMU tree.

Actually, I don't think we want to have a common agent for physical and virtual systems.

The requirements are actually very different. The virtual agent exists solely to support hypervisor functionality. Not to provide general purpose system management support.

Regards,

Anthony Liguori

Quoted 3 lines

Regards,
Daniel

#18 lore raw
Quoted 10 lines · Anthony Liguori
Quoted 8 lines · Daniel P. Berrange

The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized or not. All that need change is the communication transport (TCP vs VirtIO Serial vs legacy serial vs some other data channel), and enable/disable certain agent services according to deployment scenario. Once you go to a more general purpose agent in this way, then it doesn't make such sense to put it all in the QEMU tree.

Quoted 6 lines

Actually, I don't think we want to have a common agent for physical and virtual systems.

The requirements are actually very different. The virtual agent exists solely to support hypervisor functionality. Not to provide general purpose system management support.

True although there is much in common and there are several api for hypervisor only. I think it's sensible to ask for such.

IMHO we can't put the complete guest agent code in qemu:
- There would be OS specific code like windows and windows only interfaces (WMI)
- Agents can benefits from guest frameworks like dbus. Will we take dbus into qemu or re-write it ourselves?

I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project?

Quoted 12 lines

Regards,

Anthony Liguori

Quoted 2 lines

Regards,
Daniel

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#19 lore raw

Am 21.10.2010 um 00:46 schrieb Dor Laor <[email protected]>:

Quoted 11 lines · Anthony Liguori
Quoted 10 lines · Daniel P. Berrange
Quoted 8 lines

The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized or not. All that need change is the communication transport (TCP vs VirtIO Serial vs legacy serial vs some other data channel), and enable/disable certain agent services according to deployment scenario. Once you go to a more general purpose agent in this way, then it doesn't make such sense to put it all in the QEMU tree.

Quoted 8 lines
Quoted 6 lines

Actually, I don't think we want to have a common agent for physical and virtual systems.

The requirements are actually very different. The virtual agent exists solely to support hypervisor functionality. Not to provide general purpose system management support.

True although there is much in common and there are several api for hypervisor only. I think it's sensible to ask for such.

I'm not sure it's worth the inflexibility.

Quoted 6 lines

IMHO we can't put the complete guest agent code in qemu:
- There would be OS specific code like windows and windows only interfaces (WMI)
- Agents can benefits from guest frameworks like dbus. Will we take dbus into qemu or re-write it ourselves?

I don't understand the argument. We have plenty of binary blobs in qemu. Why not gave the guest agent be one of them, having the source in the qemu tree nevertheless?

Quoted 4 lines

I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project?

No, please. That's exactly what I don't want to see. The libvirt/qemu/virt-man split is killing us already. How is this going to become with 20 driver packs for the guest?

Alex

Quoted 1 line
Quoted 1 line
maintainer
#20 lore raw
Quoted 7 lines · Alexander Graf
Quoted 3 lines

I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project?

No, please. That's exactly what I don't want to see. The libvirt/qemu/virt-man split is killing us already. How is this going to become with 20 driver packs for the guest?

Agreed. Not relying on Mata Hari and reinventing a dbus/WMI interface would be yet another case of QEMU NIH. The same argument also works on the backend BTW, it can be virtio serial but also a Xen pvconsole and that wheel should not be reinvented either.

The guest agent should be a pluggable architecture, and QEMU can provide plugins for sync, spice, "info balloon" and everything else it needs.

Paolo

#21 lore raw
Quoted 10 lines · Paolo Bonzini
Quoted 7 lines · Alexander Graf
Quoted 3 lines

I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project?

No, please. That's exactly what I don't want to see. The libvirt/qemu/virt-man split is killing us already. How is this going to become with 20 driver packs for the guest?

Agreed. Not relying on Mata Hari and reinventing a dbus/WMI interface would be yet another case of QEMU NIH.

I think we're about 10 steps ahead of where we should be right now.

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Quoted 4 lines

The same argument also works on the backend BTW, it can be virtio
serial but also a Xen pvconsole and that wheel should not be reinvented either.

The guest agent should be a pluggable architecture, and QEMU can provide plugins for sync, spice, "info balloon" and everything else it needs.

virtio-serial is essentially our plugin interface. The core QEMU agent would use org.qemu.guest-agent and a spice against could use org.spice-space.guest-agent.

The QEMU agent should have an interface that terminates in QEMU itself.

Regards,

Anthony Liguori

Quoted 1 line

Paolo

#22 lore raw
Quoted 27 lines · Anthony Liguori
Quoted 11 lines · Paolo Bonzini
Quoted 7 lines · Alexander Graf
Quoted 3 lines

I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project?

No, please. That's exactly what I don't want to see. The libvirt/qemu/virt-man split is killing us already. How is this going to become with 20 driver packs for the guest?

Agreed. Not relying on Mata Hari and reinventing a dbus/WMI interface would be yet another case of QEMU NIH.

I think we're about 10 steps ahead of where we should be right now.

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Quoted 7 lines

The same argument also works on the backend BTW, it can be virtio serial but also a Xen pvconsole and that wheel should not be reinvented either.

The guest agent should be a pluggable architecture, and QEMU can provide plugins for sync, spice, "info balloon" and everything else it needs.

Quoted 5 lines

virtio-serial is essentially our plugin interface. The core QEMU agent would use org.qemu.guest-agent and a spice against could use org.spice-space.guest-agent.

The QEMU agent should have an interface that terminates in QEMU itself.

I agree that for some think with semi-transaction oriented actions like the fs-freeze on live snapshot, we need a small, self confined code base.

Quoted 11 lines

Regards,

Anthony Liguori

Quoted 1 line

Paolo

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#23 lore raw
In reply to Anthony Liguori
Quoted 3 lines · * Anthony Liguori ([email protected]) wrote:

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Could you elaborate here? I can't imagine you mean:

vm_system(target_vm, "shutdown -r now")

But from other post, it does seem you want complexity in the host side not guest side of agent.

Seems vm_reboot(target_vm) as the RPC makes more sense with the guest side implementing that in whatever guest-specific appropriate way.

thanks,
-chris

#24 lore raw
Quoted 8 lines · Chris Wright
Quoted 4 lines · * Anthony Liguori ([email protected]) wrote:

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Could you elaborate here? I can't imagine you mean:

Quoted 8 lines

vm_system(target_vm, "shutdown -r now")

But from other post, it does seem you want complexity in the host side not guest side of agent.

Seems vm_reboot(target_vm) as the RPC makes more sense with the guest side implementing that in whatever guest-specific appropriate way.

What I really want is a vm_system API that a guest agent MUST implement and then APIs like vm_reboot that a guest agent MAY implement.

In my mind, the guest agent lives in the distros even though it's built from QEMU source tree. We don't install it ourselves.

That means we might have a new funky fresh version of Fedora 21 version of QEMU but running an old Fedora 14 guest with a really back-level guest agent.

Having very low level APIs with logic that primarily lives in QEMU gives us the ability to support new features in QEMU with older guests.

Regards,

Anthony Liguori

#25 lore raw
Quoted 22 lines · * Anthony Liguori ([email protected]) wrote:
Quoted 6 lines · Chris Wright
Quoted 3 lines · * Anthony Liguori ([email protected]) wrote:

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Could you elaborate here? I can't imagine you mean:

Quoted 7 lines

vm_system(target_vm, "shutdown -r now")

But from other post, it does seem you want complexity in the host side not guest side of agent.

Seems vm_reboot(target_vm) as the RPC makes more sense with the guest side implementing that in whatever guest-specific appropriate way.

What I really want is a vm_system API that a guest agent MUST implement and then APIs like vm_reboot that a guest agent MAY implement.

In my mind, the guest agent lives in the distros even though it's built from QEMU source tree. We don't install it ourselves.

Quoted 7 lines

That means we might have a new funky fresh version of Fedora 21 version of QEMU but running an old Fedora 14 guest with a really back-level guest agent.

Having very low level APIs with logic that primarily lives in QEMU gives us the ability to support new features in QEMU with older guests.

I'm not sure about that. That same new shiny Fedora 21 QEMU has no idea what the right OS specific command to run in guest is. Granted, it's not likely that "reboot" or "shutdown -r now" are likely to change for Linux guests, do we assume cygwin for Windows guests? Really seems to make more sense to have a stable ABI and negotiate version.

Also, from the point of view of a cloud where a VM agent is awfully close to provider having backdoor into VM...a freeform vm_system() doesn't seem like it'd be real popular.

thanks,
-chris

#26 lore raw
Quoted 31 lines · Chris Wright
Quoted 29 lines · * Anthony Liguori ([email protected]) wrote:
Quoted 8 lines · Chris Wright
Quoted 4 lines · * Anthony Liguori ([email protected]) wrote:

The first step is just identifying what interfaces we need in a guest agent. So far, I think we can get away with a very small number of interfaces (mainly read/write files, execute command).

Could you elaborate here? I can't imagine you mean:

Quoted 8 lines

vm_system(target_vm, "shutdown -r now")

But from other post, it does seem you want complexity in the host side not guest side of agent.

Seems vm_reboot(target_vm) as the RPC makes more sense with the guest side implementing that in whatever guest-specific appropriate way.

What I really want is a vm_system API that a guest agent MUST implement and then APIs like vm_reboot that a guest agent MAY implement.

In my mind, the guest agent lives in the distros even though it's built from QEMU source tree. We don't install it ourselves.

That means we might have a new funky fresh version of Fedora 21 version of QEMU but running an old Fedora 14 guest with a really back-level guest agent.

Quoted 8 lines
Quoted 4 lines

Having very low level APIs with logic that primarily lives in QEMU gives us the ability to support new features in QEMU with older guests.

I'm not sure about that. That same new shiny Fedora 21 QEMU has no idea what the right OS specific command to run in guest is. Granted, it's not likely that "reboot" or "shutdown -r now" are likely to change for Linux guests, do we assume cygwin for Windows guests?

No, but I'll waive my hands and say that I'm sure Windows has some appropriate mechanism to do the same thing (like PowerShell).

Quoted 3 lines

Really seems to
make more sense to have a stable ABI and negotiate version.

I guess the point is: we can always teach QEMU about how to work around older guests. We (usually) can't control the software that's present on the guest itself.

The more logic we have in QEMU, the less we have to change the software in the guest which means the more likely things will work.

Quoted 4 lines

Also, from the point of view of a cloud where a VM agent is awfully close to provider having backdoor into VM...a freeform vm_system() doesn't seem like it'd be real popular.

This is the best (irrational) argument against this practice. Obviously, there's no real security concern here, but the end-user view may be troubling.

That said, VMware has an interface for exactly this at least it's an established practice.

Regards,

Anthony Liguori

Quoted 3 lines

thanks,
-chris

#27 lore raw
Quoted 8 lines · * Anthony Liguori ([email protected]) wrote:
Quoted 4 lines · Chris Wright

I'm not sure about that. That same new shiny Fedora 21 QEMU has no idea what the right OS specific command to run in guest is. Granted, it's not likely that "reboot" or "shutdown -r now" are likely to change for Linux guests, do we assume cygwin for Windows guests?

No, but I'll waive my hands and say that I'm sure Windows has some appropriate mechanism to do the same thing (like PowerShell).

OK (bleh), but it's still specific to the guest OS.

Quoted 6 lines
Quoted 2 lines

Really seems to
make more sense to have a stable ABI and negotiate version.

I guess the point is: we can always teach QEMU about how to work around older guests. We (usually) can't control the software that's present on the guest itself.

I don't understand why we'd work around an older guest if the host <-> guest interface is stable. Sure it can be extended, but old interfaces should keep on Just Working (TM).

Quoted 2 lines

The more logic we have in QEMU, the less we have to change the software in the guest which means the more likely things will work.

Maybe you're saying the advantage of injecting the raw commands into the guest is that a host rev will automagically give an old guest new functionality?

Quoted 7 lines
Quoted 3 lines

Also, from the point of view of a cloud where a VM agent is awfully close to provider having backdoor into VM...a freeform vm_system() doesn't seem like it'd be real popular.

This is the best (irrational) argument against this practice. Obviously, there's no real security concern here, but the end-user view may be troubling.

Heh, cloud + security == irrational fear, basic axiom

Quoted 2 lines

That said, VMware has an interface for exactly this at least it's an established practice.

OK, what about other bits of API? I recall seeing things like cut'n paste, reboot, ballooning, time, few bits that spice would care about... Are you thinking that as well, or all in terms of read/write/exec?

thanks,
-chris