Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
boards:n100 [2024/01/18 14:00] – [Miscellaneous] darron | boards:n100 [2024/08/10 14:53] (current) – [Hardware] 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 P 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 [[: |
===Hardware=== | ===Hardware=== | ||
Line 16: | Line 16: | ||
[[https:// | [[https:// | ||
- | After discount this device should cost £169. | + | After discount this device should cost £169 (Jan 2024) or £154 (Aug 2024). |
External SSD is an ADATA 240 GB for VMs. Any external USB3 drive will do. | External SSD is an ADATA 240 GB for VMs. Any external USB3 drive will do. | ||
Line 101: | Line 101: | ||
< | < | ||
- | 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 |
</ | </ | ||
Line 191: | Line 191: | ||
update-rc.d sddm disable | update-rc.d sddm disable | ||
update-rc.d saned disable | update-rc.d saned disable | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | apt remove --purge gvfs-backends gvfs | ||
</ | </ | ||
As user | As user | ||
+ | |||
+ | < | ||
+ | systemctl --user stop pulseaudio.socket | ||
+ | systemctl --user stop pulseaudio.service | ||
+ | </ | ||
< | < | ||
systemctl --user disable pulseaudio.socket | systemctl --user disable pulseaudio.socket | ||
systemctl --user disable pulseaudio.service | systemctl --user disable pulseaudio.service | ||
- | systemctl --user disable ' | ||
</ | </ | ||
Line 204: | 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 ' | ||
</ | </ | ||
Line 218: | Line 225: | ||
This file system will be used for VMs. | This file system will be used for VMs. | ||
+ | ===Network=== | ||
+ | In this example the host is 192.168.0.130 and VMs or containers will be bridged to the same network. | ||
+ | Save / | ||
+ | < | ||
+ | cp interfaces interfaces.dist | ||
+ | </ | ||
+ | Replace / | ||
+ | |||
+ | < | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | auto enp1s0 | ||
+ | iface enp1s0 inet manual | ||
+ | |||
+ | auto br0 | ||
+ | iface br0 inet static | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Reboot to take effect. | ||
+ | |||
+ | < | ||
+ | ifconfig -a | ||
+ | br0: flags=4163< | ||
+ | inet 192.168.0.130 | ||
+ | inet6 fe80:: | ||
+ | ether 4e: | ||
+ | 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< | ||
+ | ether 7c: | ||
+ | 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< | ||
+ | inet 127.0.0.1 | ||
+ | inet6 ::1 prefixlen 128 scopeid 0x10< | ||
+ | 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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | Permissions | ||
+ | |||
+ | < | ||
+ | mkdir -p /etc/qemu | ||
+ | echo "allow all" > / | ||
+ | chmod u+s / | ||
+ | </ | ||
+ | |||
+ | Example lease on bridge | ||
+ | |||
+ | < | ||
+ | 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: | ||
+ | uid " | ||
+ | set vendor-class-identifier = " | ||
+ | } | ||
+ | </ |