Re: [GIT PULL] Linux KVM tool for v3.7-rc0

From: Pekka Enberg
Date: Sun Oct 21 2012 - 11:39:35 EST


On Sun, Oct 21, 2012 at 2:59 PM, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>> You are wrong on three counts:
>>
>> - As I mentioned it in my first mail to you this is not the
>> same as 'vm run': you still have a qemu-root.img while
>> tools/kvm does not ...
>>
>> 'vm run' works without having any disk image around, it just
>> uses the existing distro binaries and boots them, sharing the
>> host file system.
>>
>> - automatic, transparent host filesystem sharing is another
>> useful feature: I can copy files in/out of the virtual
>> machine using the host filesystem.
>>
>> - transparent networking is up and running straight away

On Sun, Oct 21, 2012 at 5:02 PM, richard -rw- weinberger
<richard.weinberger@xxxxxxxxx> wrote:
> qemu supports all these features.
> E.g. to access the host fs use:
> qemu ... \
> -fsdev local,security_model=passthrough,id=fsdev-root,path=/your/root/,readonly
> \
> -device virtio-9p-pci,id=fs-root,fsdev=fsdev-root,mount_tag=rootshare

IIRC, QEMU uses SLIRP non-root zero-config networking which is much
more limited than what LKVM offers out of the box.

Using host system rootfs is not quote as simple as you seem to think
so you need something like Alexander Graf's shell script for
comparable 'vm run' experience.

Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/