Releases
Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code on Gitgub, can be unstable sometimes
Events
No events planned
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:experiences:igraltist:kvm [2010/11/10 14:31] – (old revision restored) 127.0.0.1 | wiki:experiences:igraltist:kvm [2012/05/13 05:53] (current) – (old revision restored) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [[wiki: | + | [[wiki: |
| ====== Howto setup a kvm user on gentoo ====== | ====== Howto setup a kvm user on gentoo ====== | ||
| Line 18: | Line 18: | ||
| Other packages should be installed on default installation. | Other packages should be installed on default installation. | ||
| + | |||
| Line 124: | Line 125: | ||
| KERNEL==" | KERNEL==" | ||
| </ | </ | ||
| + | |||
| + | |||
| Line 161: | Line 164: | ||
| </ | </ | ||
| - | * create a test file. | + | * create a test file |
| <code bash> | <code bash> | ||
| - | su - kvm -c " | + | su - kvm -c " |
| Formatting '/ | Formatting '/ | ||
| </ | </ | ||
| Line 173: | Line 176: | ||
| drwxrwx--- | drwxrwx--- | ||
| drwxr-xr-x 22 root root 4096 10. Nov 15:25 .. | drwxr-xr-x 22 root root 4096 10. Nov 15:25 .. | ||
| - | -rw-r--r-- | + | -rw-r--r-- |
| </ | </ | ||
| + | |||
| Line 182: | Line 186: | ||
| ===== Network ===== | ===== Network ===== | ||
| - | This site will descibe | + | This site will describe |
| + | |||
| Line 193: | Line 199: | ||
| ===== kvm-admin ===== | ===== kvm-admin ===== | ||
| - | All preparation is done. | ||
| - | \\ | ||
| - | I have wrote a script to easy managing kvm-guests. | ||
| - | \\ | ||
| - | This script is in beta stage. | ||
| - | \\ | ||
| - | !offline change to mercurial | ||
| - | #It can be find here http:// | ||
| - | \\ | ||
| - | For using it, iam doing this: | ||
| - | * create a dir for storing and check it out via svn | ||
| - | <code bash> | ||
| - | $mkdir ~/kvm | ||
| - | $cd ~/kvm | ||
| - | </ | ||
| - | <code bash> | ||
| - | !offline change to mercurial | ||
| - | svn checkout http:// | ||
| - | * copy it to '/ | ||
| - | <code bash> | ||
| - | $cd .. | ||
| - | $su | ||
| - | #cp -a kvm /etc | ||
| - | #chmod 750 /etc/kvm | ||
| - | #chgrp kvm /etc/kvm | ||
| - | </ | ||
| - | ===== example | + | I use my own scripts to manage the kvm guest's. |
| - | If all done then add or if it already there in '/ | + | |
| - | Open it and add this: | + | |
| - | <code python> | + | |
| - | ################################################################################# | + | |
| - | # the config/ | + | |
| - | ################################################################################# | + | |
| - | #verbose = enabled # give an output what is set, not work in moment | + | |
| - | test-only = enabled # does not execute it but show it | + | |
| - | name = example # the name for ifname when used the tap option and ifname is not set | + | |
| - | #hda = /vmserver/qemu.img | + | It can be found here http://hg.kasten-edv.de/kvm-tools/ |
| - | cdrom = /usr/src/ | + | |
| - | ## if use the virtio drive the if = virtio must set | ||
| - | #file = file:/ | ||
| - | file = file:/ | ||
| - | #file = file:/ | ||
| - | #file = file:/ | ||
| - | script = kvm-dmz-ifup | + | |
| - | mem = 265 # default 128 MB => size in MB | + | |
| - | vnc = 4 # would be on to connect to your vnc host:4 than for use | + | |
| - | # vnc-max-client is set to 998 | + | |
| - | #vlan = 1 # default 0, vlan-max is set to 254 | + | |
| - | #mac = 00: | + | ===== Example configuration ===== |
| - | #nic-model = virtio | + | |
| - | # the kvm-manager will show wich avaible | + | All guest configuration files located |
| - | net-tap = enabled | + | |
| - | net-user = disabled # if tun-tap setup fail it will user -net user as defaul | + | |
| - | # -user is not actived in the moment | + | * example for a guest which on a headless machine, so vnc is using for installation |
| - | boot = d # default is c first drive "file" oder " | + | |
| - | usb = enabled | + | <code python> |
| - | usbdevice = tablet | + | ############################ |
| - | nographic = disabled # | + | # sample |
| - | pid = enabled | + | ############################ |
| - | ifname | + | drive = file=/ |
| - | # is not set the name will be used | + | # sample option for a cdrom, can also be a second disk |
| - | # and if name not set the filename | + | drive = file=/ |
| - | # from the guest-config will be used | + | |
| - | language = en-us # default is de | + | ####################### |
| - | smp = 2 # default is no smp enabled | + | # settings for network |
| - | localtime = enabled | + | ####################### |
| - | daemonize = enabled | + | net = nic |
| - | no-fd-bootchk = enabled | + | # use tap device |
| - | keymaps = enabled | + | net = tap,bridge=br0 |
| - | # config/ | + | |
| - | no-acpi | + | ############################################################################ |
| - | std-vga = enabled # default is enabled | + | # use monitor option other the default |
| + | ############################################################################ | ||
| + | # example for overridding the default | ||
| + | # monitor = unix, | ||
| + | # use tcp socket, every guest have to use a different port | ||
| + | monitor | ||
| </ | </ | ||
| - | ===== test example config ===== | + | |
| - | Now is time to test it. | + | |
| - | * #cd /etc/kvm | + | |
| - | * #ln -s kvm-admin.py / | + | |
| + | |||
| + | |||
| + | ===== Test example config ===== | ||
| + | |||
| + | Befor start check the [[wiki: | ||
| <code python> | <code python> | ||
| - | #kvm-admin | + | kvm-admin example |
| - | uid=1003(kvm) gid=1003(kvm) Gruppen=1003(kvm), | + | This string |
| - | [Errno 2] No such file or directory: '/ | + | /usr/bin/kvm -uuid 0bcd5138-41bf-a5c0-0627-4e0b65d3871f |
| - | Setting up tun-tap-device, | + | |
| - | The follow command | + | |
| - | ['/usr/local/kvm/ | + | |
| </ | </ | ||
| - | [[wiki: | + | [[wiki: |