owncloud-archive / vm

Scripts to build an ownCloud community production VM - this was in use until 9.1.x releases. Since 10.0.1 we build appliances with Univention
https://www.univention.de/produkte/univention-app-center/app-katalog/owncloud/
23 stars 14 forks source link

[libvirt] Cannot access Internet #50

Open arjamizo opened 8 years ago

arjamizo commented 8 years ago

Steps to reproduce

  1. wget http://download.owncloud.org/community/production/vm/Ubuntu_14.04-owncloud-9.0.3-2.1-201606301727.qcow2.zip -O /tmp/owncloud.qcow2.zip
  2. cd /tmp; unzip /tmp/owncloud.qcow2.zip
virt-install --name=owncloud --ram=1548 --arch=x86_64 --vcpus=1 --check-cpu --cpuset=auto --os-type=linux --os-variant=virtio26 --serial pty --disk path=/tmp/Ubuntu_14.04-owncloud-9.0.3-2.1-201606301727.qcow2,device=disk,bus=virtio,size=500,cache=writethrough,format=qcow2 --network bridge=virbr0,model=virtio --graphics spice --autostart --import
  1. make you sure have got connection to the machine ping 192.168.122.29
root@owncloud:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:6e:13:93  
          inet addr:192.168.122.29  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe6e:1393/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:289 errors:0 dropped:2 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16315 (16.3 KB)  TX bytes:3589 (3.5 KB)
  1. virssh connect owncloud put there ping 8.8.8.8

    Expected behaviour

Ping should work

Actual behaviour

External websites are not accessible. Ping resolves the DNS (so dig google.com works fine), but pings are not received

System

Host Ubuntu 14.04

Libvirt version

libvirtd --version
libvirtd (libvirt) 1.2.2
enoch85 commented 8 years ago

@Kawohl This VM needs some love. Up for it? :)

arjamizo commented 8 years ago

@enoch85 @Kawohl so is there any chance that there might be something wrong with the machine? I feel like I remember that there was something about networking from guest OS... (or maybe it was about networking to "a guest VM..."... not sure.

JKawohl commented 8 years ago

uh bummer i am not to firm with qcow format, @jnweiger can you take a look please?

arjamizo commented 8 years ago

@Kawohl @jnweiger if you want I am even able to give you direct access to the VM via ssh

JKawohl commented 8 years ago

hmm this seems like a misconfiguration on the network side. As i said: im not really firm with qcow. Do you have bridge-utils installed?

arjamizo commented 8 years ago

@Kawohl yes, bridge-utils comes with qcow2 image, and the strange thing is that on other VM-s (where I have LetsChat for example) - everything works fine...