Comments (8)
There are three roles here.
After pushing my roles to the github, I will probably do your first part.
from depenguin-run.
Then I'm looking into building rescue ISOs on various Linux distributions.
And if you need my help with Ansible, you can tag me.
from depenguin-run.
There are three roles here. After pushing my roles to the github, I will probably do your first part.
I wrote the role.
Linux. Running QEMU with (or without) ISO and connecting block devices (HDD/SSD) of the host machine.
Using this role, you can run ISO with installers of various operating systems (including those with a graphical interface) and various service disks.
For your project, you need to add a role that first builds MfsBSD with new options, ssh keys, and archives of FreeBSD itself.
But I see the need to first create roles to create a Linux rescue ISO (based on different Linux distributions with different package managers).
from depenguin-run.
awesome stuff, will have another look when I have some capacity.
I'll probably try a simpler version to gain some experience with ansible, which would connect to IP in rescue mode, download depenguin.me script and run it, then connect again to qemu instance, and run the configured unattended bsdinstall script, then reboot.
nothing needed to configure for mfsbsd or downloading ISOs, it's all configured already.
from depenguin-run.
Your script mfsbsd-13.1-script/depenguinme.sh
also downloads mfsbsd image:
https://github.com/depenguin-me/mfsbsd-13.1-script/blob/ae8e1d3433805bf63a867475b7f59cce83237e74/depenguinme.sh#L232-L233
You are also manually trying to find block devices.
https://github.com/depenguin-me/mfsbsd-13.1-script/blob/ae8e1d3433805bf63a867475b7f59cce83237e74/depenguinme.sh#L235-L244
You can use bsdinstall, but this is a manual mode that cannot be automated...
Leave the shell script mfsbsd-13.1-script/depenguinme.sh
as is. Perhaps obvious issues will have to be fixed.
Ansible roles will live their own separate lives.
Self-written scripts for installing FreeBSD from LiveCD FreeBSD will also live their own life.
Nothing prevents the authors from changing my Ansible role (click0/ansible-freebsd-install-on-zfs-lite) to fit their script options.
from depenguin-run.
Your script
mfsbsd-13.1-script/depenguinme.sh
also downloads mfsbsd image:
yup so there's no need for ansible to do the same, just to run the script.
You are also manually trying to find block devices.
this is because a cdrom might exist on sdb in the rescue system
You can use bsdinstall, but this is a manual mode that cannot be automated...
this isn't accurate, see unattended bsdinstall
https://depenguin.me/bsdinstall.html
in this case ansible would simply write values to the depenguin_settings.sh
file and run depenguin_bsdinstall.sh
. At least that's how I'd set it up. I wouldn't be locked into ansible, I could use same script with saltstack too.
from depenguin-run.
I have a working ansible setup here: https://github.com/depenguin-me/depenguinme-ansible
It uses the depenguin.me mfsbsd instance. Tested working with AX41, two spindle disks.
Still needs a bit of massaging to get post-install connect and updates to work.
from depenguin-run.
Closing this, continue in depenguinme-ansible repo
from depenguin-run.
Related Issues (20)
- Test Report: Hetzner AX41 (2 x 2TB spindle disks) HOT 2
- Default ZFS datasets are very limited HOT 14
- Test request: OVH Baremetal servers HOT 16
- Test request: IONOS Dedicated Servers
- Test request: Servers.com Dell Servers
- Test request: Scaleway Dedibox HOT 1
- Test request: Leaseweb Dedicated Servers HOT 2
- Test request: Equinix Metal
- Add more than two drives? HOT 5
- mkisofs not found HOT 4
- Test Request: IBM Cloud deprecating FreeBSD HOT 1
- Test request: Hetzner EX43 HOT 7
- Support more than 2 drives HOT 8
- ovmf package missing on Debian 10 HOT 2
- Test request: Hivelocity dedicated servers
- Provide the likely interface name in the installed BSD system during the mfsBSD boot step HOT 7
- Testing Hetzner EX44 (NVMe) HOT 1
- Test request: Hetzner AX52 HOT 6
- Please provide a 13.3 ISO HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depenguin-run.