Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxc-gentoo - script doesn't work !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bryn1u
n00b
n00b


Joined: 15 Jan 2013
Posts: 4

PostPosted: Fri Jul 18, 2014 4:58 am    Post subject: lxc-gentoo - script doesn't work ! Reply with quote

Hey,

I want to use ./lxc-gentoo create from /usr/share/tempates/lxc-gentoo, but always i getting this output:
Code:

ns321124 templates # ./lxc-gentoo create -n Oksymoron
### set_default_arch: default arch/variant autodetect...
 => Got: arch=amd64 variant=amd64
Attempting to obtain an exclusive lock (timeout: 60 sec) named "cache-amd64-amd64"...
 => done.
 => Executing "do_all"
##### container_setup(): starting container setup
### container_precheck(): doing some pre-start checks ...
#### container_rootfs(): copying rootfs /rootfs from cache /var/cache/lxc/gentoo/rootfs-amd64-amd64 ...
tar: /rootfs: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

[the last exit code leading to this death was: 2 ]

What's wrong ?
Back to top
View user's profile Send private message
gza0013
n00b
n00b


Joined: 19 Jan 2015
Posts: 2

PostPosted: Mon Jan 19, 2015 8:44 pm    Post subject: Re: lxc-gentoo - script doesn't work ! Reply with quote

Hi,

lxc templates are shell script but are not intended to be launched "directly"

You should use:
Code:

lxc-create -n Oksymoron -t gentoo


Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum