Host: CentOS4, Guest: Debian, apt-get not working, strange problems [message #581] |
Wed, 21 December 2005 18:22 |
|
Hello,
i have strange problems with my test server (CentOS4) and a debian sarge guest.
The sarge guest was created for linux vserver and worked there without problems. To test the migration from linux vserver to OpenVZ I try to run that guest on an OpenVZ host.
I just tar-ed everything on the vserver host and untar-ed it again in /vz/private/101
so far so good.
Then I executed the following steps:
vzctl set 101 --applyconfig vps.basic --save
echo "OSTEMPLATE=debian-3.1" >> /etc/vz/101.conf
vzctl set 101 --ipadd 10.10.201.101 --save
vzctl start 101
The guest runs now.
So I enter the guest via
Now there are a few problems:
proc is not mounted so I can't do df, ps, ifconfig, ...
The network does not work too.
I did the following:
mount -t proc proc /proc
/etc/init.d/networking start
Now the network works fine and proc is mounted.
The next step I tried to do was to update.
Ok, it downloads all package lists. Fine!
Now:
And I got the following error:
Quote: |
E: you don't have enough free space in /var/cache/apt/archives.
|
Strange, df -h says that I have about 5.3G of free space!
And even more strange: if I delete the package lists. He is able to download them again (no free space error).
FYI:
The the / and the /vz are one the same partition (ext3, defaults).
Another problem I have is that vzctl start 101 does NOT start the network and some other services and does not mount the proc, why?
I hope someone of you can help me.
Thank you
Bernhard, from Germany
|
|
|
|
|
|
|
Re: Host: CentOS4, Guest: Debian, apt-get not working, strange problems [message #589 is a reply to message #583] |
Thu, 22 December 2005 09:56 |
|
Absent /proc and no networking are clear signs of VServer - in OpenVZ it is VPS who should mount its /proc itself, and in VServer there is no normal networking, so it is not started. Use update-rc.d to add networking into boot process.
First of all, check /proc/user_beancounters inside your VPS -- if you see ones that were failing (last column - failcnt - is greater than zero), you should increase them accordingly (using vzctl set).
You should also usually check not just free blocks (df) but also free inodes (df -i) -- sometimes it happens that there are no more free inodes.
It is also recommended to have a separate /vz partition, for several reasons.
If nothing else works, try debugging apt-get using strace - so you could see the actual syscall and an error.
Also, you can try creating a Debian template from scratch, as described here.
Any problems - please ask.
Kir Kolyshkin
|
|
|
|
|
|
Re: Host: CentOS4, Guest: Debian, apt-get not working, strange problems [message #602 is a reply to message #581] |
Thu, 22 December 2005 21:56 |
|
Hi,
now I created a template using the howto from kir. /proc is mounted now and the network works too. But the apt-get problem is still there. I will do a strace in a few minutes and post my results. I hope this helps. I will also publish my precreated debian template. Maybe someone of you can download it and try if he sees the same error for apt-get install something (the same command for aptitude works).
Some further remarks:
If I use the same system via chroot apt-get works fine.
After some apt-get install command there is NO entry with a failcount>0 in /proc/user_beancounters.
Bernhard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|