Difference between revisions of "Vnx-rootfsopenbsd"
(→Configuration) |
|||
Line 40: | Line 40: | ||
<li>Loogin as root in the console and configure the network with DHCP:</li> | <li>Loogin as root in the console and configure the network with DHCP:</li> | ||
dhclient re0 | dhclient re0 | ||
+ | <li>Configure the environment variable with network repository:</li> | ||
+ | export PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/ | ||
+ | <li>Install bash and change package repository (change ftp.es.freebsd.org to your nearest mirror):</li> | ||
+ | pkg_add -r bash | ||
+ | usermod -s /usr/local/bin/bash root | ||
+ | usermod -s /usr/local/bin/bash vnx | ||
+ | echo "export PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/" > ~/.bash_profile | ||
+ | <li>Install XML::LibXML and NetAddr-IP perl libraries:</li> | ||
+ | pkg_add -r p5-XML-LibXML p5-NetAddr-IP | ||
+ | <li>Install VNX autoconfiguration daemon:</li> | ||
+ | mount_msdos /dev/wd1i /mnt | ||
+ | perl /mnt/vnxaced-lf/install_vnxaced | ||
+ | <li>Create a file /etc/vnx_rootfs_version to store version number and informacion about modification:</li> | ||
+ | VER=v0.25 | ||
+ | OS=OpenBSD 5.8 | ||
+ | DESC=Basic OpenBSD 5.8 root filesystem without GUI | ||
+ | |||
<li>Configure the serial console by editting /etc/ttys file and changing the line:</li> | <li>Configure the serial console by editting /etc/ttys file and changing the line:</li> |
Revision as of 18:03, 2 May 2016
How to create a KVM OpenBSD root filesystem for VNX
Follow this procedure to create a KVM OpenBSD based root filesystem for VNX. The procedure has been tested with OpenBSD 5.8.
Basic installation
- Create the filesystem disk image:
qemu-img create -f qcow2 vnx_rootfs_kvm_openbsd.qcow2 12G
wget http://ftp.eu.openbsd.org/pub/OpenBSD/5.8/amd64/install58.iso cp install58.iso /almacen/iso
vnx --create-rootfs vnx_rootfs_kvm_openbsd64.qcow2 --install-media /almacen/iso/openbsd-install58.iso --mem 512M --arch=x86_64
chroot /mnt config -ef /bsd disable mpbios quit
halt -p
The OS installer will offer to reboot, but do not do that. Instead, kill the VM window and then, in the host OS, interrupt with Ctrl-C the kvm program.
Configuration
- Start the system with the following command:
vnx --modify-rootfs vnx_rootfs_kvm_openbsd.qcow2 --update-aced --mem 512M --arch x86_64
Note: ignore the errors "timeout waiting for response on VM socket".
# virsh list Id Name State ---------------------------------------------------- 31 vnx_rootfs_kvm_openbsd64-5.8-v025.qcow2-912 running # virsh console 31
dhclient re0
export PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/
pkg_add -r bash usermod -s /usr/local/bin/bash root usermod -s /usr/local/bin/bash vnx echo "export PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/" > ~/.bash_profile
pkg_add -r p5-XML-LibXML p5-NetAddr-IP
mount_msdos /dev/wd1i /mnt perl /mnt/vnxaced-lf/install_vnxaced
VER=v0.25 OS=OpenBSD 5.8 DESC=Basic OpenBSD 5.8 root filesystem without GUI
tty00 "/usr/libexec/getty std.9600" dialup off secure
to:
tty00 "/usr/libexec/getty std.9600" vt100 on secure