Add initial CD-ROM support to VMD via vioscsi.
authorccardenas <ccardenas@openbsd.org>
Wed, 3 Jan 2018 05:39:56 +0000 (05:39 +0000)
committerccardenas <ccardenas@openbsd.org>
Wed, 3 Jan 2018 05:39:56 +0000 (05:39 +0000)
commit95ab188f112e9222b375a8ba5e758d43cbe60f74
tree7fbcf54a8b3658689db8aa8d37c436d9917a4d99
parentb8cbdd99fad603615556068b8463fc45e3794fe8
Add initial CD-ROM support to VMD via vioscsi.

* Adds 'cdrom' keyword to vm.conf(5) and '-r' to vmctl(8)
* Support various sized ISOs (Limitation of 4G ISOs on Linux guests)
* Known working guests: OpenBSD (primary), Alpine Linux (primary),
  CentOS 6 (secondary), Ubuntu 17.10 (secondary).
  NOTE: Secondary indicates some issue(s) preventing full/reliable
  functionality outside the scope of the vioscsi work.
* If the attached disks are non-bootable (i.e. empty), SeaBIOS (vmd's
  default BIOS) will boot from CD-ROM.

ok mlarkin@, jca@
16 files changed:
usr.sbin/vmctl/main.c
usr.sbin/vmctl/vmctl.8
usr.sbin/vmctl/vmctl.c
usr.sbin/vmctl/vmctl.h
usr.sbin/vmd/Makefile
usr.sbin/vmd/config.c
usr.sbin/vmd/parse.y
usr.sbin/vmd/vioscsi.c [new file with mode: 0644]
usr.sbin/vmd/vioscsi.h [new file with mode: 0644]
usr.sbin/vmd/virtio.c
usr.sbin/vmd/virtio.h
usr.sbin/vmd/vm.c
usr.sbin/vmd/vm.conf.5
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h
usr.sbin/vmd/vmm.c