OpenVZ Forum


Home » Mailing lists » Users » /etc/sysconfig/vz: No such file or directory
/etc/sysconfig/vz: No such file or directory [message #30419] Sun, 25 May 2008 02:39 Go to next message
Cliff Wells is currently offline  Cliff Wells
Messages: 30
Registered: June 2006
Member
Host OS: Gentoo x86_64

I was using vzctl from git for a long while but recently started having
this error whenever creating a VE:

/usr/share/vzpkg/functions: line 233: /etc/sysconfig/vz: No such file or directory
Warning: Variable TEMPLATE not found in /etc/sysconfig/vz; using default (/vz/template).
Unable to get full ostemplate name for ubuntu-8.04-i386-minimal
Creating VE private area (ubuntu-8.04-i386-minimal)

I checked and sure enough, there's no /etc/sysconfig/vz directory.

I tried uninstalling and reinstalling, uninstalling and installing from
portage... nothing seems to fix it.

Any suggestions?

Regards,
Cliff
Re: /etc/sysconfig/vz: No such file or directory [message #30420 is a reply to message #30419] Sun, 25 May 2008 02:56 Go to previous messageGo to next message
drescherjm is currently offline  drescherjm
Messages: 27
Registered: February 2008
Junior Member
On Sat, May 24, 2008 at 10:39 PM, Cliff Wells <cliff@develix.com> wrote:
> Host OS: Gentoo x86_64
>
> I was using vzctl from git for a long while but recently started having
> this error whenever creating a VE:
>
> /usr/share/vzpkg/functions: line 233: /etc/sysconfig/vz: No such file or directory
> Warning: Variable TEMPLATE not found in /etc/sysconfig/vz; using default (/vz/template).
> Unable to get full ostemplate name for ubuntu-8.04-i386-minimal
> Creating VE private area (ubuntu-8.04-i386-minimal)
>
> I checked and sure enough, there's no /etc/sysconfig/vz directory.
>
> I tried uninstalling and reinstalling, uninstalling and installing from
> portage... nothing seems to fix it.
>
This does not exist on gentoo. I have not tried ubuntu templates but
gentoo VEs work just fine. I am using openvz-2.6.24

John
Re: /etc/sysconfig/vz: No such file or directory [message #30421 is a reply to message #30419] Sun, 25 May 2008 03:00 Go to previous messageGo to next message
Cliff Wells is currently offline  Cliff Wells
Messages: 30
Registered: June 2006
Member
On Sat, 2008-05-24 at 19:39 -0700, Cliff Wells wrote:
> Host OS: Gentoo x86_64
> 
> I was using vzctl from git for a long while but recently started having
> this error whenever creating a VE:
> 
> /usr/share/vzpkg/functions: line 233: /etc/sysconfig/vz: No such file or directory
> Warning: Variable TEMPLATE not found in /etc/sysconfig/vz; using default (/vz/template).
> Unable to get full ostemplate name for ubuntu-8.04-i386-minimal
> Creating VE private area (ubuntu-8.04-i386-minimal)
> 
> I checked and sure enough, there's no /etc/sysconfig/vz directory.
> 
> I tried uninstalling and reinstalling, uninstalling and installing from
> portage... nothing seems to fix it.

Found it.  On Gentoo this file is in /etc/conf.d/vz... I guess this is a
Gentoo packaging bug.

Regards,
Cliff
Re: /etc/sysconfig/vz: No such file or directory [message #30422 is a reply to message #30419] Sun, 25 May 2008 02:54 Go to previous messageGo to next message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
On Sunday 25 May 2008 06:39:39 Cliff Wells wrote:
> Host OS: Gentoo x86_64
>
> I was using vzctl from git for a long while but recently started having
> this error whenever creating a VE:
>
> /usr/share/vzpkg/functions: line 233: /etc/sysconfig/vz: No such file or
> directory Warning: Variable TEMPLATE not found in /etc/sysconfig/vz; using
> default (/vz/template). Unable to get full ostemplate name for
> ubuntu-8.04-i386-minimal
> Creating VE private area (ubuntu-8.04-i386-minimal)
>
> I checked and sure enough, there's no /etc/sysconfig/vz directory.
>
> I tried uninstalling and reinstalling, uninstalling and installing from
> portage... nothing seems to fix it.
>
> Any suggestions?
/etc/sysconfig/vz was moved to /etc/vz/vz.conf long time ago, while symlink 
was provided by vzctl package for backward compatibility. Looks like now it 
is broken. Workaround - change line 233 in /usr/share/vzpkg/functions to 
point to /etc/vz/vz.conf

>
> Regards,
> Cliff
>
-- 
Thanks,
Dmitry.
Re: /etc/sysconfig/vz: No such file or directory [message #30453 is a reply to message #30419] Sun, 25 May 2008 03:25 Go to previous message
Dmitry Mishin is currently offline  Dmitry Mishin
Messages: 1
Registered: May 2008
Junior Member
Fixed getting configs by old paths. Thanks to Cliff Wells for noticing this.
------------
diff --git a/functions b/functions
index c3d2d1f..a977b39 100644
--- a/functions
+++ b/functions
@@ -15,14 +15,23 @@ test -z "$DEBUG_LEVEL"	&& DEBUG_LEVEL=3
 # Some handy definitions
 VZCTL=/usr/sbin/vzctl
 VZLOCKDIR=/vz/lock
-VECFGDIR=/etc/sysconfig/vz-scripts/
-VZCFG=/etc/sysconfig/vz
+VECFGDIR_OLD=/etc/sysconfig/vz-scripts/
+VZCFG_OLD=/etc/sysconfig/vz
+VECFGDIR=/etc/vz/conf/
+VZCFG=/etc/vz/vz.conf
 VZLIB_SCRIPTDIR=/usr/lib/vzctl/scripts
 YUM=/usr/share/vzyum/bin/yum
 ARCHES="i386 x86_64 ia64 x86"
 
-# Handy functions
+# check that configs are in right place - use old values otherwise
+if ! test -d "$VECFGDIR"; then
+	VECFGDIR=$VECFGDIR_OLD
+fi
+if ! test -f "$VZCFG"; then
+	VZCFG=$VZCFG_OLD
+fi
 
+# Handy functions
 
 # Generic log; please use logN instead.
 function log()
Previous Topic: New to the List, Great Project!
Next Topic: Problem starting Ubuntu 8.04
Goto Forum:
  


Current Time: Tue Mar 19 10:35:06 GMT 2024

Total time taken to generate the page: 0.02517 seconds