Archive for July, 2008

Hyper-V FreeBSD shutdown problem workaround

Friday, July 18th, 2008

Thanks to Mike … 

Mike wrote: 

“I’ve found an even easier way to do this.  I found a PowerShell Hyper-V script at:

http://www.codeplex.com/PSHyperv

It has a lot of functions already, and I added a “Kill-VM” function that automates the kill process:

Kill-VM <VM name>

My modified script is attached to this message.

To use it, you need to install PowerShell (Under Server Manager -> Features in Win2008).  Once installed, run PowerShell from Start -> Search, find the script, and type:

. .\hyperv.ps1

Once loaded into memory, type:

Kill-VM <VM Name>

Enjoy”

Click here to download script – hyperv-script.zip

So true… :)

Wednesday, July 2nd, 2008

A little bit of fun after this serious posts :)

http://www.thewebsiteisdown.com/salesguy.html

FreeBSD on Hyper-V – shutdown hangs…

Wednesday, July 2nd, 2008

If I try to reboot my working FreeBSD machine in HyperV it does not work… FreeBSD somehow hangs the reboot procedure and I need to reboot my Windows server 2008 with Hyper-V – it can not be turned off even by clicking on “Turn off…” in a virtual machine context menu…

For now the only solution I found is to use command:

shutdown -p now

and when it turns off I turn it back on with Hyper-V console…

 :) hope it helps

FreeBSD in Hyper-V – WORKS!!!

Tuesday, July 1st, 2008

I am so happy – I managed to make it work…
What we need to make FreeBSD run on Hyper-V:

- download FreeBSD ISO image from:
ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200806
Download this ISO image:
7.0-STABLE-200806-i386-disc1.iso

- create new Virtual Machine using Hyper-V
- remove default network card that is added by wizard
- add hardware and chose Legacy network adapter
- start the machine and “mount” ISO image to start booting FreeBSD…
- install it with parameters you want…

- **** NETWORK PROBLEMS **** Even if you are runing DHCP server on your network your FreeBSD machine will not get IP from your DHCP server (my machine did not) so I used ifconfig to add IP and gateway this way:

ifconfig de0 10.70.60.201 – this is IP in my subnet you should use one of your free IP’s
ifconfig de0 down
ifconfig de0 up

You can now chec status of your IP with:
ifconfig

Ok, now we need a gateway to get to the internet:
route add 0.0.0.0 10.70.60.1 This will add your default gateway (for example my gateway is 10.70.60.1)…

try to ping an public IP address to see it is working… As you can see in my screenshots it works for me. :)

FreeBSD on Hyper-V [docx]
FreeBSD on Hyper-V [pdf]

*** There is still one problem unsolved for now… If you try to reboot Free BSD, Hyper-V does not Turn off the machine … I am trying to solve that with some Nejc tricks :)