libvirt_qemu_kvm

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
libvirt_qemu_kvm [2011/10/22 14:57] – [auf der Shell] brotlibvirt_qemu_kvm [2012/04/02 10:04] (current) – [auf der Shell] brot
Line 7: Line 7:
 === Erstellen einer VM === === Erstellen einer VM ===
  
-   sudo virt-install -n user-vmname -r 512 --os-type=linux --os-variant=virtio26 --disk /var/lib/libvirt/images/user-vmname.img,device=disk,bus=virtio,size=1,sparse=true,format=raw -w network=default,model=virtio --graphics vnc,listen=127.0.0.1,port=9999999 --video cirrus --noautoconsole --location http://ftp.debian.de/debian/dists/testing/main/installer-amd64/+   sudo virt-install -n user-vmname -r 500 --cpu host --vcpus=1,maxvcpus=2 --os-type=linux --os-variant=virtio26 --disk /var/lib/libvirt/images/user-vmname.img,device=disk,bus=virtio,size=2,sparse=false,format=raw -w network=default,model=virtio --graphics spice,listen=127.0.0.1,port=61234 --video qxl --channel spicevmc --noautoconsole --location http://ftp.de.debian.org/debian/dists/unstable/main/installer-amd64/ 
  
 * -n -> Name der VM * -n -> Name der VM
Line 13: Line 14:
 * --graphics vnc,listen=127.0.0.1,port=9999999 -> port immerwieder neu setzen, am besten im hohen 60000er bereich * --graphics vnc,listen=127.0.0.1,port=9999999 -> port immerwieder neu setzen, am besten im hohen 60000er bereich
 * --location -> statt nem iso wird über netz gebootet. Im Beispiel wird Debian testing genommen, andere URLs siehe: * --location -> statt nem iso wird über netz gebootet. Im Beispiel wird Debian testing genommen, andere URLs siehe:
-       
          Fedora/Red Hat Based          Fedora/Red Hat Based
-             http://download.fedoraproject.org/pub/fedora/linux/releases/10/Fedora/i386/os/+             http://ftp.uni-kl.de/pub/linux/fedora/linux/releases/16/Fedora/x86_64/os/
  
          Debian/Ubuntu          Debian/Ubuntu
-             http://ftp.us.debian.org/debian/dists/etch/main/installer-amd64/+             http://ftp.de.debian.org/debian/dists/unstable/main/installer-amd64/
  
          Suse          Suse
-             http://download.opensuse.org/distribution/11.0/repo/oss/+             http://download.opensuse.org/distribution/openSUSE-current/repo/oss/
  
  
Line 51: Line 51:
 Das Gastsystem hat in dem Fall die IP 192.168.100.78, Dienst ist in dem Fall ssh :) Die erste Zeile ist für das Forwarding von Paketen auf die virbr0 (hat die IP 192.168.100.1, siehe "ip addr show") Das Gastsystem hat in dem Fall die IP 192.168.100.78, Dienst ist in dem Fall ssh :) Die erste Zeile ist für das Forwarding von Paketen auf die virbr0 (hat die IP 192.168.100.1, siehe "ip addr show")
  
 +==== Bisherige Forwards ====
 +
 +
 +
 +^ VM-hostname (IP)  ^ Anwendung ^ Port               ^
 +| brot-vgentoo (192.168.100.183)|rtorrent|10797-10799 + udp:10797|
 +| brot-vgentoo (192.168.100.183)|ssh|10722|
 +| brot-torvm (192.168.100.190)|ssh|59022(->22)|
 +| brot-torvm (192.168.100.190)|tor|59030,59001|
 +| brot-pyhole-ircbot (192.168.100.231)|ssh|60022(->22)|
 +| brot-owncloud (192.168.100.161)|ssh|61022(->22)|
 +| brot-owncloud (192.168.100.161)|ssh|61080(->61080)|
 +| brot-webpy-dev (192.168.100.217)|ssh|62022(->22)|
 +| brot-webpy-dev (192.168.100.217)|http|62080(->80)|
 +| brot-webpy-dev (192.168.100.217)|https|62443(->443)|
 ===== verwendete Software ===== ===== verwendete Software =====
  
  • libvirt_qemu_kvm.1319295470.txt.gz
  • Last modified: 2011/10/22 14:57
  • by brot