fbroce wrote:
andersen wrote:
Just booted FreeBSD 10.1 RELEASE with direct-from-disk. Works like a champ. Only had to enable serial console in the FreeBSD bootloader. KVM is slick.....
Neat..I need to ask a dumb question. How do you do direct from disk?
tnx
The basic idea is it is a disk image that includes the bootloader with it. Much like doing a raw dd from your hard drive including the Master Boot Record and embedded bootloader.
I'll publicly post what I PM'd to another member showing what I did to get FreeBSD up and running in Linode KVM. Hopefully that will give you some insight. Unfortunately FreeBSD doesn't ship with a VM with the serial console turned on or it would be a LOT easier (ie: you could skip steps 2-6). Note I'm not a FreeBSD guy so I used linux to prepare the disk image bootable for Linode KVM:
In order to get FreeBSD-10 up I did the following:
1. On my linux system downloaded the vm image:
$ curl ftp://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/10.1-RELEASE/amd64/Latest/FreeBSD-10.1-RELEASE-amd64.raw.xz
2. Decompress (long wait)
$ xz -d FreeBSD-10.1-RELEASE-amd64.raw.xz
3. Boot the system with graphical console in kvm (loads bootloader and then the os)
$ qemu-system-x86_64 -enable-kvm -drive file=FreeBSD-10.1-RELEASE-amd64.raw,if=virtio
4. Login as root and enable serial console
$ echo 'console="comconsole"' >> /boot/loader.conf
5. Shutdown and test serial console in kvm
$ qemu-system-x86_64 -enable-kvm -nographic -drive file=FreeBSD-10.1-RELEASE-amd64.raw,if=virtio
6. Recompress (optional)
$ xz FreeBSD-10.1-RELEASE-amd64.raw
7. If that all works, then boot up finnix, upload the image and copy to linode raw disk
$ xzcat FreeBSD-10.1-RELEASE-amd64.raw.xz |dd of=/dev/sda
Create a direct-from-disk profile and boot....profit!