FreeBSD8.0 on Hyper-V
Yes, it works. I’ve recently decided it was about time to get to know a bit more about BSD. I’ve built ZFS boxes on OpenSolaris before, but CARP and PF kind of sealed the deal for me. So I decided to build a test VM on my Hyper-V server. There are some quirks however.
As I’m finding to be a trend for Linux guests, you must replace the default virtual NIC with the “Legacy Network Adapter” (you have to do this for Debian as well). Just follow the installer’s guidelines for the rest of the installation.
After it is installed, rebooting the OS becomes a problem. Hyper-V doesn’t seem to agree very well with the FreeBSD’s ACPI calls so in the interim, you can identify the hung VM by logging into powershell and running the following:
Get-WmiObject -Namespace root\virtualization msvm_computersystem | Format-Table ElementName,ProcessId
Then kill the process id with “kill [pid]“
In task manager,
- Inspect the “Command Line” field from the open vmconnect.exe process. Note the GUID of the VM (after the -G switch).
- Look for that GUID in the vmwp.exe “Command Line” field.
- Right click > End Process
The folks at peach.ne.jp have released a patch to correct this. Fetch it from here or failing that, locally.
On the VM, perform the following:
cd /usr/src
bzcat < /path/to/fbs80-200911-hvpatch.bz2 | patch -p1
make buildkernel
make installkernel
shutdown -r now
More to come as I start wading in.
Originals:
* http://shell.peach.ne.jp/aoyama/archives/577
* http://blogs.technet.com/abeshkov/archive/2008/12/15/3169299.aspx