Difference between revisions of "Vnx-rootfslxcvyos"
(→Basic installation) |
|||
Line 7: | Line 7: | ||
Follow this procedure to create a VyOS based LXC root filesystem for VNX. The procedure has been tested with VyOS 1.1.7. | Follow this procedure to create a VyOS based LXC root filesystem for VNX. The procedure has been tested with VyOS 1.1.7. | ||
− | + | <ul> | |
− | + | <li>Get VyOS installation CD and mount it to make its content accesible:</li> | |
wget http://packages.vyos.net/iso/release/1.1.7/vyos-1.1.7-amd64.iso | wget http://packages.vyos.net/iso/release/1.1.7/vyos-1.1.7-amd64.iso | ||
+ | mount -o loop vyos-1.1.7-amd64.iso /mnt/ | ||
+ | <li>Create a Debian LXC rootfs with:</li> | ||
+ | lxc-create -n vyos -t debian -- -r wheezy | ||
+ | <li>Substitute the rootfs directory of the newly created container by the VyOS one:</li> | ||
+ | cd /var/lib/lxc/vyos | ||
+ | rm -rf /var/lib/lxc/vyos/rootfs/ | ||
+ | unsquashfs /mnt/live/filesystem.squashfs | ||
+ | mv squashfs-root/ rootfs |
Revision as of 18:23, 29 August 2017
How to create a LXC VyOS root filesystem for VNX
Basic installation
[VyOS] is an open source network operating system that is based on Debian GNU/Linux and that joins multiple applications such as Quagga, ISC DHCPD, OpenVPN, StrongS/WAN and others under a single management interface. It can be installed on physical hardware or on virtual machines and it is a community fork of [Vyatta].
Follow this procedure to create a VyOS based LXC root filesystem for VNX. The procedure has been tested with VyOS 1.1.7.
- Get VyOS installation CD and mount it to make its content accesible:
wget http://packages.vyos.net/iso/release/1.1.7/vyos-1.1.7-amd64.iso mount -o loop vyos-1.1.7-amd64.iso /mnt/
lxc-create -n vyos -t debian -- -r wheezy
cd /var/lib/lxc/vyos rm -rf /var/lib/lxc/vyos/rootfs/ unsquashfs /mnt/live/filesystem.squashfsmv squashfs-root/ rootfs