Difference between revisions of "Vnx-rootfslxc"
Line 1: | Line 1: | ||
− | {{Title|How to create a LXC Ubuntu | + | {{Title|How to create a LXC Ubuntu root filesystem for VNX}} |
== Basic installation == | == Basic installation == | ||
− | Follow this procedure to create a | + | Follow this procedure to create a Ubuntu based LXC root filesystem for VNX. The procedure has been tested over Ubuntu 13.10. |
<ul> | <ul> | ||
<li>Create the rootfs with:</li> | <li>Create the rootfs with:</li> | ||
lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu-13.10 | lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu-13.10 | ||
− | Note1: | + | Note1: The default username/password is ubuntu/ubuntu.<br> |
Note2: use linux32 command to create a 32 bits image from a 64 bits machine, that is: | Note2: use linux32 command to create a 32 bits image from a 64 bits machine, that is: | ||
− | linux32 lxc-create -t | + | linux32 lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu |
<li>Move the rootfs to VNX filesystems directory:</li> | <li>Move the rootfs to VNX filesystems directory:</li> | ||
mv /var/lib/lxc/vnx_rootfs_lxc_ubuntu-13.10/ /usr/share/vnx/filesystems/ | mv /var/lib/lxc/vnx_rootfs_lxc_ubuntu-13.10/ /usr/share/vnx/filesystems/ |
Revision as of 22:55, 4 May 2014
How to create a LXC Ubuntu root filesystem for VNX
Basic installation
Follow this procedure to create a Ubuntu based LXC root filesystem for VNX. The procedure has been tested over Ubuntu 13.10.
- Create the rootfs with:
lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu-13.10
Note1: The default username/password is ubuntu/ubuntu.
Note2: use linux32 command to create a 32 bits image from a 64 bits machine, that is:
linux32 lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu
mv /var/lib/lxc/vnx_rootfs_lxc_ubuntu-13.10/ /usr/share/vnx/filesystems/
lxc.rootfs = /usr/share/vnx/filesystems/vnx_rootfs_lxc_ubuntu-13.10/rootfs lxc.mount = /usr/share/vnx/filesystems/vnx_rootfs_lxc_ubuntu-13.10/fstab
lxc-start -n vnx_rootfs_lxc_ubuntu-13.10-v025 -f /usr/share/vnx/filesystems/vnx_rootfs_lxc_ubuntu-13.10/config
- Add VNX user and change the passwords:
sudo adduser vnx sudo adduser vnx sudo sudo passwd root
sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install aptsh openssh-server traceroute telnet nmap apache2 wget tcpdump
sudo vi /etc/hosts # change name to vnx sudo vi /etc/hostname # "
halt
cd /usr/share/vnx/filesystems ln -s vnx_rootfs_lxc_ubuntu-13.10 rootfs_lxc