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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s