Search This Blog

Showing posts with label freebsd. Show all posts
Showing posts with label freebsd. Show all posts

Tuesday, May 7, 2013

CentOS 6.4 comes with native support for Hyper-V

CentOS 6.4 comes with Linux integration Services build-in.
"Microsoft Hyper-V drivers have been added to allow CentOS to be more efficient as a Virtual Machine when installed on Microsoft Hyper-V server."
http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.4
Bravo. Will FreeBSD 9.x follow?

The linux kernel 2.6.32 has the hyper-v support and other distributions such as Ubuntu should also be compatible.

FreeBSD 9.1 SU+J issues under Hyper-V

After several days of running freshly installed  FreeBSD 9.1 64bit is showing signs of fatigue - SU+J file system corrupt "panic: ufs_dirbad: .. mangled entry", running fsck -y in a single mode fixed the issues but many installed previously packages, such as ruby, mc were damaged.

Clearly it comes from somewhat poor integration with virtual environment, in this case hyper-v. I will reinstall FreeBSD from scratch and try to disable SU+J to see if it is getting more stable.

Monday, April 29, 2013

Installing FreeBSD 9.1 64bit on Windows 8 pro Hyper-V

FreeBSD installs without any issues if you add Legacy Network Adapter, instead of standard one in VM settings before install. I used ISO file 64bit  FreeBSD-9.1-RELEASE-amd64-dvd1. I assume the 32bit would have the same procedure.

update: out of box there are no Integration Services (heartbeat, time, reboot, etc..), but there is a patch that MS is trying to incorporate into FreeBSD / refer to https://github.com/FreeBSDonHyper-V/freebsd/wiki/Build-the-kernel-with-the-HyperV-drivers

the patch is sort of ready for 8.2 but not yet for 9.1, anyway this is what you can do to try to add hyper-v support in 9.1, run:

# pkg_add -r git
# cd /usr
# git clone https://github.com/FreeBSDonHyper-V/freebsd-head.git
# cd /usr/freebsd-head
# make buildworld
# make buildkernel KERNCONF=HYPERV_VM

for 8.3 or 8.2 follow the instruction here http://buchizo.wordpress.com/2012/09/12/freebsd-on-windows-azure-vms-en/

The hyper-v  on Windows 8 pro will complain that network adapter hn0 is in degraded mode and that integration service upgrade required.

freebsd-update error

Freebsd-update error:


root@FreeBSD:/ # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be added as part of updating to 9.1-RELEASE-p2:
/usr/src/crypto/openssl/ssl/s3_cbc.c



root@FreeBSD:/ # freebsd-update install
Installing updates...install: ///usr/src/crypto/openssl/ssl/s3_cbc.c: No such file or directory
 done.

to solve it, just create that missing folder - mkdir -p /usr/src/crypto/openssl/ssl

This happens if you did not install sources tree.