[SOLVED] proxmox 4, live migration , freebsd, boot error , root partition

mfaridi

Renowned Member
Oct 17, 2015
83
0
71
I have pyhysiacal server , this server has FreeBSD , with two IDE HDD , I start live migration by clonezilla and everything go well , but when I start it . I see error about mount root partiton and system can not boot . and I see error about mount root , in VM I make two HDD too
I see
trying to mount root from ufs :/dev/ad8s1a
manual root filesystem specification
 
Last edited:
Your disk name has changed. I don't known enough about FreeBSD but if you've chosen a virtio disk for your VM its device name should be something like "vtbd..."
 
Your disk name has changed. I don't known enough about FreeBSD but if you've chosen a virtio disk for your VM its device name should be something like "vtbd..."


I use qcow2 , I install centos in proxmox , and when I use df -h command I see
Code:
 mpfs                 750M     0  750M   0% /dev/shm
/dev/sda1             477M   57M  395M  13% /boot
 
I told you I don't know about FreeBSD. You should need to fix the root device first (in /etc/fstab and wherever else is specified for booting), then the /dev entries, maybe.
 
I told you I don't know about FreeBSD. You should need to fix the root device first (in /etc/fstab and wherever else is specified for booting), then the /dev entries, maybe.
I mount all partition and when I run this command
Code:
/usr/bin/vi  /etc/fstab
I see this and I can not change fstab
6.png
 
Looks like you have /usr on a separate partition? Although then you wouldn't be able to run vi...
Can you find the getty executable where the other screenshot claims it's missing?

To avod problems with changing device names in the future: hook in a freebsd live-cd, boot from it, assign labels[1], fixup your /etc/fstab and /boot/loader.config's vfs.root.mountfrom to use the label.

[1]https://www.freebsd.org/doc/handbook/geom-glabel.html
 
I see this and I can not change fstab

On boot, the root volume is read-only. To fix this, type
Code:
mount -u /
to update the mount from ro to rw. You can then edit the fstab file.

Also, if possible you should label your file systems with
Code:
tunefs -L
and then change the direct device names to the label names in fstab so that the underlying disk type does not matter anymore.
 
thanks , all
guys
my problem solve , I change fstab and system can boot right now.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!