aboutsummaryrefslogtreecommitdiff
path: root/source/notes/2017-02-16-rc_khaganat_project.md
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-06-20 19:03:17 +0200
committerneodarz <neodarz@neodarz.net>2017-06-20 19:03:17 +0200
commit6dbdf013628321f9996efe4a90eaa03b8a8875a4 (patch)
tree0d48ee911685c9170ee7750b5cc21e117918a5d5 /source/notes/2017-02-16-rc_khaganat_project.md
parente11b17c3265cca97b244fa368391cdfe8dd182f0 (diff)
downloadmy_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.tar.xz
my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.zip
Fork of wiki.neodarz.net
Diffstat (limited to 'source/notes/2017-02-16-rc_khaganat_project.md')
-rw-r--r--source/notes/2017-02-16-rc_khaganat_project.md84
1 files changed, 84 insertions, 0 deletions
diff --git a/source/notes/2017-02-16-rc_khaganat_project.md b/source/notes/2017-02-16-rc_khaganat_project.md
new file mode 100644
index 00000000..2bf6ae50
--- /dev/null
+++ b/source/notes/2017-02-16-rc_khaganat_project.md
@@ -0,0 +1,84 @@
+---
+title: "rc_khaganat_project"
+date: 2017-02-16T09:14:00
+date_display: Feb 16, 2017
+---
+
+# Creation and configuration of the bridge interface with archlinux
+
+Debian based system ? no problem => [http://lesaventuresdeyannigdanslemondeit.blogspot.fr/2013/03/mise-en-place-dun-bridge-sous.html](http://lesaventuresdeyannigdanslemondeit.blogspot.fr/2013/03/mise-en-place-dun-bridge-sous.html)
+
+RTFM : [https://wiki.archlinux.org/index.php/Systemd-networkd#Bridge_interface](https://wiki.archlinux.org/index.php/Systemd-networkd#Bridge_interface)
+
+## Bridge interface
+
+Create a virtual bridge interface `/etc/systemd/network/MyBridge.netdev`
+
+```sh
+[NetDev]
+Name=br0
+Kind=bridge
+```
+
+
+## Bind ethernet to bridge
+
+Modify the `/etc/systemd/network/enp3s0.network` to remove the DHCP, as the bridge requires an interface to bind to with no IP, and add a key to bind this device to br0. Let us change its name to a more relevant one.
+
+```sh
+[Match]
+Name=en*
+
+[Network]
+Bridge=br0
+```
+
+## Bridge network
+
+Create a network profile for the Bridge `/etc/systemd/network/MyBridge.network`
+
+```sh
+[Match]
+Name=br0
+
+[Network]
+DHCP=ipv4
+```
+
+
+Finnaly restart `systemd-networkd.service`
+
+# Qemu config for use bridge
+
+RTFM : [https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper](https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper)
+
+Edit file (if folder not exist, create it) : `/etc/qemu/bridge.conf`
+
+```sh
+allow bridge0
+```
+
+# Start qemu
+
+RTFM : [https://khaganat.net/wikhan/fr:vm_server](https://khaganat.net/wikhan/fr:vm_server) & [https://khaganat.net/wikhan/fr:readonly:download](https://khaganat.net/wikhan/fr:readonly:download)
+
+My magic command :
+
+```sh
+/usr/bin/qemu-system-x86_64 \
+ -monitor stdio \
+ -soundhw ac97 \
+ -machine accel=kvm \
+ -m 256 \
+ -cdrom /home/neodarz/Téléchargements/VMdeKhanat/khanat-161115/khanat-161115.vmdk \
+ -hda /home/neodarz/Téléchargements/VMdeKhanat/khanat-161115/khanat-161115.vmdk \
+ -boot once=d,menu=off \
+ -net nic,vlan=0 \
+ -net user,vlan=0 \
+ -net nic,vlan=1 \
+ -net bridge,vlan=1,br=br0 \
+ -rtc base=localtime \
+ -name "ryzom core"
+```
+
+Some other docs : [https://khaganat.net/wikhan/fr:installer_vm_basique?s\[#documentation_sur_qemu](https://khaganat.net/wikhan/fr:installer_vm_basique?s\[#documentation_sur_qemu)