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:54] – (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 164: | Line 166: | ||
| * create a test file | * create a test file | ||
| <code bash> | <code bash> | ||
| - | su - kvm -c " | + | su - kvm -c " |
| Formatting '/ | Formatting '/ | ||
| </ | </ | ||
| Line 174: | 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 185: | Line 187: | ||
| This site will describe on some example howto setup the [[wiki: | This site will describe on some example howto setup the [[wiki: | ||
| + | |||
| Line 198: | Line 201: | ||
| I use my own scripts to manage the kvm guest' | I use my own scripts to manage the kvm guest' | ||
| - | |||
| - | Its for free use. | ||
| It can be found here http:// | It can be found here http:// | ||
| - | To use it, simple copy it to / | + | |
| + | |||
| + | |||
| Line 215: | Line 219: | ||
| <code python> | <code python> | ||
| - | test-only = enabled # does not execute it but show it fully cmd-line string | + | ############################ |
| - | name = example # the name for ifname when used the tap option | + | # sample option for a disk # |
| + | ############################ | ||
| + | drive = file=/ | ||
| + | # sample option for a cdrom, can also be a second disk | ||
| + | drive = file=/ | ||
| + | |||
| + | ######################## | ||
| + | # settings | ||
| + | ######################## | ||
| + | net = nic | ||
| + | # use tap device for briding | ||
| + | net = tap, | ||
| + | |||
| + | ############################################################################ | ||
| + | # use monitor | ||
| + | ############################################################################ | ||
| + | # example for overridding the default | ||
| + | # monitor = unix, | ||
| + | # use tcp socket, every guest have to use a different port | ||
| + | monitor = tcp, | ||
| + | |||
| + | </ | ||
| + | |||
| - | hda = / | ||
| - | cdrom = debian-netinst.iso | ||
| - | boot = d | ||
| - | ## if use the virtio driver or scsi use the file syntax | ||
| - | #file = file=/ | ||
| - | #file = file=debian-netinst.iso, | ||
| - | m = 265 # default 128 MB => size in MB | ||
| - | vnc = 4 # would be on to connect to your vnc host:4 than for use | ||
| - | net = nic, | ||
| - | net = tap, | ||
| - | usb = enabled | ||
| - | usbdevice = tablet | ||
| - | nographic = enabled # for headless machine | ||
| - | language = de | ||
| - | smp = 2 # default is no smp enabled | ||
| - | k = de | ||
| - | localtime = enabled | ||
| - | daemonize = enabled | ||
| - | no-fd-bootchk = enabled | ||
| - | parallel = / | ||
| - | vnc = :1 # vncviewr hostip:5901 | ||
| - | </ | ||
| + | ===== Test example config ===== | ||
| + | Befor start check the [[wiki: | ||
| - | ===== test example config ===== | ||
| - | Now is time to test it. | ||
| - | * #cd /etc/kvm | ||
| - | * #ln -s kvm-admin.py | ||
| <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: |