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
boards:n100 [2024/01/18 15:15]
darron [File system]
boards:n100 [2024/01/20 00:43] (current)
darron
Line 7: Line 7:
 N100 Mini PCs are very cheap and very capable devices. N100 Mini PCs are very cheap and very capable devices.
  
-Here is the procedure used to dual boot debian 12 on a Mini and prepare +Here is the procedure used to dual boot debian 12 on a Mini PC and prepare 
-it to run VMs under KVM.+it to run VMs under [[:tools:kvm|KVM]].
  
 ===Hardware=== ===Hardware===
Line 101: Line 101:
  
 <code> <code>
-apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill+apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill bridge-utils cgroupfs-mount conntrack iptables
 </code> </code>
  
Line 191: Line 191:
 update-rc.d sddm disable update-rc.d sddm disable
 update-rc.d saned disable update-rc.d saned disable
 +</code>
 +
 +<code>
 +apt remove --purge gvfs-backends gvfs
 </code> </code>
  
Line 198: Line 202:
 systemctl --user stop pulseaudio.socket systemctl --user stop pulseaudio.socket
 systemctl --user stop pulseaudio.service systemctl --user stop pulseaudio.service
-systemctl --user stop 'gvfs*' 
 </code> </code>
  
Line 204: Line 207:
 systemctl --user disable pulseaudio.socket systemctl --user disable pulseaudio.socket
 systemctl --user disable pulseaudio.service systemctl --user disable pulseaudio.service
-systemctl --user disable 'gvfs*' 
 </code> </code>
  
Line 210: Line 212:
 systemctl --user mask pulseaudio.socket systemctl --user mask pulseaudio.socket
 systemctl --user mask pulseaudio.service systemctl --user mask pulseaudio.service
-systemctl --user mask 'gvfs*' 
 </code> </code>
  
Line 227: Line 228:
  
 In this example the host is 192.168.0.130 and VMs or containers will be bridged to the same network. In this example the host is 192.168.0.130 and VMs or containers will be bridged to the same network.
 +
 +Save /etc/network/interfaces
  
 <code> <code>
-auto eth0 +cp interfaces interfaces.dist 
-iface eth0 inet manual+</code> 
 + 
 +Replace /etc/network/interfaces 
 + 
 +<code> 
 +auto lo 
 +iface lo inet loopback 
 + 
 +auto enp1s0 
 +iface enp1s0 inet manual
  
 auto br0 auto br0
 iface br0 inet static iface br0 inet static
- bridge_ports eth0+ bridge_ports enp1s0
  address 192.168.0.130  address 192.168.0.130
  netmask 255.255.255.0  netmask 255.255.255.0
Line 240: Line 252:
 </code> </code>
  
 +Reboot to take effect.
 +
 +<code>
 +ifconfig -a
 +br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
 +        inet 192.168.0.130  netmask 255.255.255.0  broadcast 192.168.0.255
 +        inet6 fe80::4c3a:bff:feab:4fb0  prefixlen 64  scopeid 0x20<link>
 +        ether 4e:3a:0b:ab:4f:b0  txqueuelen 1000  (Ethernet)
 +        RX packets 114  bytes 11804 (11.5 KiB)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 93  bytes 14326 (13.9 KiB)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
 +        ether 7c:83:34:be:e3:5e  txqueuelen 1000  (Ethernet)
 +        RX packets 114  bytes 13400 (13.0 KiB)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 93  bytes 14326 (13.9 KiB)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
 +        inet 127.0.0.1  netmask 255.0.0.0
 +        inet6 ::1  prefixlen 128  scopeid 0x10<host>
 +        loop  txqueuelen 1000  (Local Loopback)
 +        RX packets 0  bytes 0 (0.0 B)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 0  bytes 0 (0.0 B)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +</code>
 +
 +Permissions
 +
 +<code>
 +mkdir -p /etc/qemu
 +echo "allow all" > /etc/qemu/bridge.conf
 +chmod u+s /usr/lib/qemu/qemu-bridge-helper
 +</code>
 +
 +Example lease on bridge
 +
 +<code>
 +lease 192.168.0.248 {
 +  starts 4 2024/01/18 18:11:39;
 +  ends 5 2024/01/19 18:11:39;
 +  cltt 4 2024/01/18 18:11:39;
 +  binding state active;
 +  next binding state free;
 +  rewind binding state free;
 +  hardware ethernet 52:54:00:e6:ab:09;
 +  uid "\001RT\000\346\253\011";
 +  set vendor-class-identifier = "d-i";
 +}
 +</code>