Sorry if this is a noob question. Im trying to learn some stuff with OpenVZ.
I installed OpenVZ using this tutorial and created some VM's. The issue im having now is that when i enter a VM (vzctl enter 101) an do something like "yum update", i get the following error.
# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock: (28, 'connect() timed out!')
Error: Cannot find a valid baseurl for repo: base
When i do a ping in that vm, i get this error:
# ping www.google.com
ping: unknown host www.google.com
In my /etc/resolv.conf, this is the contents:
nameserver 8.8.8.8
nameserver 8.8.8.8
Please note that if i exit out of the VM and run yum update, or any pings on the Master it works fine as expected. The issue lies when i log into any vm's.
I hope someone can guide me in the right direction.
Thank you in advance.
I installed OpenVZ using this tutorial and created some VM's. The issue im having now is that when i enter a VM (vzctl enter 101) an do something like "yum update", i get the following error.
# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock: (28, 'connect() timed out!')
Error: Cannot find a valid baseurl for repo: base
When i do a ping in that vm, i get this error:
# ping www.google.com
ping: unknown host www.google.com
In my /etc/resolv.conf, this is the contents:
nameserver 8.8.8.8
nameserver 8.8.8.8
Please note that if i exit out of the VM and run yum update, or any pings on the Master it works fine as expected. The issue lies when i log into any vm's.
I hope someone can guide me in the right direction.
Thank you in advance.