]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Introduce 'kvm setup' command
authorPekka Enberg <penberg@kernel.org>
Wed, 24 Aug 2011 13:23:38 +0000 (16:23 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 24 Aug 2011 15:16:35 +0000 (18:16 +0300)
commit6533f7913743742fdd690eee0930fb7ba1bcbb1f
tree03d50e23b127faac38b0163290591ee1670f4193
parent38dd384fd3aa4aa8975b69cf21ed7f107cbdfb08
kvm tools: Introduce 'kvm setup' command

This patch implements 'kvm setup' command that can be used to setup a guest
filesystem that shares system libraries and binaries from host filesystem in
read-only mode.

You can setup a new shared rootfs guest with:

  ./kvm setup -n default

and launch it with:

  ./kvm run --9p /,hostfs -p "init=virt/init" -d ~/.kvm-tools/default/

We want to teach 'kvm run' to be able to launch guest filesystems by name in
the future. Furthermore, 'kvm run' should setup a 'default' filesystem and use
it by default unless the user specifies otherwise.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/.gitignore
tools/kvm/Documentation/kvm-setup.txt [new file with mode: 0644]
tools/kvm/Makefile
tools/kvm/builtin-setup.c [new file with mode: 0644]
tools/kvm/command-list.txt
tools/kvm/guest/init.c [new file with mode: 0644]
tools/kvm/include/kvm/builtin-setup.h [new file with mode: 0644]
tools/kvm/kvm-cmd.c