Coder Social home page Coder Social logo

Comments (3)

churchers avatar churchers commented on August 16, 2024

I'm sure when I was testing CentOS 6 it defaulted to using standard partitions on the disk rather than LVM. But yes, Linux is becoming a real pain as the boot commands change depending on just about everything, even between minor versions of the same distro sometimes.

Linux support is the only thing I'm not particularly happy with but I'm not sure what the best answer is. There's another issue on here that contains some good information.

Rather than create dozens of different guest types, I may look at some way of providing boot commands through the template, so I can just start building up templates for different scenarios. That would probably end with eventually just having a linux guest, and always using a boot_commands file rather than trying to do it all internally.

from vm-bhyve.

36roentgen avatar 36roentgen commented on August 16, 2024

A standard partition would have resulted in something like this in boot.cmd:

root=/dev/vda1

/dev/mapper/centos-root(from the auto-generated boot.cmd) indicates LVM since it is a subset of Device Mapper and is the new default for 7( <- pretty sure on this, not certain).

If it was me, I'd just rename centos to centos7 and let us centos 6 users muddle through even though there are many more centos 6 installs now.

But yes, hopefully grub-bhyve can grow some kind of -auto feature which automatically loads most current kernel etc otherwise maintaining linux guests is going to be painful.

from vm-bhyve.

churchers avatar churchers commented on August 16, 2024

Hopefully you should be able to get this working now.

I've finally given up on trying to hard-code the grub commands and have moved them into the configuration file (In hindsight it was a terrible idea). Now, as long as there are grub commands that will get the guest to boot, you should be able to get it working with vm-bhyve.

Have a look at the README and sample templates, but the basics are as follows

  • By default, grub-bhyve is run on the guest console, so you can use vm console guest to access it, and enter any boot commands needed manually.
  • If you know the commands needed, they can be added to the guest configuration file using the grub_runX and grub_installX options, and these commands will then be automatically passed into grub-bhyve.

from vm-bhyve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.