kvm

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
kvm [2021/02/13 07:10] – [Resize (LVM) disk] adminkvm [2021/02/14 09:36] (current) – [Edit networks] dani
Line 184: Line 184:
   <bridge name='virbr0' stp='on' delay='0'/>   <bridge name='virbr0' stp='on' delay='0'/>
   <mac address='52:54:00:65:80:59'/>   <mac address='52:54:00:65:80:59'/>
-  <ip address='192.168.122.1' netmask='255.255.255.0'> (1)+  <ip address='192.168.xxx.1' netmask='255.255.255.0'> (1)
     <dhcp>     <dhcp>
-      <range start='192.168.122.40' end='192.168.122.254'/> +      <range start='192.168.122.40' end='192.168.xxx.254'/> 
-      <host mac='52:54:00:f3:30:0f' ip='192.168.122.10'/> (2) +      <host mac='52:54:00:f3:30:0f' ip='192.168.xxx.xx'/> (2) 
-      <host mac='52:54:00:f3:30:1f' ip='192.168.122.11'/> +      <host mac='52:54:00:f3:30:1f' ip='192.168.xxx.xx'/> 
-      <host mac='52:54:00:f3:30:2f' ip='192.168.122.12'/> +      <host mac='52:54:00:f3:30:2f' ip='192.168.xxx.xx'/>
-      <host mac='52:54:00:f3:30:3f' ip='192.168.122.13'/> +
-      <host mac='52:54:00:f3:30:4f' ip='192.168.122.14'/> +
-      <host mac='52:54:00:f3:30:5f' ip='192.168.122.15'/> +
-      <host mac='52:54:00:f3:30:6f' ip='192.168.122.16'/> +
-      <host mac='52:54:00:43:56:0e' ip='192.168.122.17'/> +
-      <host mac='52:54:00:43:56:1e' ip='192.168.122.18'/> +
-      <host mac='52:54:00:43:56:2e' ip='192.168.122.19'/> +
-      <host mac='52:54:00:43:56:3e' ip='192.168.122.20'/> +
-      <host mac='52:54:00:43:56:4e' ip='192.168.122.21'/> +
-      <host mac='52:54:00:43:56:5e' ip='192.168.122.22'/> +
-      <host mac='52:54:00:43:56:6e' ip='192.168.122.23'/> +
-      <host mac='52:54:00:43:56:7e' ip='192.168.122.24'/>+
     </dhcp>     </dhcp>
   </ip>   </ip>
Line 214: Line 202:
 </code> </code>
   * Delete a vm (host) in a network (here ''default'' net):<code bash>   * Delete a vm (host) in a network (here ''default'' net):<code bash>
-virsh net-update default delete ip-dhcp-host "<host mac='52:54:00:f3:30:2f' name='ds' ip='192.168.122.12'/>" --live --config+virsh net-update default delete ip-dhcp-host "<host mac='52:54:00:f3:30:2f' name='hostname' ip='192.168.xxx.xxx'/>" --live --config
 </code> </code>
   * Add a network configuration (host) live:<code bash>   * Add a network configuration (host) live:<code bash>
-net-update add ip-dhcp-host --xml "<host mac='52:54:00:43:56:82' name='host' ip='192.168.122.28'/>" --live --config+virsh net-update default add ip-dhcp-host "<host mac='52:54:00:43:56:84' name='hostname' ip='192.168.xxx.xxx'/>" --live --config
 </code> </code>
  
  • kvm.1613196636.txt.gz
  • Last modified: 2021/02/13 07:10
  • by admin