Vm's not booting after running service networking restart

tunamix

New Member
Apr 26, 2014
3
0
1
Hi All,

today i tried to edit my interfaces config and after i edited the file i tried to reload the configuration with the command service networking restart, at that point all my vm's froze and didn't respond….
so i tried rebooting the server to try if they worked after, well they didn't work after the reboot i get an error message when i try to start a vm, so i hope someone knows more

this is it:
start failed: command '/usr/bin/kvm -id 108 -chardev 'socket,id=qmp,path=/var/run/qemu-server/108.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/108.vnc,x509,password -pidfile /var/run/qemu-server/108.pid -daemonize -name WebServer-1 -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -k en-us -m 24000 -cpuunits 1000 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/108/vm-108-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap108i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=36:77:F6:21:37:C7,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: got timeout

my interfaces config:
auto lo
iface lo inet loopback


# for Routing
auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8086 -j DNAT --to 192.168.0.1:8086
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8086 -j DNAT --to 192.168.0.1:8086
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1935 -j DNAT --to 192.168.0.1:1935
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1935 -j DNAT --to 192.168.0.1:1935
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 192.168.0.2:80
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 192.168.0.2:80
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 110 -j DNAT --to 192.168.0.2:110
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 110 -j DNAT --to 192.168.0.2:110
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 143 -j DNAT --to 192.168.0.2:143
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 143 -j DNAT --to 192.168.0.2:143
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 25 -j DNAT --to 192.168.0.2:25
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 25 -j DNAT --to 192.168.0.2:25
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 192.168.0.2:21
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 192.168.0.2:21
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 5122 -j DNAT --to 192.168.0.2:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 5122 -j DNAT --to 192.168.0.2:22


post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.0.10:3389
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.0.10:3389
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1723 -j DNAT --to 192.168.0.10:1723
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1723 -j DNAT --to 192.168.0.10:1723
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 192.168.0.10:443
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 192.168.0.10:443





# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
address <removed>
netmask 255.255.255.0
network <removed>
broadcast <removed>
gateway <removed>
bridge_ports eth0
bridge_stp off
bridge_fd 0


iface vmbr0 inet6 static
address 2001:41D0:8:CA06::1
netmask 64
post-up /sbin/ip -f inet6 route add 2001:41D0:8:CAff:ff:ff:ff:ff dev vmbr0
post-up /sbin/ip -f inet6 route add default via 2001:41D0:8:CAff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del default via 2001:41D0:8:CAff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 2001:41D0:8:CAff:ff:ff:ff:ff dev vmbr0


auto eth1
iface eth1 inet static
address inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link
netmask inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link
network inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link.0
broadcast inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link


up /sbin/ip route add default via inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link.254 dev eth1 table inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link
up /sbin/ip rule add from inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link/32 table inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link
post-down /sbin/ip rule del from inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link/32 table inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link
post-down /sbin/ip route del default via inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link.254 dev eth1 table inet6 addr: fe80::225:90ff:feac:9057/64 Scope:Link

i hope someone can help or point me in the right direction!
 
Last edited:
Hi All,

After starting corosync and vgmanager everything seems to be working as usual, strange that these task did not run automatically after restarting my server...
 
Hi All,

After starting corosync and vgmanager everything seems to be working as usual, strange that these task did not run automatically after restarting my server...
vgmanager or rgmanager? How did you start vgmanager?