Thanks you for the cryptic reply :-)
It took me a while to figure out what you meant.
In any case, I am trying to manually bring up ethernet bridge connectivity between a VM and a Linux host. Even before I try any of the openvpn server and client configuration and installation, i was trying to manually create a tap interface.
I used the openvpn utility to do this and I find that the tap interface on the VM does not have carrier (NO-CARRIER).
The only other relevant information that I can think of is netstat:
netstat -a -n
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:34151 0.0.0.0:* LISTEN
tcp 0 0 12.1.1.2:39790 169.254.169.254:80 TIME_WAIT
tcp 0 0 12.1.1.2:39794 169.254.169.254:80 ESTABLISHED
tcp 0 0 12.1.1.2:39795 169.254.169.254:80 ESTABLISHED
tcp 451 0 127.0.0.1:33331 127.0.0.1:33331 ESTABLISHED
tcp 0 0 12.1.1.2:22 192.168.1.226:46373 ESTABLISHED
tcp 0 0 12.1.1.2:39793 169.254.169.254:80 TIME_WAIT
tcp 0 0 12.1.1.2:39791 169.254.169.254:80 TIME_WAIT
tcp 0 0 12.1.1.2:39792 169.254.169.254:80 TIME_WAIT
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
udp 0 0 0.0.0.0:59123 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:760 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 7726 /dev/log
unix 2 [ ACC ] STREAM LISTENING 765 @/com/ubuntu/upstart
unix 2 [ ] DGRAM 839 @/org/kernel/udev/udevd
unix 3 [ ] STREAM CONNECTED 224023
unix 3 [ ] STREAM CONNECTED 224022
unix 2 [ ] DGRAM 224020
unix 2 [ ] DGRAM 134537
unix 2 [ ] DGRAM 2744
unix 2 [ ] DGRAM 7784
unix 3 [ ] DGRAM 870
unix 3 [ ] DGRAM 869
unix 3 [ ] STREAM CONNECTED 826 @/com/ubuntu/upstart
unix 3 [ ] STREAM CONNECTED 823
output of lsmod:
lsmod
Module Size Used by
macvtap 17980 0
macvlan 18842 1 macvtap
bridge 90294 0
stp 12931 1 bridge
psmouse 73608 0
serio_raw 13208 0
i2c_piix4 13287 0
acpiphp 23989 0
virtio_balloon 13109 0
joydev 17597 0
usbhid 46754 0
hid 95075 1 usbhid
floppy 73839 0
Command used on the VM:
/usr/sbin/openvpn --mktun --dev tap1
Operating system:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
uname -a
Linux ip-10-66-210-99 3.0.0-32-virtual #51~lucid1-Ubuntu SMP Fri Mar 22 18:13:07 UTC 2013 x86_64 GNU/Linux
Not sure if the openvpn.conf is pertinent since I am not yet trying to establish connectivity, but here it is in any case:
more openvpn.conf
tls-client
remote 192.168.1.226 # your server ip
nobind
port 1194
proto udp
dev tap0
ca /etc/openvpn/ca.crt
cert /etc/openvpn/demo-vm1.crt
key /etc/openvpn/demo-vm1.key
dh /etc/openvpn/dh1024.pem
keepalive 5 15
#cipher none
#auth none
#comp-lzo
user nobody
group users
persist-key
persist-tun
status openvpn-status.log
verb 4
tun-mtu 1500
fragment 1372
mssfix 1282
passtos
What other information can be useful in debugging this? I have scanned through /var/log/syslog and cannot find anything useful there.