What is wrong!? Can not Create FreeBSD VM, due to "Read-only file system"

Louis2

Contributor
Joined
Sep 7, 2019
Messages
177
Hello,

I am playing around with VM's and trying to set up some. One of the issues I am facing is that I can not install FreeBSD (12.3 & 13) in VM's.
After I defined the VM I start them. Installation begins and crashes. Presumably due to a "Read-only file system" or more precise "the installer can not write to the disk".

I did try with the following options

BIOS
- UEFI

For the CPU
- virtual 2, cores 2, threads 2
- cpu-mode: hostmodel (also tested with "host passthrough"_
- cpu model "--"

For the disk
- defining a dataset
- removing the dataset and defining a zvol
- using virtio (also tested with "ahci")
- allowing "libvirt-qemu" group to access and write to the zvol (/dataset)
as advised here https://www.truenas.com/community/threads/cant-get-a-vm-and-some-apps-to-launch-in-scale.95418/

RAM
- 2GiB

ZVOL
- 100 GiB

Despite this effort .... I did not manage to install ....
Note that
- zfs does not indicate any errors and
- I did manage to install Fedora35, without changing things to zvol rights etc

Below some logging


Louis


Starting devd.
Starting Network: vtnet0.
vtnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:a0:98:0d:23:1d
media: Ethernet 10Gbase-T <full-duplex>
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Autoloading module: uhid
Autoloading module: wmt
uhid0 on uhub0
uhid0: <QEMU QEMU USB Tablet, class 0/0, rev 2.00/0.00, addr 1> on usbus0
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Updating /var/run/os-release mktemp: mkstemp failed on /tmp/os-release.BtBdcbDO: Read-only file system
eval: cannot create : No such file or directory
install: : No such file or directory
done.
Updating motd: /etc/motd is not writable, update failed.
Starting syslogd.


Fatal trap 12: page fault while in kernel mode
cpuid = 5; apic id = 05
fault virtual address = 0xfffffe001eccb0c0
fault code = supervisor write data, page not present
instruction pointer = 0x20:0xffffffff810f947d
stack pointer = 0x28:0xfffffe001ecc9850
frame pointer = 0x28:0xfffffe001ecc9850
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 629 (syslogd)
trap number = 12
panic: page fault
cpuid = 5
time = 1641303037
KDB: stack backtrace:
#0 0xffffffff80c2d465 at kdb_backtrace+0x65
#1 0xffffffff80be15fb at vpanic+0x17b
#2 0xffffffff80be1473 at panic+0x43
#3 0xffffffff810fd9a1 at trap_fatal+0x391
#4 0xffffffff810fd9ff at trap_pfault+0x4f
#5 0xffffffff810fd046 at trap+0x286
#6 0xffffffff810d5098 at calltrap+0x8
#7 0xffffffff810d9375 at fpugetregs+0x165
#8 0xffffffff810dc6dc at sendsig+0x16c
#9 0xffffffff80be6697 at postsig+0x217
#10 0xffffffff80c43017 at ast+0x317
#11 0xffffffff810d86e9 at doreti_ast+0x1f
Uptime: 6s
Automatic reboot in 15 seconds - press a key on the console to abort
 
Top