|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
OpenBSD raw image and package installation
Hi,
In continues effort to create image for openstack environment (qcow2/raw) so far I am done with following steps but now I want to chroot image and install few packages like cloud-init and other packages in the image how can I do it? 1) #dd if=/dev/null of=/tmp/img.raw bs=1M seek=6*1024 2) # vnconfig vnd0 /tmp/img.raw 3) #fdisk -iy /dev/rvnd0c Writing MBR at offset 0. 4) # disklabel -A vnd0c disklabel -Aw vnd0d disklabel -Aw vnd0e 5) mounted it in following manner /dev/vnd0a on /home/openbsd/a type ffs (asynchronous, local, noatime) /dev/vnd0d on /home/openbsd/b type ffs (asynchronous, local, noatime, wxallowed) /dev/vnd0e on /home/openbsd/c type ffs (asynchronous, local, noatime) I want to install cloud init , java (java should be installed on /usr (/home/openbsd/b ) and configure my image with some other parameters. PS : My previous post http://daemonforums.org/showthread.php?t=11619 is some what similar but It was related to create partition for image.. |
|
||||
Can you not just use vmctl(8) to create a raw disk image and then run it under vmd(8) to install the system?
Reference: https://www.openbsd.org/faq/faq16.html
__________________
Are you infected with Wetiko? |
|
||||
|
|
|||
I cannot use built in hypervisor method (Vmm) as my build host is a vm which does not support nested virtulization. I think there is some method where I need to copy bsd.rd and other files (chroot I believe) .. in that phase I miss some part.
|
|
|||
Quote:
|
|
|||
Quote:
I would again like to ask a question (may be dumb question) related to /usr partition and image. Ideally, I am able to create single partition image with all packages and cloud init but when I tried to install java it failed because some pkgs require wxallowed flag on /usr in order to installed the pkgs- so If some how I manage to make /usr (may be other partition separate ) from single partition disk then my problem would solve I practically it would not possible but if you have any idea or suggestion then would be great.. |
|
||||
The mount(8) program can mount any FFS (version 1 or 2) filesystem with any of the options the that are discussed under the -o options flag in the mount(8) man page. These options can be used in the fourth field of an fstab(5) entry as described in the fstab(5) man page. As an example of the latter, here is one entry from my laptop's /etc/fstab file, with a string containing 6 different comma-separated options, including wxallowed:
Code:
84cf7725b144158a.j /usr/ports ffs rw,softdep,noatime,nodev,nosuid,wxallowed 1 2 |
Tags |
cloud, install, openstack |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD raw image creation with partitions | niks007 | OpenBSD General | 2 | 2nd December 2020 01:57 AM |
[OpenBSD] Customize Xenodm (background image , change keyboard , change xterm) | jonsec | OpenBSD General | 23 | 26th June 2020 12:19 AM |
Bootable OpenBSD system image | tetra_user | OpenBSD Installation and Upgrading | 3 | 23rd June 2014 07:08 AM |
PHP package stability in OpenBSD | ershiba | OpenBSD Packages and Ports | 1 | 4th January 2013 11:08 PM |
Error mounting installation image!!! | flameelement | FreeBSD Installation and Upgrading | 0 | 14th February 2009 10:24 PM |