wiki:experiences:igraltist:kvm
=>  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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:experiences:igraltist:kvm [2010/11/10 14:55] – (old revision restored) 127.0.0.1wiki:experiences:igraltist:kvm [2012/05/13 05:53] (current) – (old revision restored) 127.0.0.1
Line 1: Line 1:
-[[wiki:experiences/igraltist|Back to igraltist's experiences]]\\+[[wiki:experiences/igraltist#kvm_on_rsbac|Back to igraltist's experiences/KVM on RSBAC]]\\
 ====== 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 186: Line 187:
  
 This site will describe on some example howto setup the [[wiki:experiences/igraltist/kvm-network|Network]]. This site will describe on some example howto setup the [[wiki:experiences/igraltist/kvm-network|Network]].
 +
  
  
Line 199: Line 201:
  
 I use my own scripts to manage the kvm guest's. I use my own scripts to manage the kvm guest's.
- 
-Its for free use. 
  
 It can be found here http://hg.kasten-edv.de/kvm-tools/ It can be found here http://hg.kasten-edv.de/kvm-tools/
  
-To use it, simple copy it to /etc/kvm. + 
 + 
  
  
Line 217: 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 and ifname is not set+# sample option for a disk # 
 +############################ 
 +drive = file=/dev/mapper/VG-example,if=virtio,index=0,media=disk,boot=off,cache=none 
 +sample option for a cdrom, can also be a second disk 
 +drive file=/path/to/my_cd_img.iso,if=virtio,index=1,media=cdrom,boot=on 
 + 
 +######################## 
 +# settings for network # 
 +######################## 
 +net = nic 
 +# use tap device for briding 
 +net = tap,bridge=br0 
 + 
 +############################################################################ 
 +# use monitor option other the default unix socket or override the default # 
 +############################################################################ 
 +# example for overridding the default 
 +# monitor = unix,path_to_your_own_socketfile,server,nowait 
 +# use tcp socket, every guest have to use a different port 
 +monitor = tcp,localhost,4444,server,nowait 
 + 
 +</code> 
 + 
  
-hda = /var/lib/kvm/test.img 
-cdrom = debian-netinst.iso 
-boot = d 
  
-## if use the virtio driver or scsi use the file syntax 
-#file = file=/var/lib/kvm/test.img,if=virtio,media=disk,boot=off 
-#file = file=debian-netinst.iso,if=virtio,media=cdrom,boot=on 
  
-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,macaddr=00:50:00:00:00:10,model=virtio 
-net = tap,ifname=example,script=/etc/kvm/scripts/kvm-ifup 
  
-usb = enabled                # turn on usb support 
-usbdevice = tablet        # is good if you used vnc with dektop on guest 
  
-nographic = enabled # for headless machine 
-language = de             
-smp = 2                  # default is no smp enabled 
-k = de 
-localtime = enabled          # default is False 
-daemonize = enabled          # default is enabled 
-parallel = /dev/parport0        # enable parallel support  
-vnc = :1                        # vncviewr hostip:5901 
-</code> 
  
 +===== Test example config =====
  
 +Befor start check the [[wiki:experiences/igraltist/kvm-network|Network]].
  
-===== test example config ===== 
-Now is time to test it. 
-  * #cd /etc/kvm 
-  * #ln -s kvm-admin.py  /bin/kvm-admin 
  
 <code python> <code python>
-#kvm-admin start example +kvm-admin example show 
-uid=1003(kvm) gid=1003(kvm) Gruppen=1003(kvm),6(disk),85(usb) +This string would executed
-[Errno 2] No such file or directory: '/vmserver/qemu.img' +/usr/bin/kvm -uuid 0bcd5138-41bf-a5c0-0627-4e0b65d3871f -monitor tcp,localhost,4444,server,nowait -rtc clock=host,base=utc -runas kvm -M pc -drive file=/dev/mapper/VG-example,if=virtio,index=0,media=disk,boot=off,cache=none -drive file=/path/to/my_cd_img.iso,if=virtio,index=1,media=cdrom,boot=on -daemonize -net nic -net tap,ifname=example,script=/etc/kvm/scripts/kvm-ifup,downscript=/etc/kvm/scripts/kvm-ifdown -cpu core2duo -pidfile /var/run/kvm/example.pid -name example,process=example
-Setting up tun-tap-device, done .... +
-The follow command would be executing:  +
-['/usr/local/kvm/72/bin/qemu-system-x86_64''-cdrom''/usr/src/ISOS/debian-40r3-i386-netinst.iso''-net''nic,vlan=0,macaddr=A9:B9:C9:D9:E9:F0,model=rtl8139', '-net', 'tap,vlan=0,ifname=iface_test,script=/etc/kvm/scripts/kvm-dmz-ifup''-vnc', ':4', '-m', '265', '-boot', 'd', '-k', 'en-us', '-pidfile', '/var/run/kvm/example.pid', '-smp', '2', '-L', '/usr/local/kvm/72/share/qemu', '-usb', '-usbdevice', 'tablet', '-name''example', '-no-fd-bootchk', '-daemonize', '-std-vga', '-localtime']+
 </code> </code>
-[[wiki:experiences/igraltist/kvm#Howto setup a kvm user on gentoo|Top]]+[[wiki:experiences/igraltist/kvm#|Top]]
//
wiki/experiences/igraltist/kvm.1289400926.txt.gz · Last modified: 2010/11/10 14:55 by 127.0.0.1

wiki/experiences/igraltist/kvm.1289400926.txt.gz · Last modified: 2010/11/10 14:55 by 127.0.0.1
This website is kindly hosted by m-privacy