Comments (3)
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.
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.
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 usevm 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
andgrub_installX
options, and these commands will then be automatically passed intogrub-bhyve
.
from vm-bhyve.
Related Issues (20)
- Save/Restore Option HOT 5
- UPPERCASE or lowercase for memory unit
- The egrep(1) Warning HOT 6
- how to provision an image with custom disk size HOT 3
- dnsmasq fails to start up since it is invoked before vm-bhyve HOT 2
- OpenBSD 7.4 unable to boot installer image HOT 14
- bridge not marked as up
- Renaming of VM leads to UEFI NVMe boot failure HOT 1
- vlan tagged on virtual switch HOT 1
- vm-bhyve ignoring -s when using cloud images? HOT 7
- vm-bhyve ignoring zvol/custom disks on device.map? HOT 1
- tpm support HOT 7
- Auto-decompress ISO files
- No longer maintained? HOT 4
- vm-bhyve does not allow to passthru my GPU to a Windows vm. HOT 2
- Feature Request: VM Group HOT 2
- Freebsd 14.1 out with suspend resume HOT 10
- Ubuntu 24.04 guest requires the grub run partition setting HOT 2
- fix bad "_netgraph," variable
- virtio-9p does not work in FreeBSD 13 and 14 guests.
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 vm-bhyve.