jails How to create a ubuntu jail?

ubuntu {
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
allow.raw_sockets;
exec.clean;
mount.devfs;
host.hostname = "${name}";
path = "/compat/ubuntu";
ip4.addr = 1.1.1.5;
interface = tap0;
}

# service jail start ubuntu
Starting jails: cannot start jail "ubuntu":
14
jail: ubuntu: getpwnam: No such file or directory
jail: ubuntu: /bin/sh /etc/rc: failed
 
TLDR: does jail have /etc/master.passwd and password database?

I've stumbled upon the same issue recently when setting up an Alpine Linux jail. This thread helped me:
 
TLDR: does jail have /etc/master.passwd and password database?

I've stumbled upon the same issue recently when setting up an Alpine Linux jail. This thread helped me:
Thanks, and how to solve the
jail: ubuntu: /bin/sh /etc/rc: failed problem?
I also tried /etc/init.d/rc, but it's same result.
 
Back
Top