Sunday, March 20, 2016

FreeBSD Virtual Machine running jails and VIMAGE: Promiscuous mode

This one I got in the FreeNAS documentation: after setting up the VIMAGE jail in the FreeBSD version 10.1 running on top of VMware ESXi host, I was not able to connect to the internet from the jail. Using the FreeBSD VM host was normal, the internet connection was there. I've tried the below commands:

ping -c 2 google.com
nc -z -w 2 google.com 80

Later on I found this little comment on the FreeNAS documentation:

(...)If you are using VMware, make sure that the vswitch is set to “promiscuous mode”.

That's what I did, and voilá! Problem solved!


References:
https://doc.freenas.org/9.3/freenas_jails.html
https://forums.freenas.org/index.php?threads/no-internet-from-within-jail.38688/

Saturday, March 19, 2016

FreeBSD: system update with custom kernel

One reminder when updating a FreeBSD system running a custom kernel: when applying the security patches using command

freebsd-update

the custom kernel must be rebuilt and reinstalled, as stated in the handbook:

"(...)Only the GENERIC kernel can be automatically updated by freebsd-update. If a custom kernel is installed, it will have to be rebuilt and reinstalled after freebsd-update finishes installing the updates. However, freebsd-update will detect and update the GENERIC kernel if /boot/GENERIC exists, even if it is not the current running kernel of the system.(...)"

Refer to FreeBSD: Jails (3) - VIMAGE to build and install a custom kernel.


References:
https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html#freebsd-update-custom-kernel-9x
https://www.freebsd.org/doc/handbook/kernelconfig-building.html

FreeBSD: Jails (3) - VIMAGE

In order to create a jail with its own virtual network stack, with its own network interfaces, addresses, routing table and so on, the kernel must be compiled with the VIMAGE option for this to be available.


Friday, March 11, 2016

Concrete jungle: Hong Kong


Bank of China - Central

One Pacific Place - Admiralty

Shangri-la Hotel - Admiralty

Conrad Hotel - Admiralty

Lippo Centre - Admiralty

Far East Finance Centre - Admiralty

United Centre - Admiralty

International Commerce Centre (ICC), The Harbourside and The Arch - West Kowloon 

China-Hong Kong City - Tsim Sha Tsui

The Gateway Tower 2 - Tsim Sha Tsui

Harbour view from China-Hong Kong City - Tsim Sha Tsui 

Victoria Towers - Tsim Sha Tsui

The One - Tsim Sha Tsui

Jardine House - Central

View of Central from Central Harbour Front Event Space

Bank of China and Cheung Kong Center - Central

HSBC Headquarters Building - Central

HSBC Headquarters and Standard Chartered Building - Central

Friday, March 4, 2016

FreeBSD: pkg / installing nano

I've already installed additional software from the ports collection, now I'll try to use pkg. From the man page, the pkg is a package management tool. The difference is that you can use the FreeBSD Ports Collection for installing from source, and packages for installing from pre-built binaries.

- Upgrade the pkg
pkg upgrade (answer yes for all questions, if any)

- Installing nano text editor
pkg install nano


References:
https://www.freebsd.org/doc/handbook/ports.html