Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support other VM types #54

Open
hannesm opened this issue Dec 1, 2020 · 0 comments
Open

support other VM types #54

hannesm opened this issue Dec 1, 2020 · 0 comments

Comments

@hannesm
Copy link
Collaborator

hannesm commented Dec 1, 2020

the console output and statistics gathering is so useful that it'd be great (esp. with #53) to support other virtual machines to be started. for my own use, this would be: bhyve (both FreeBSD native and linux ones).

the semantics would be quite different since these virtual machines won't fit into a X.509 certificate -- instead the block device(s) should already exist and contain the operating system. some additional notes:

bhyve virtual machine:
- name
- #cpus
- #memory
- bridges
- block devices (not necessarily maintained by albatross)
- bhyveload or grub2-bhyve?
  - former: nothing more
  - latter: boot thingy (hd0, msdos1) -- and map "(hd0) /dev/zvol/data/mx"

--> cpu in bhyve now (no need for cpuset):
  -c [[cpus=]numcpus][,sockets=n][,cores=n][,threads=n]
  and -p vcpu:hostcpu

exit codes:
     0       rebooted
     1       powered off
     2       halted
     3       triple fault
     4       exited due to an error
~> a bit different from solo5 (but just executing bhyve prints help and returns 1 :/)

-> generate:
bhyveload -c stdio -m <mem> -d <boot=first-block> <name>
OR
grub-bhyve -m <map> -r hd0,msdos1 -M <mem> <name>
 (with hd0 and msdos1 hardcoded, and <map> written as (hd0) <first-block-device>)

the :0 is superfluous (the default)
tapN,mac=xx:xx:xx:xx:xx:xx

bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc
  -s <n>:0,virtio-net,tapN
  -s <m>:0,virtio-blk,/dev/zvol/data/block
  -l com1,stdio -c <#cpu> -m <mem> <name>
@hannesm hannesm changed the title support starting of other VM types support other VM types Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant