Hi,
I have tested with the new pfSense-CE-memstick-2.5.1-RELEASE-amd64.img image with lxd vm capability and it works great. Here are the steps as follows.
lxc config device override pfsense root size=32GB # resize the pfsense disk
echo -n '-machine pc-q35-2.6' | sudo lxc config set pfsense raw.qemu - # change the machine type with qemu parameter.
lxc config device add pfsense install disk source=/home/indiana/Downloads/pfSense-CE-memstick-2.5.1-RELEASE-amd64.img boot.priority=10 # Add boot disk image to the lxd vm
Not: This configuration has just one network interface to test the pfsense installation please feel free to add another interfaces. And this simple quick documentation is not new just gathering some of the information together. And lastly thanks to the lxd team to make this happen, keep up the good work. Some of the points can be inaccurate. Happy pfsensing.
qemu-system-x86_64: Invalid SMP CPUs 256. The max CPUs supported by machine ‘pc-q35-2.6’ is 255
So it’s as if qemu is trying to load all my CPU’s into the VM (I do have 256 cores, but I only assign four of them). Any suggestions as to what I am doing wrong please? THanks in anticipation.
I’m getting err on line 3.
uname -r
5.4.0-148-generic
lxd 5.x
lxd git-976cd2b 24814 latest/edge canonical
root@shinto:/home/ubuntu# echo -n ‘-machine pc-q35-2.6’ | sudo lxc config set pfsense raw.qemu
Error: cannot set ‘pfsense’ to ‘raw.qemu’: unknown key
So I proceed anyway,able to complete the rest of the commands
However Lxd barks about…
root@shinto:/home/ubuntu# lxc start pfsense && lxc console pfsense --type=vga
LXD relies on either remote-viewer or spicy to provide VGA console access.
Those can’t be bundled with the LXD snap and so need to be manually installed.
“remote-viewer” usually comes in a package called virt-viewer
“spicy” usually comes in a package called spice-client-gtk
Install either of those and they will automatically start.
Alternatively you may use another SPICE client using the following URI:
spice+unix:///root/snap/lxd/common/config/sockets/2222276300.spice
fyi - for others that may attempt.
apt-get install virt-viewer -
which is a hefty package for a vm installing GTK libs
then
lxc start pfsense && lxc console pfsense --type=vga
Unable to init server: Could not connect: Connection refused
(remote-viewer:25364): Gtk-WARNING **: 17:36:55.399: cannot open display:…
I had this working as well at one time on bionic /iso. But I thinK also had kvm/virsh and some other libs installed… so maybe some by chance libs helped out with lxd.
Hi @macduff23,
The line you mentioned replaced with that line with dash at the end.
echo -n ‘-machine pc-q35-2.6’ | sudo lxc config set pfsense raw.qemu -