Linux KVM Sinnvolle Befehle

Anzeigen auf welchem Port der VNC läuft

virsh domdisplay <vmname>

Übersicht des Ressourcenverbrauchs:

virt-top


falls nicht installiert: 
apt-get install virt-top

install von windows 7

<pre class="lang:default decode:true " >virt-install --name=vm2-wintest --disk path=/dev/kvm-host-vg/vm2-wintest,device=disk,bus=virtio --vcpus=2 --ram=4096 --network bridge=br0 --os-type=windows --os-variant win7 --disk device=cdrom,path=/opt/de_windows_7_professional_with_sp1_x64_dvd.iso --video cirrus --noautoconsole --vnc --hvm --disk path=/opt/virtio-win-drivers-20120712-1.iso,device=cdrom,perms=ro</pre> 

verwalten der VMs

Erstellen aus einer XML

virsh create /tmp/vmxyz.xml  

Dumpen in eine XML 
virsh dumpxml foo > /tmp/vmxyz.xml 


alle anzeigen
virsh list --all


virsh netzwerke anzeigen
virsh net-list --all

fürs bridging die interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto eth0
allow-hotplug eth0
iface eth0 inet manual


#auto eth1
#iface eth1 inet dhcp

auto br0
iface br0 inet dhcp
   bridge_ports eth0