* [Qemu-devel] [question] updating the base image for all clones which have been running for months
@ 2014-11-03 12:04 Zhang Haoyu
2014-11-03 12:14 ` Kevin Wolf
0 siblings, 1 reply; 5+ messages in thread
From: Zhang Haoyu @ 2014-11-03 12:04 UTC (permalink / raw)
To: qemu-devel, kvm; +Cc: Kevin Wolf, Stefan Hajnoczi
Hi, all
I used base image A to clone so many vm,
after running for months, each vm has its own private applications and data,
which maybe different from each other.
Now, I want to install some applications for all of the clones,
what should I do?
Can I rebase image A to B which have the applications to be installed,
then change the base image to B for all clones?
I don't think it can work, the clone images maybe corrupted latter.
If the clone image's space is not enough, what will happen?
Any ideas?
My bad idea is to push the applications from center to each clone's guest-agent,
which is responsible to install the applications.
Thanks,
Zhang Haoyu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [question] updating the base image for all clones which have been running for months
2014-11-03 12:04 [Qemu-devel] [question] updating the base image for all clones which have been running for months Zhang Haoyu
@ 2014-11-03 12:14 ` Kevin Wolf
2014-11-03 12:37 ` [Qemu-devel] [question] updating the base image for all clones which havebeen " Zhang Haoyu
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2014-11-03 12:14 UTC (permalink / raw)
To: Zhang Haoyu; +Cc: Stefan Hajnoczi, qemu-devel, kvm
Am 03.11.2014 um 13:04 hat Zhang Haoyu geschrieben:
> Hi, all
>
> I used base image A to clone so many vm,
> after running for months, each vm has its own private applications and data,
> which maybe different from each other.
> Now, I want to install some applications for all of the clones,
> what should I do?
Install the applications on each clone separately, or use some other
method to make it available (like installing on a shared network
resource).
> Can I rebase image A to B which have the applications to be installed,
> then change the base image to B for all clones?
The problem is that rebase works on the block level, not on the file
system level. Changing the backing file won't produce a correctly
working guest, it causes file system corruption.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [question] updating the base image for all clones which havebeen running for months
2014-11-03 12:14 ` Kevin Wolf
@ 2014-11-03 12:37 ` Zhang Haoyu
2014-11-04 13:30 ` Eric Blake
2014-11-07 2:16 ` [Qemu-devel] [question] updating the base image for all clones which have been " Zhang Haoyu
0 siblings, 2 replies; 5+ messages in thread
From: Zhang Haoyu @ 2014-11-03 12:37 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Stefan Hajnoczi, qemu-devel, kvm
>> Hi, all
>>
>> I used base image A to clone so many vm,
>> after running for months, each vm has its own private applications and data,
>> which maybe different from each other.
>> Now, I want to install some applications for all of the clones,
>> what should I do?
>
>Install the applications on each clone separately, or use some other
>method to make it available (like installing on a shared network
>resource).
>
Could you detail "installing on a shared network resource"?
Thanks,
Zhang Haoyu
>> Can I rebase image A to B which have the applications to be installed,
>> then change the base image to B for all clones?
>
>The problem is that rebase works on the block level, not on the file
>system level.
Yes, this is the point.
>Changing the backing file won't produce a correctly
>working guest, it causes file system corruption.
>
>Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [question] updating the base image for all clones which havebeen running for months
2014-11-03 12:37 ` [Qemu-devel] [question] updating the base image for all clones which havebeen " Zhang Haoyu
@ 2014-11-04 13:30 ` Eric Blake
2014-11-07 2:16 ` [Qemu-devel] [question] updating the base image for all clones which have been " Zhang Haoyu
1 sibling, 0 replies; 5+ messages in thread
From: Eric Blake @ 2014-11-04 13:30 UTC (permalink / raw)
To: Zhang Haoyu, Kevin Wolf; +Cc: qemu-devel, Stefan Hajnoczi, kvm
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
On 11/03/2014 01:37 PM, Zhang Haoyu wrote:
>>> Hi, all
>>>
>>> I used base image A to clone so many vm,
>>> after running for months, each vm has its own private applications and data,
>>> which maybe different from each other.
>>> Now, I want to install some applications for all of the clones,
>>> what should I do?
How would you do it for bare metal? Do the same for your guests.
>>
>> Install the applications on each clone separately, or use some other
>> method to make it available (like installing on a shared network
>> resource).
>>
> Could you detail "installing on a shared network resource"?
Set up a network file system, like NFS or gluster, install your software
on the shared file system, and then make each guest mount the shared
file system in order to use the software. The same as you would on bare
metal.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [question] updating the base image for all clones which have been running for months
2014-11-03 12:37 ` [Qemu-devel] [question] updating the base image for all clones which havebeen " Zhang Haoyu
2014-11-04 13:30 ` Eric Blake
@ 2014-11-07 2:16 ` Zhang Haoyu
1 sibling, 0 replies; 5+ messages in thread
From: Zhang Haoyu @ 2014-11-07 2:16 UTC (permalink / raw)
To: Eric Blake, Kevin Wolf; +Cc: qemu-devel, Stefan Hajnoczi, kvm
>>>> Hi, all
>>>>
>>>> I used base image A to clone so many vm,
>>>> after running for months, each vm has its own private applications and data,
>>>> which maybe different from each other.
>>>> Now, I want to install some applications for all of the clones,
>>>> what should I do?
>
>How would you do it for bare metal? Do the same for your guests.
>
For bare-metal, I use manager to push the applications to each host-agent
which is running in each host, the host-agent is responsible to install the
applications.
Thanks,
Zhang Haoyu
>>>
>>> Install the applications on each clone separately, or use some other
>>> method to make it available (like installing on a shared network
>>> resource).
>>>
>> Could you detail "installing on a shared network resource"?
>
>Set up a network file system, like NFS or gluster, install your software
>on the shared file system, and then make each guest mount the shared
>file system in order to use the software. The same as you would on bare
>metal.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-11-07 2:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03 12:04 [Qemu-devel] [question] updating the base image for all clones which have been running for months Zhang Haoyu
2014-11-03 12:14 ` Kevin Wolf
2014-11-03 12:37 ` [Qemu-devel] [question] updating the base image for all clones which havebeen " Zhang Haoyu
2014-11-04 13:30 ` Eric Blake
2014-11-07 2:16 ` [Qemu-devel] [question] updating the base image for all clones which have been " Zhang Haoyu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).