aboutsummaryrefslogtreecommitdiffstats
path: root/builtin-setup.c
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2011-10-13 11:32:44 +0200
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:48 +0100
commitf9613d9f5b822b4718f59e0158ee317cbfdf5d8a (patch)
treecceca342f985b65eaada602835edeb338bf95841 /builtin-setup.c
parentac41895e11e422292c1c150f418fec34910d4680 (diff)
downloadkvmtool-f9613d9f5b822b4718f59e0158ee317cbfdf5d8a.tar.gz
kvm tools: Add help and info messages to 'kvm setup'
Suggested-by: Ingo Molnar <mingo@elte.hu> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'builtin-setup.c')
-rw-r--r--builtin-setup.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/builtin-setup.c b/builtin-setup.c
index 3e569e7b..a2e893ce 100644
--- a/builtin-setup.c
+++ b/builtin-setup.c
@@ -47,6 +47,8 @@ static void parse_setup_options(int argc, const char **argv)
void kvm_setup_help(void)
{
+ printf("\nkvm setup creates a new rootfs and stores it under ~/.kvm-tools/ .\n"
+ "This can be used later by the '-d' parameter of 'kvm run'.\n");
usage_with_options(setup_usage, setup_options);
}
@@ -205,10 +207,18 @@ int kvm_setup_create_new(const char *guestfs_name)
int kvm_cmd_setup(int argc, const char **argv, const char *prefix)
{
+ int r;
+
parse_setup_options(argc, argv);
if (instance_name == NULL)
kvm_setup_help();
- return do_setup(instance_name);
+ r = do_setup(instance_name);
+ if (r == 0)
+ pr_info("Your new rootfs named %s has been created.\n"
+ "You can now start it by running 'kvm run -d %s'\n",
+ instance_name, instance_name);
+
+ return r;
}