From 6dbdf013628321f9996efe4a90eaa03b8a8875a4 Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 20 Jun 2017 19:03:17 +0200 Subject: Fork of wiki.neodarz.net --- source/notes/2017-02-16-rc_khaganat_project.md | 84 ++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 source/notes/2017-02-16-rc_khaganat_project.md (limited to 'source/notes/2017-02-16-rc_khaganat_project.md') 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) -- cgit v1.2.1