Loading A FreeBSD 10 VM On QEMU-KVM..
I was trying to load a FreeBSD 10 VM on my CentOS 6.4 machine, and it keeps hanging and not completing the boot. I have FBSD 9.x VM’s running just fine, but if I try and load 10.x it’s a no go.
Attaching to the console using VNC, I see:
gPXE (http://etherboot.org) – 00:04.0 C980 PCI2.10 PnP BBS PMM7FC0@20 C980
Booting from DVD/CD… CD Loader 1.2
Building the boot loader arguments Looking up the /BOOT/LOADER… Found Relocating the loader and the BTX
That is it, at that point it just hangs. I have tried from 2G RAM to 6G
RAM for the VM, and from 1 to 4 CPU’s, but no effect. The FreeBSD lists said I should load a newer QEMU–KVM, that there are much newer releases but everything I have seen claims that is not a good idea, that RH does version numbering much differently.
Has anyone run into this, or have any ideas on how to get past it, as I
would love to load up the newest FBSD and give it a run as well..
–
14 thoughts on - Loading A FreeBSD 10 VM On QEMU-KVM..
Do you have to use KVM? IIRC it runs fine under virtualbox. I think 10.2+ should work on xen but haven’t tried it yet.
Why 6.4 when 6.5 is out?
Also, you haven’t mentioned what type of storage you are using, have you tried both IDE and virtio?
try to turn off XSAVE cpu option for the guest.
The host is CentOS using kvm-qemu, so kinda hard to reload the 8 running VM’s just to try another hypervisor. I am just trying to add a FBSD 10
guest to an established host..
–
I will probably get it up to 6.5 over the weekend, it’s pretty much because the host has established production VM’s running on the server, and I have to take a bunch of stuff offline to update. Yes, I know that needs to get done during some weekend maintenance time..
–
I am not familiar with XSAVE, how can I set this when trying to load a new guest? I have been using virt-install to try and load the VM..
–
after virt-install, shutdown guest and with virsh edit guest_name
under cpu section change option for xsave
or from your desktop with the gui virt-manager
Dude, do *not* run test VM’s on a production environment. Can you run a test install on your personal machine, using VirtualBox, or KVM or other tools, just to see if it works well with *any* virtualization toolkit?
You haven’t provided much information. Are you trying to boot a CD/DVD
downloaded from freebsd.org or a self-backed image? Can you post the KVM
commandline options that you’re environment is using?
…Juerg
just lists I
keeps
6G
but version
Hello Juerg,
I wasn’t sure what all was useful, so I figured I would respond back and post whatever was asked for that might help with sorting this out.
Here is the rundown on a few details on the setup. First off the hardware is an HP DL580G5 server with 4x E7450 Xeon CPU’s in the server and 32G RAM, to a SAS array. The CentOS OS should be current as of this message, as I
have applied all the latest updates using yum. I show the kernel to be Linux version 2.6.32-431.3.1.el6.x86_64 and the qemm-kv version is showing as QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2).
The FreeBSD release I am trying to load on a guest VM is the production release of FreeBSD 10, the ISO grabbed from the master site is FreeBSD-10.0-RELEASE-amd64-disc1.iso, and the virt-install command I am using is:
virt-install –connect qemu:///system -n FBSD-10_vm1 -r 2048 –vcpus=1
–disk path=/dev/vg_virtual/FBSD-10_vm1 -c
/images/FreeBSD-10.0-RELEASE-amd64-disc1.iso –graphics vnc,portY20,listen=0.0.0.0 –noautoconsole –os-variant freebsd8
–accelerate –network=bridge:br0 –network=bridge:br1
I am specifying the freebsd8 flag, as I see no sign of a newer os-variant I
can use, so that was the closest to what I was trying to run. As stated before, if I try and boot FBSD 8 or 9, it works just fine, it’s just when I
try and launch 10 that I have this issue.
If there is any other info that would be helpful, just let me know..
–
Just a FYI. I’m successfully running FreeBSD 10.0-RC5 in a kvm VM
(under Ubuntu, so probably a different version of KVM). Going to upgrade to -RELEASE today (downloading image now).
I don’t know what the freebsd8 variant flag does in virt-install, but I don’t bother with it. I just create the KVM definition as a clone of a previous one using ‘virsh define’ with an .xml file.
The following is an xml dump of my port building VM with the VM
stopped:
% virsh dumpxml kate
kate
f20189a0-2349-3435-ddb4-160184e6c054
2097152
2097152
1
hvm
destroy
restart
restart
/usr/bin/kvm
When making a clone I just remove the ‘
post whatever was asked for that might help with sorting this out. hardware is an HP DL580G5 server with 4x E7450 Xeon CPU
You should be using bhyve instead.
Regards
Alberto Mijares El 22/01/2014 06:20, “Juerg Haefliger” escribió: