ovirt / ovirt-node Goto Github PK
View Code? Open in Web Editor NEWThis is a mirror for http://gerrit.ovirt.org, for issues use http://bugzilla.redhat.com
License: GNU General Public License v2.0
This is a mirror for http://gerrit.ovirt.org, for issues use http://bugzilla.redhat.com
License: GNU General Public License v2.0
Some notes on node image deployment Nodes are provided in ISO format. These ISO images can be deployed by either: 1. Writing the image to a CD 2. Writing the image to USB flash using livecd-iso-to-disk utility 3. Creating pxe bootable files using livecd-iso-to-pxeboot utility To burn a Node image to a usb stick accessible as /dev/sdb: livecd-iso-to-disk --format /usr/share/ovirt-node-image/ovirt-node-image.iso /dev/sdb To create vmlinuz and initrd images suitable for pxe booting: livecd-iso-to-pxeboot /usr/share/ovirt-node-image/ovirt-node-image.iso The output of livecd-iso-to-pxeboot is a directory called tftpboot that has the following files in it: ./pxelinux.0 ./pxelinux.cfg/default ./vmlinuz0 ./initrd0.img The vmlinuz0/initrd0.img files can be imported into a cobbler server or any other PXE/tftp server. pxelinux.cfg/default provides a template for configuring the pxe server to export the Node image: DEFAULT pxeboot TIMEOUT 20 PROMPT 0 LABEL pxeboot KERNEL vmlinuz0 APPEND rootflags=loop initrd=initrd0.img root=/ovirt-node-image.iso rootfstype=auto ro liveimg check rootfstype=iso9660 elevator=deadline ONERROR LOCALBOOT 0 In addition, PXE booted Nodes rely on the PXE server passing the mac address of the pxe interface to the kernel. This is provided by using the IPAPPEND 2 parameter as follows: DEFAULT pxeboot TIMEOUT 20 PROMPT 0 LABEL pxeboot KERNEL vmlinuz0 IPAPPEND 2 APPEND rootflags=loop initrd=initrd0.img root=/ovirt-node-image.iso rootfstype=auto ro liveimg check rootfstype=iso9660 elevator=deadline ONERROR LOCALBOOT 0 THE DRY MODE ============================ oVirt Node provides a way to simulate/debug the installer or the menu setup without need to generate an iso, it's possible use RHEL/Centos/Fedora based distro, this schema is called the 'dry mode'. First, clone the repo, install needed packages and create default ovirt file: $ git clone git://gerrit.ovirt.org/ovirt-node $ cd ovirt-node $ sudo yum install PyPAM cracklib-python python-gudev python-urwid python-augeas python-lxml -y $ sudo touch /etc/default/ovirt RHEL/CentOS <= 6 ============================ Simulating the installer locally: $ovirt-node> cd src $ovirt-node/src> python -m ovirt.node.installer.__main__ --debug --dry Simulating the setup locally: $ovirt-node> cd src $ovirt-node/src> python -m ovirt.node.setup.__main__ --debug --dry Fedora or CentOS/RHEL >= 7 ============================ Simulating the installer locally: $ovirt-node> cd src $ovirt-node/src> python -m ovirt.node.installer --debug --dry Simulating the setup locally: $ovirt-node> cd src $ovirt-node/src> python -m ovirt.node.setup --debug --dry Log available at: /tmp/ovirt-node.debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.