You are not logged in.

#1 2018-08-16 01:35:16

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

[SOLVED]vde_switch: Caught signal 15, cleaning up and exiting at boot

I try to make VDE network for QEMU at boot.

make_vde_for_qemu.service:

[Unit]
Description=Configure VDE2 network for QEMU purpose
Before=network.target
Wants=network.target

[Service]
Type=idle
ExecStart=/usr/local/bin/make_vde_for_qemu

[Install]
WantedBy=multi-user.target

make_vde_for_qemu script:

#!/bin/bash

# Configure VDE2 network for QEMU purpose.

# Create tap interface for vde_switch, set ip up and assign IP address
ip tuntap add dev vde_tap0 mode tap user user1
ip link set vde_tap0 up
ip addr add 192.168.2.1/24 dev vde_tap0

# Create the virtual switch
vde_switch -tap vde_tap0 -daemon -mod 660 -group users

journalctl -b listing:

vde_switch[461]: VDE_SWITCH started
vde_switch[462]: Caught signal 15, cleaning up and exiting

I have to run "vde_switch -tap vde_tap0 -daemon -mod 660 -group users" manually every time after boot.

Last edited by Kirill Bugaev (2018-08-16 15:04:44)

Offline

#2 2018-08-16 05:41:49

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]vde_switch: Caught signal 15, cleaning up and exiting at boot

I'd say that "-daemon" probably forks, the script terminates and system kills the child process… try "Type=forking"

Offline

#3 2018-08-16 14:28:43

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: [SOLVED]vde_switch: Caught signal 15, cleaning up and exiting at boot

seth wrote:

I'd say that "-daemon" probably forks, the script terminates and system kills the child process… try "Type=forking"

It works. Thanks.

Offline

#4 2018-08-16 14:38:45

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]vde_switch: Caught signal 15, cleaning up and exiting at boot

Great.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB