Kvmtools: Difference between revisions

From KVM
No edit summary
No edit summary
Line 1: Line 1:
= kvm-admin =
= kvm-admin =
'''What it does?'''
'''What it does?'''
* It can do the follow action: start, stop, shutdown, status and monitor.\n
It can do the follow action: start, stop, shutdown, status and monitor.
Example, to get monitor's help:
Example, to get monitor's help:
 
<code>
<code>
kvm-admin my_guest monitor help
kvm-admin my_guest monitor help
</code>
</code>
= Featurs =
It's add a bridge to a given bridge from guest configuration file.
The bridge(s) have to exists.
There can individual bridges on the system and each guest can assign to different bridge. No need to add many script files and scriptdown files. This is set automatic.
= Configuration File Format =
The guest configuration file have to placed in the directory domains.
The format is taken 1:1 from the command line.
Global configuration varibales, which all guest should effected,
can write in 'config/kvm.cfg' file
Exampe:
  deamonize = enabled
  localtime = enabled
To use an qemu-kvm option which don't have a parameter, have to use:
  variable = enabled
Example format:
  name = my_guest
  smp = 2
  m = 1024
  drive = file:/path_to_image_or_lvm,[and other options]
  cdrom = my_installer.iso
  daemonize = enabled
  localtime = enabled
Only one exception exist.
This is only for the '-net tap' option.
There have to add an option for the bridge.
  net = nic,[and other options]
An example for tap option:
  net = tap,ifname=my_guest,bridge=br0

Revision as of 15:22, 27 November 2010

kvm-admin

What it does? It can do the follow action: start, stop, shutdown, status and monitor. Example, to get monitor's help:

kvm-admin my_guest monitor help

Featurs

It's add a bridge to a given bridge from guest configuration file. The bridge(s) have to exists. There can individual bridges on the system and each guest can assign to different bridge. No need to add many script files and scriptdown files. This is set automatic.

Configuration File Format

The guest configuration file have to placed in the directory domains. The format is taken 1:1 from the command line.

Global configuration varibales, which all guest should effected, can write in 'config/kvm.cfg' file Exampe:

 deamonize = enabled
 localtime = enabled

To use an qemu-kvm option which don't have a parameter, have to use:

 variable = enabled

Example format:

 name = my_guest
 smp = 2
 m = 1024
 drive = file:/path_to_image_or_lvm,[and other options]
 cdrom = my_installer.iso
 daemonize = enabled
 localtime = enabled

Only one exception exist. This is only for the '-net tap' option. There have to add an option for the bridge.

 net = nic,[and other options]

An example for tap option:

 net = tap,ifname=my_guest,bridge=br0