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.

Zyxel NAS540 NFS exports all shares RW world by default ?

While poking around with nfs exports on my zyxel nas 540 I noticed that, it is useless to set any DN/IP filter since the whole nfs directory is exported world wide RW as:

/i-data/<disk id>/nfs *(rw,sync,crossmnt,fsid=0,no_subtree_check,wdelay,no_root_squash) #

This share is not visible from the web interface but can easily be confirmed using showmount on any other system on the network:

showmount -e nas_ip

Export list for nas_ip:

/i-data/<disk id>/nfs               *
/i-data/<disk id>/nfs/kitties      192.168.1.145/24

So you better comment out /i-data/<disk id>/nfs * line in /etc/exports and then run:

/i-data/sysvol/.PKG/NFS/bin/exportfs -r

You get what you pay for I guess.

Security patches in CentOS

No and nein.. yum –security check-update/update does NOT work in CentOS. This is simply because the CentOS is missing this metadata. When you are using RHEL you pay for this metadata. This is not entirely obvious at first glance, but I guess they didn’t want to alter the source code for yum, which still provides –security parameter for CentOS.

If you want automatically flagged packages, buy RHEL license and use RHEL instead…or if you are a dev, use the free developer program.

Otherwise, use https://cefs.steve-meier.de/

Sadly his parser is not open source so you need to rely on this guy. He hasn’t failed this far though.

 

virt-manager xforward to OSX (release mouse)

When you forward virt-manager from a linux machine to OS X and try to release the mouse from the console, you might have noticed that this won’t work.

If you use XQuartz, simply go into preferences, select “Option keys send Alt_L and Alt_R”.

Source: https://major.io/2013/03/20/virt-manager-wont-release-the-mouse-when-using-ssh-forwarding-from-os-x/