Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openruko - Using a full ubuntu OS #8

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

maxired
Copy link

@maxired maxired commented Dec 5, 2012

Hi,

if your are interested, I setuped a version using a full Ubuntu OS inside the container.
With this approach , the rootfs is not shared between the host and the container.

The different instances of the container use the same folder for /bin /usr and so on.

Because we setup a full linux, we need the /sbin/init to be launched : we cannot give the command in the lxc-start command.
For this, I created a new upstart file '/etc/init/openrukolaunch.conf' inside the lxc-container.

The only thing needed is to launch a dhcp server for providing an IP address to the container.

sudo dhcpd -f

Here is what is setted in my DHCP configuration file /etc/dhcp/dhcpd.conf

DHCPDARGS=lxcbr0;

subnet 10.0.3.0 netmask 255.255.255.0 {
    range 10.0.3.10 10.0.3.80;
   option routers 10.0.3.1;
 }

The main goal of all this is to ahve a better isolation of the host and the container.
Please let me know if you like this approach, and if you like it, in which direction you want to go next.

@echo "Install npm modules"
npm install .
@echo "Optionally run make certs to generate test certs"
sudo mount -o bind templates /usr/lib/lxc/templates
sudo lxc-create -t openrutu -n openrutu-model
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why openrutu?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name has been choosed in reference to ubuntu. Maybe openruntu would have
been a better choice.
This hase been done to allow us to make a new templates with another OS,
for exampe for a fedora based, openroda.

On Thu, Dec 6, 2012 at 9:58 AM, Romain notifications@github.com wrote:

In Makefile:

@echo "Install npm modules"
npm install .
@echo "Optionally run make certs to generate test certs"
  • sudo mount -o bind templates /usr/lib/lxc/templates
  • sudo lxc-create -t openrutu -n openrutu-model

why openrutu?


Reply to this email directly or view it on GitHubhttps://github.com//pull/8/files#r2332271.

@Filirom1
Copy link
Member

Filirom1 commented Dec 6, 2012

This PR fix #5.

Thank you @maxired.
But could you please check my comments.

Cheers
Romain

@@ -115,8 +124,13 @@ cat <<CONFIG >$lxc_dir/$dyno_id/config
lxc.utsname = $dyno_id
lxc.pts = 1024
lxc.tty = 4
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to remove the 4 ttys, you need to change this

@maxired
Copy link
Author

maxired commented Dec 12, 2012

Any plan to merge this ?

@Filirom1
Copy link
Member

I need some time to test it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants