Re: CFT: vmrc Virtual Machine rc script
2014-02-28 10:00 GMT+02:00 Michael Dexter : > On 2/27/14 6:13 AM, Takuya ASADA wrote: > > Then I get an error: > > vm: provisioning VM openbsd6 > > /usr/local/vm//openbsd6/openbsd6.conf: 21: Syntax error: "(" unexpected > > Note that because the OpenBSD VM is using a pre-made disk image, it will > not support "provision". You simply want "start". > > > Same as another images. > > > > Where this error coming from? > > From a typo on line 6: :( > > vm_console=""nmdm" rather than: > vm_console="nmdm" > > Oh I see. > This is now fixed and thank you for testing it! > I'll try it again :-) ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: CFT: vmrc Virtual Machine rc script
On 2/27/14 6:13 AM, Takuya ASADA wrote: > Then I get an error: > vm: provisioning VM openbsd6 > /usr/local/vm//openbsd6/openbsd6.conf: 21: Syntax error: "(" unexpected Note that because the OpenBSD VM is using a pre-made disk image, it will not support "provision". You simply want "start". > Same as another images. > > Where this error coming from? >From a typo on line 6: :( vm_console=""nmdm" rather than: vm_console="nmdm" This is now fixed and thank you for testing it! Michael ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: CFT: vmrc Virtual Machine rc script
2014-02-27 16:25 GMT+02:00 Matt Donovan : > The error is coming from the openbsd.conf line 21 > The error is due to a syntax errror in your openbs.conf. Can you post your > configuration as it appears you have an extra ). > It's true, but I even never changes it. Which means the configuration file is may broken by default. This line: grub_boot_cmd="echo -e \"kopenbsd -h com0 (hd0,openbsd1)/bsd\nboot\" | grub-bhyve -r hd0 -m "${host_vmroot}/${vm_name}/device.map" -M "$vm_ram" "$vm_name"" ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: CFT: vmrc Virtual Machine rc script
The error is coming from the openbsd.conf line 21 On Feb 27, 2014 8:14 AM, "Takuya ASADA" wrote: > > Hi Michael, > > I tried openbsd6, ubuntu7, centos9 by remove comment out on install.sh, and > did provision command like this: > $ sudo /usr/local/etc/rc.d/vm provision openbsd6 > > Then I get an error: > vm: provisioning VM openbsd6 > /usr/local/vm//openbsd6/openbsd6.conf: 21: Syntax error: "(" unexpected > > Same as another images. > > Where this error coming from? > > Note: I'm on FreeBSD-CURRENT, not 10.0. > > > 2014-01-27 12:09 GMT+02:00 Michael Dexter : > > > > > Hello all, > > > > For the one-week anniversary of bhyve's release, I wish to share the > > next iteration of my virtual machine scripts that have evolved from a > > 2005 jail rc/disk image framework to a FreeBSD 9.0 bhyve binary and VM > > build script to a 10.* sequential provision script. It's primary purpose > > is to facilitate the exposure of bugs in bhyve and related FreeBSD > > components but you may find it useful for continuous VM use or for > > integration into your own scripts. > > > > Because bhyve is only the latest multiplicity solution on FreeBSD, this > > rc script includes basic jail and qemu support and could include chroot, > > simh and GXemul support. Of these, QEMU is intended to help prepare OSs > > like OpenBSD that require VirtIO and console adjustments prior to > > booting under bhyve. > > > > Synopsis: > > > > Unpack vmrc.tar > > Run 'sh install.sh' or perform the steps manually > > Verify your host_nic and host_zpool in /usr/local/etc/vm.conf > > /usr/local/etc/rc.d/vm(Show usage) > > /usr/local/etc/rc.d/vm provision vm0 (Note: /usr/local/vm/vm0/vm0.conf) > > (Fetches OS install media, formats disk, installs to disk) > > /usr/local/etc/rc.d/vm start vm0 (Loads and boots vm0) > > > > Alternatively: > > /usr/local/etc/rc.d/vm iso vm0(Fetches and boots and ISO image) > > > > "ISO" mode will prepare a disk image to install the OS to and includes > > fetch support for FreeBSD, Ubuntu and CentOS. > > > > Manual scripts exist in install/ to fetch FreeNAS, pfSense and OpenBSD. > > > > Status: > > > > Know issues and known desired features are at the end of > > instructions.txt plus various "fix:" notes throughout the script. This > > is not mature enough for packaging yet but does some things quite > > reliably and is ready for feedback. Because development is ongoing, I > > invite you to mail me about issues directly and I can post it to > > something like GitHub if there is interest. > > > > Please read the instructions.txt to avoid FAQ's and I have done my best > > to make the script itself readable. > > > > > > Site: http://bhyve.org/vmrc/ > > > > Download: http://bhyve.org/vmrc/vmrc.tar (latest version) > > > > > > Thank you Neel, Peter, John and Tycho for your hard work on bhyve. > > > > Thank you Devin for greatly improving this script and Allan at > > ScaleEngine for testing it and providing resources for bhyve's overall > > improvement. > > > > > > Thank you for testing bhyve! > > > > Michael > > ___ > > freebsd-virtualization@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > To unsubscribe, send any mail to " > > freebsd-virtualization-unsubscr...@freebsd.org" > > > ___ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " freebsd-virtualization-unsubscr...@freebsd.org" The error is due to a syntax errror in your openbs.conf. Can you post your configuration as it appears you have an extra ). ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: CFT: vmrc Virtual Machine rc script
Hi Michael, I tried openbsd6, ubuntu7, centos9 by remove comment out on install.sh, and did provision command like this: $ sudo /usr/local/etc/rc.d/vm provision openbsd6 Then I get an error: vm: provisioning VM openbsd6 /usr/local/vm//openbsd6/openbsd6.conf: 21: Syntax error: "(" unexpected Same as another images. Where this error coming from? Note: I'm on FreeBSD-CURRENT, not 10.0. 2014-01-27 12:09 GMT+02:00 Michael Dexter : > > Hello all, > > For the one-week anniversary of bhyve's release, I wish to share the > next iteration of my virtual machine scripts that have evolved from a > 2005 jail rc/disk image framework to a FreeBSD 9.0 bhyve binary and VM > build script to a 10.* sequential provision script. It's primary purpose > is to facilitate the exposure of bugs in bhyve and related FreeBSD > components but you may find it useful for continuous VM use or for > integration into your own scripts. > > Because bhyve is only the latest multiplicity solution on FreeBSD, this > rc script includes basic jail and qemu support and could include chroot, > simh and GXemul support. Of these, QEMU is intended to help prepare OSs > like OpenBSD that require VirtIO and console adjustments prior to > booting under bhyve. > > Synopsis: > > Unpack vmrc.tar > Run 'sh install.sh' or perform the steps manually > Verify your host_nic and host_zpool in /usr/local/etc/vm.conf > /usr/local/etc/rc.d/vm(Show usage) > /usr/local/etc/rc.d/vm provision vm0 (Note: /usr/local/vm/vm0/vm0.conf) > (Fetches OS install media, formats disk, installs to disk) > /usr/local/etc/rc.d/vm start vm0 (Loads and boots vm0) > > Alternatively: > /usr/local/etc/rc.d/vm iso vm0(Fetches and boots and ISO image) > > "ISO" mode will prepare a disk image to install the OS to and includes > fetch support for FreeBSD, Ubuntu and CentOS. > > Manual scripts exist in install/ to fetch FreeNAS, pfSense and OpenBSD. > > Status: > > Know issues and known desired features are at the end of > instructions.txt plus various "fix:" notes throughout the script. This > is not mature enough for packaging yet but does some things quite > reliably and is ready for feedback. Because development is ongoing, I > invite you to mail me about issues directly and I can post it to > something like GitHub if there is interest. > > Please read the instructions.txt to avoid FAQ's and I have done my best > to make the script itself readable. > > > Site: http://bhyve.org/vmrc/ > > Download: http://bhyve.org/vmrc/vmrc.tar (latest version) > > > Thank you Neel, Peter, John and Tycho for your hard work on bhyve. > > Thank you Devin for greatly improving this script and Allan at > ScaleEngine for testing it and providing resources for bhyve's overall > improvement. > > > Thank you for testing bhyve! > > Michael > ___ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscr...@freebsd.org" > ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"