Difference between revisions of "Vnx-rootfskvmvyos"
(→Basic installation) |
(→Installation) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Title|How to create a KVM VyOS root filesystem for VNX}} | {{Title|How to create a KVM VyOS root filesystem for VNX}} | ||
− | == | + | == Installation == |
− | + | [https://vyos.io/en/ 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 [https://en.wikipedia.org/wiki/Vyatta Vyatta]. | |
Follow this procedure as a root user to create a VyOS based KVM root filesystem for VNX. The procedure has been tested with VyOS 1.1.7 over a Ubuntu 16.04 system. | Follow this procedure as a root user to create a VyOS based KVM root filesystem for VNX. The procedure has been tested with VyOS 1.1.7 over a Ubuntu 16.04 system. | ||
Line 15: | Line 15: | ||
<li>Create the virtual machine with:</li> | <li>Create the virtual machine with:</li> | ||
vnx --create-rootfs vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 --install-media /almacen/iso/vyos-1.1.7-amd64.iso --mem 512M --arch x86_64 | vnx --create-rootfs vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 --install-media /almacen/iso/vyos-1.1.7-amd64.iso --mem 512M --arch x86_64 | ||
+ | <li>Login with vyos/vyos and execute:</li> | ||
+ | install image | ||
+ | <li>Answer all the installation questions with the default values. Once installed, stop the virtual machine with:</li> | ||
+ | poweroff | ||
+ | <li>Restart the VM with:</li> | ||
+ | vnx --modify-rootfs vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 --update-aced --mem 512M --arch x86_64 | ||
+ | <li>Install VNX autoconfiguration daemon:</li> | ||
+ | sudo su | ||
+ | mount /dev/sdb /mnt/ | ||
+ | perl /mnt/vnxaced-lf/install_vnxaced | ||
+ | <li>Create a file /etc/vnx_rootfs_version to store version number and informacion about modification:</li> | ||
+ | <pre> | ||
+ | VER=v0.25 | ||
+ | OS=VyOS (Debian 6.0.10 64 bits) | ||
+ | DESC=Basic VyOS Linux based network operating system (Debian 6.0.10 64 bits) root filesystem | ||
+ | </pre> | ||
+ | <li>Enter using vyos/vyos user/password and create the vnx/xxxx user and enable ssh access with:</li> | ||
+ | exit # to exit 'sudo su' and come back to user vyos | ||
+ | configure | ||
+ | set system login user vnx full-name "VNX project" | ||
+ | set system login user vnx authentication plaintext-password xxxx | ||
+ | set system login user vnx level admin | ||
+ | set service ssh port 22 | ||
+ | commit | ||
+ | save | ||
+ | exit | ||
+ | <li>Stop the machine with vnx_halt: </li> | ||
+ | sudo vnx_halt | ||
+ | </ul> | ||
− | + | == Testing == | |
+ | |||
+ | You can test the rootfilesystem with the following tutorial example: | ||
+ | vnx -f /usr/share/vnx/examples/tutorial_vyos.xml -v -t |
Latest revision as of 13:04, 30 August 2017
How to create a KVM VyOS root filesystem for VNX
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 as a root user to create a VyOS based KVM root filesystem for VNX. The procedure has been tested with VyOS 1.1.7 over a Ubuntu 16.04 system.
- Create the filesystem disk image:
qemu-img create -f qcow2 vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 8G
wget http://packages.vyos.net/iso/release/1.1.7/vyos-1.1.7-amd64.iso cp vyos-1.1.7-amd64.iso /almacen/iso
vnx --create-rootfs vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 --install-media /almacen/iso/vyos-1.1.7-amd64.iso --mem 512M --arch x86_64
install image
poweroff
vnx --modify-rootfs vnx_rootfs_kvm_vyos64-1.1.7-v025.qcow2 --update-aced --mem 512M --arch x86_64
sudo su mount /dev/sdb /mnt/ perl /mnt/vnxaced-lf/install_vnxaced
VER=v0.25 OS=VyOS (Debian 6.0.10 64 bits) DESC=Basic VyOS Linux based network operating system (Debian 6.0.10 64 bits) root filesystem
exit # to exit 'sudo su' and come back to user vyos configure set system login user vnx full-name "VNX project" set system login user vnx authentication plaintext-password xxxx set system login user vnx level admin set service ssh port 22 commit save exit
sudo vnx_halt
Testing
You can test the rootfilesystem with the following tutorial example:
vnx -f /usr/share/vnx/examples/tutorial_vyos.xml -v -t