Difference between revisions of "Vnx-rootfslxcdebian"
(Created page with "{{Title|How to create a LXC Ubuntu/Debian root filesystem for VNX}} DRAFT, DRAFT, DRAFT...not finished yet == Basic installation == Follow this procedure to create a LXC U...") |
|||
Line 1: | Line 1: | ||
− | {{Title|How to create a LXC | + | {{Title|How to create a LXC Debian root filesystem for VNX}} |
DRAFT, DRAFT, DRAFT...not finished yet | DRAFT, DRAFT, DRAFT...not finished yet | ||
Line 6: | Line 6: | ||
== Basic installation == | == Basic installation == | ||
− | Follow this procedure to create a LXC | + | Follow this procedure to create a LXC Debian based root filesystem for VNX. The procedure has been tested creating a Debian 7 over an Ubuntu 13.10 host. |
<ul> | <ul> | ||
Line 30: | Line 30: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get dist-upgrade | sudo apt-get dist-upgrade | ||
− | + | ||
+ | apt-get install aptsh openssh-server traceroute telnet nmap apache2 wget tcpdump | ||
+ | |||
<li>Change VM name in hosts and hostname files:</li> | <li>Change VM name in hosts and hostname files:</li> | ||
sudo vi /etc/hosts # change name to vnx | sudo vi /etc/hosts # change name to vnx |
Revision as of 22:57, 4 May 2014
How to create a LXC Debian root filesystem for VNX
DRAFT, DRAFT, DRAFT...not finished yet
Basic installation
Follow this procedure to create a LXC Debian based root filesystem for VNX. The procedure has been tested creating a Debian 7 over an Ubuntu 13.10 host.
- Create the rootfs with:
lxc-create -t ubuntu -n vnx_rootfs_lxc_ubuntu-13.10
Note1: Change "ubuntu" by "debian" in case you want to create a Debian rootfs. 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 debian -n vnx_rootfs_lxc_debian
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
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