about summary refs log tree commit diff
path: root/tools/nm-guest-data/etc-motd-vm.in
blob: 10ae1f9fc8d2834e00f627f614d57d4eb3ed79a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
*** nm-in-vm:

find NetworkManager bind mounted at {{BASEDIR_NM}}
run `nm-env-prepare.sh setup --idx 1` to setup test interfaces

For example, configure NetworkManager with
  $ ./configure \
           --enable-address-sanitizer=no \
           --enable-compile-warnings=yes \
           --enable-concheck \
           --enable-config-plugin-ibft=yes \
           --enable-gtk-doc \
           --enable-ifcfg-rh=yes \
           --enable-ifcfg-suse \
           --enable-ifnet \
           --enable-ifupdown=yes \
           --enable-introspection \
           --enable-json-validation=yes \
           --enable-maintainer-mode \
           --enable-more-logging \
           --enable-more-warnings=error \
           --enable-ovs=yes \
           --enable-polkit=yes \
           --enable-teamdctl=yes \
           --enable-undefined-sanitizer=no \
           --enable-vala=yes \
           --enable-wimax \
           --localstatedir=/var \
           --prefix=/opt/test \
           --sysconfdir=/etc \
           --with-config-dhcp-default=internal \
           --with-config-dns-rc-manager-default=auto \
           --with-consolekit=yes \
           --with-consolekit=yes \
           --with-crypto=nss \
           --with-dhclient=yes \
           --with-dhcpcanon=yes \
           --with-dhcpcd=yes \
           --with-iwd=yes \
           --with-libnm-glib=yes \
           --with-modem-manager-1 \
           --with-netconfig=/bin/nowhere/netconfig \
           --with-nm-cloud-setup=yes \
           --with-nmcli=yes \
           --with-nmtui=yes \
           --with-ofono=yes \
           --with-resolvconf=/bin/nowhere/resolvconf \
           --with-session-tracking=systemd \
           --with-suspend-resume=systemd \
           --with-systemd-logind=yes \
           --with-valgrind=yes \
           --enable-tests="${NM_BUILD_TESTS:-yes}" \
           --with-more-asserts="${NM_BUILD_MORE_ASSERTS:-1000}" \
           "${NM_CONFIGURE_OTPS[@]}"
Test with:
  $ systemctl stop NetworkManager; /opt/test/sbin/NetworkManager --debug 2>&1 | tee -a /tmp/nm-log.txt

Or better, if using Fedora, configure with `contrib/fedora/rpm/configure-for-system.sh`,
subsequent `make && make install` will overwrite your system's NetworkManager,
and you can test it with `systemctl daemon-reload ; systemctl restart NetworkManager`.

Run NM-ci tests after creating eth1 with
`nm-env-prepare.sh --prefix eth -i 1 && sleep 1 && nmcli device connect eth1`.