Import FreeBSD 11 Qcow2 image into Proxmox VE 4.4

In this example, the following image is used

wget https://download.freebsd.org/ftp/snapshots/VM-IMAGES/11.0-STABLE/amd64/Latest/FreeBSD-11.0-STABLE-amd64.qcow2.xz

Download and then unpack it on the Proxmox host

xz -d FreeBSD-11.0-STABLE-amd64.qcow2.xz

Convert to RAW Image

qemu-img convert -f qcow2 -O raw FreeBSD-11.0-STABLE-amd64.qcow2 FreeBSD-11.0-STABLE-amd64.raw

Create a VM with scsi disk in Proxmox.

Find the  zfs volume that Proxmox has created for the vm

zfs list -t volume

Write the raw disk image into the zfs volume, vm-102-disk-1 in this example

dd if=FreeBSD-11.0-STABLE-amd64.raw of=/dev/zvol/vmpool/vm-102-disk-1 bs=1M

Now you should be able to boot FreeBSD and login as root without password.

FreeBSD and manual fan control on a Lenovo t410

Here is a quick way to manually control your fan speed on your Lenovo T410 running FreeBSD 10.x:

First load the kernel module:
$ kldload acpi_ibm.ko

Then check your new sysctl’s:

$ sysctl -a | grep -i fan
dev.acpi_ibm.0.fan_speed: 4527
dev.acpi_ibm.0.fan_level: 7
dev.acpi_ibm.0.fan: 1

Turn on manual mode:
$ sysctl dev.acpi_ibm.0.fan=0

Set fan for instance, to level 7:
$ dev.acpi_ibm.0.fan_level: 7

The man page for acpi_ibm.ko details the different levels:

    dev.acpi_ibm.0.fan_level
	     Indicates at what speed the fan should run	when being in manual
	     mode.  Values are ranging from 0 (off) to 7 (max).	 The resulting
	     speed differs from	model to model.	 On a T41p this	is as follows:
	     0		 off
	     1,	2	 ~3000 RPM
	     3,	4, 5	 ~3600 RPM
	     6,	7	 ~4300 RPM

It appears that my max speed is 4527 RPM.
You can check your temperature using
$ sysctl -a|grep temperature

FYI, mine shows 93.0C (!) right now cause this business laptop is utterly s**t since they put the inlet for air next to the air outlet. Really Genious. At least it helps a little to lower the CPU frequency using powerd.

FreeBSD 10.1 on a Lenovo T410

So, this post  to so I will share my experience with running FreeBSD 10.1 (10.1-RELEASE-p14) on Lenovo T410 (with intel gfx chip). I think it worked much better and easier than I expected. Will update if new marvelous things emerge.

Maybe this information should go to https://wiki.freebsd.org/Laptops – but I dunno to add content there.

Wifi

Intel Centrino Advanced-N 6200 works out of the box.

Wired NIC

Works without a hitch.

Suspend/Resume

Out of the box, suspend seem to work but resume leaves you with a blank screen. This can be fixed by adding kern.vty=vt to /boot/loader.conf Without vt, switching between Xorg and terminal will be a fscky experience also. This option is default in Freebsd 11 tho.

Xorg

Full resolution works fine for me, Xorg -configure did most of the magic. Install xf86-video-intel and change VESA to intel in xorg.conf if you want to use a better video driver.

Sound

Does not work out of the box, but luckily you just need to add hw.snd.default_unit=1 to /etc/sysctl.conf to make it work.

Docking Station

Works overall good with dual screens using HDMI.
USB works fine also. However, undocking laptop leaves you with a black laptop screen and re-docking it somehow freezes the video. Shutting down the laptop with the off button refreshes the screen and shows spews out the usual shut down messages.

Below is pciconf -lv output:

hostb0@pci0:255:0:0: class=0x060000 card=0x219617aa chip=0x2c628086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor QuickPath Architecture Generic Non-core Registers’
class = bridge
subclass = HOST-PCI
hostb1@pci0:255:0:1: class=0x060000 card=0x219617aa chip=0x2d018086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor QuickPath Architecture System Address Decoder’
class = bridge
subclass = HOST-PCI
hostb2@pci0:255:2:0: class=0x060000 card=0x219617aa chip=0x2d108086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor QPI Link 0’
class = bridge
subclass = HOST-PCI
hostb3@pci0:255:2:1: class=0x060000 card=0x219617aa chip=0x2d118086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor QPI Physical 0’
class = bridge
subclass = HOST-PCI
hostb4@pci0:255:2:2: class=0x060000 card=0x219617aa chip=0x2d128086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor Reserved’
class = bridge
subclass = HOST-PCI
hostb5@pci0:255:2:3: class=0x060000 card=0x219617aa chip=0x2d138086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor Reserved’
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:0:0: class=0x060000 card=0x219317aa chip=0x00448086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor DRAM Controller’
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x215a17aa chip=0x00468086 rev=0x02 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Core Processor Integrated Graphics Controller’
class = display
subclass = VGA
none0@pci0:0:22:0: class=0x078000 card=0x215f17aa chip=0x3b648086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset HECI Controller’
class = simple comms
uart2@pci0:0:22:3: class=0x070002 card=0x216217aa chip=0x3b678086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset KT Controller’
class = simple comms
subclass = UART
em0@pci0:0:25:0: class=0x020000 card=0x215317aa chip=0x10ea8086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘82577LM Gigabit Network Connection’
class = network
subclass = ethernet
ehci0@pci0:0:26:0: class=0x0c0320 card=0x216317aa chip=0x3b3c8086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset USB2 Enhanced Host Controller’
class = serial bus
subclass = USB
hdac0@pci0:0:27:0: class=0x040300 card=0x215e17aa chip=0x3b568086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset High Definition Audio’
class = multimedia
subclass = HDA
pcib2@pci0:0:28:0: class=0x060400 card=0x216417aa chip=0x3b428086 rev=0x06 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset PCI Express Root Port 1’
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:28:1: class=0x060400 card=0x216417aa chip=0x3b448086 rev=0x06 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset PCI Express Root Port 2’
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:28:3: class=0x060400 card=0x216417aa chip=0x3b488086 rev=0x06 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset PCI Express Root Port 4’
class = bridge
subclass = PCI-PCI
pcib5@pci0:0:28:4: class=0x060400 card=0x216417aa chip=0x3b4a8086 rev=0x06 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset PCI Express Root Port 5’
class = bridge
subclass = PCI-PCI
ehci1@pci0:0:29:0: class=0x0c0320 card=0x216317aa chip=0x3b348086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset USB2 Enhanced Host Controller’
class = serial bus
subclass = USB
pcib6@pci0:0:30:0: class=0x060401 card=0x216517aa chip=0x24488086 rev=0xa6 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘82801 Mobile PCI Bridge’
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x216617aa chip=0x3b078086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Mobile 5 Series Chipset LPC Interface Controller’
class = bridge
subclass = PCI-ISA
ahci0@pci0:0:31:2: class=0x010601 card=0x216817aa chip=0x3b2f8086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset 6 port SATA AHCI Controller’
class = mass storage
subclass = SATA
none1@pci0:0:31:3: class=0x0c0500 card=0x216717aa chip=0x3b308086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset SMBus Controller’
class = serial bus
subclass = SMBus
none2@pci0:0:31:6: class=0x118000 card=0x219017aa chip=0x3b328086 rev=0x06 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘5 Series/3400 Series Chipset Thermal Subsystem’
class = dasp
iwn0@pci0:3:0:0: class=0x028000 card=0x13118086 chip=0x42398086 rev=0x35 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Centrino Advanced-N 6200’
class = network
sdhci_pci0@pci0:13:0:0: class=0x080500 card=0x213317aa chip=0xe8221180 rev=0x01 hdr=0x00
vendor = ‘Ricoh Co Ltd’
device = ‘MMC/SD Host Controller’
class = base peripheral
subclass = SD host controller
none3@pci0:13:0:1: class=0x088000 card=0x213417aa chip=0xe2301180 rev=0x01 hdr=0x00
vendor = ‘Ricoh Co Ltd’
device = ‘R5U2xx (R5U230 / R5U231 / R5U241) [Memory Stick Host Controller]’
class = base peripheral
none4@pci0:13:0:3: class=0x0c0010 card=0x213617aa chip=0xe8321180 rev=0x01 hdr=0x00
vendor = ‘Ricoh Co Ltd’
device = ‘R5C832 PCIe IEEE 1394 Controller’
class = serial bus
subclass = FireWire

EOF