[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test ker
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels |
Date: |
Tue, 08 Nov 2011 16:04:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2011-11-08 15:52, Christoph Hellwig wrote:
> On Tue, Nov 08, 2011 at 04:41:40PM +0200, Avi Kivity wrote:
>> On 11/06/2011 03:35 AM, Alexander Graf wrote:
>>> To quickly get going, just execute the following as user:
>>>
>>> $ ./Documentation/run-qemu.sh -r / -a init=/bin/bash
>>>
>>> This will drop you into a shell on your rootfs.
>>>
>>
>> Doesn't work on Fedora 15. F15's qemu-kvm doesn't have -machine or
>> -virtfs. Even qemu.git on F15 won't build virtfs since xattr.h
>> detection is broken (patch posted).
>
> Nevermind that running virtfs as a rootfs is a really dumb idea. You
> do now want to run a VM that has a rootfs that gets changed all the
> time behind your back.
>
> Running qemu -snapshot on the actual root block device is the only
> safe way to reuse the host installation, although it gets a bit
> complicated if people have multiple devices mounted into the namespace.
I thought about this while hacking a slide on this topic: It's clumsy
(compared to -snapshot - my favorite one as well), but you could use
some snapshot on the host fs. Or a union fs (if we had an official one)
with the write layer directed to some tmpfs area.
But what we likely rather want (as it would work without privileges) is
built-in write redirection for virtfs. Not an expert on this, but I
guess that will have to solve the same problems an in-kernel union fs
solution faces, no?
Jan
signature.asc
Description: OpenPGP digital signature
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Avi Kivity, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Christoph Hellwig, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Sasha Levin, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Avi Kivity, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Christoph Hellwig, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Alexander Graf, 2011/11/08
- Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Avi Kivity, 2011/11/08
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels,
Jan Kiszka <=
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Pekka Enberg, 2011/11/08
Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels, Christoph Hellwig, 2011/11/08