Thanks to visit codestin.com
Credit goes to github.com

Skip to content

14.3.2 - Unable to fetch vm data from... #826

@jas-s2r

Description

@jas-s2r

After creating an OpenBSD VM I get error while starting it with bstart. There were error in bconstuct-tui.

jas@msa2:~ $ sudo cbsd version
14.3.2

jas@msa2:~ $ sudo cbsd bconstruct-tui
sqlcli: Failed to prepare statement. SQLite error: not an error [CREATE TABLE IF NOT EXISTS settings (  created TIMESTAMP DATE DEFAULT (datetime('now','localtime')), astart integer default
 0, vm_cpus integer default 1, vm_ram integer default 536870912, vm_os_type text default freebsd, vm_boot text default hdd, vm_os_profile text default 0, bhyve_flags text default 0, vm_vnc
_port integer default 0, virtio_type text default "ahci-hd", bhyve_vnc_tcp_bind text default "127.0.0.1", bhyve_vnc_resolution text default "1024x768", cd_vnc_wait integer default 0, prote
cted integer default 0, hidden integer default 0, maintenance text default 0, ip4_addr text default 'DHCP', vnc_password text default '', state_time TIMESTAMP DATE DEFAULT (datetime('now',
'localtime')), vm_hostbridge text default "hostbridge", vm_iso_path text default 0, vm_console text default "tmux", vm_efi text default "none", vm_rd_port integer default 0, bhyve_generate
_acpi integer default 1, bhyve_wire_memory integer default 0, bhyve_rts_keeps_utc integer default 0, bhyve_force_msi_irq integer default 0, bhyve_x2apic_mode integer default 0, bhyve_mptab
le_gen integer default 1, bhyve_ignore_msr_acc integer default 0, bhyve_vnc_vgaconf text default 'io', media_auto_eject integer default 0, vm_cpu_topology text default 0, debug_engine text
 default "none", xhci integer default 1, cd_boot_firmware text default "bhyve", jailed text default "0", vm_iso_path2 text default 0, on_poweroff text default "destroy", on_reboot text def
ault "restart", on_crash text default "destroy", vm_zfs_guid text default "0", vnc_port integer default 0, soundhw text default "none", bhyve_cmd text default "/usr/sbin/bhyve", double_acp
i , virtio_rnd 1, hdd_boot_firmware text default "0", chrooted text default "0", uuid text default "0", bhyverun_wrapper text default "/usr/local/cbsd/share/bhyverun.sh", bhyvestop_wrapper
 text default "0", tags text default "0", fbuf integer default 1, tablet integer default 1, boot_delay integer default 0, cpuset text default "0", efi_firmware text default "/usr/local/cbs
d/upgrade/patch/efi.fd", bhyve_vnc_kbdlayout text default '0', pid_wait integer default 1, tpm text default '0', arch text default '0'  )]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN created TIMESTAMP DATE DEFAULT (datetime('now','localtime'))]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN astart integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_cpus integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_ram integer default 536870912]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_os_type text default freebsd]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_boot text default hdd]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_os_profile text default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_flags text default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_vnc_port integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN virtio_type text default "ahci-hd"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_vnc_tcp_bind text default "127.0.0.1"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_vnc_resolution text default "1024x768"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN cd_vnc_wait integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN protected integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN hidden integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN maintenance text default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN ip4_addr text default 'DHCP']
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vnc_password text default '']
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN state_time TIMESTAMP DATE DEFAULT (datetime('now','localtime'))]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_hostbridge text default "hostbridge"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_iso_path text default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_console text default "tmux"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_efi text default "none"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_rd_port integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_generate_acpi integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_wire_memory integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_rts_keeps_utc integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_force_msi_irq integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_x2apic_mode integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_mptable_gen integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_ignore_msr_acc integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_vnc_vgaconf text default 'io']
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN debug_engine text default "none"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN xhci integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN cd_boot_firmware text default "bhyve"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN jailed text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_iso_path2 text default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN on_poweroff text default "destroy"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN on_reboot text default "restart"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN on_crash text default "destroy"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vm_zfs_guid text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN vnc_port integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN soundhw text default "none"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_cmd text default "/usr/sbin/bhyve"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN double_acpi]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN virtio_rnd 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN hdd_boot_firmware text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN chrooted text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN uuid text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyverun_wrapper text default "/usr/local/cbsd/share/bhyverun.sh"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyvestop_wrapper text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN tags text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN fbuf integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN tablet integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN boot_delay integer default 0]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN cpuset text default "0"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN efi_firmware text default "/usr/local/cbsd/upgrade/patch/efi.fd"]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN bhyve_vnc_kbdlayout text default '0']
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN pid_wait integer default 1]
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN tpm text default '0']
sqlcli: Failed to prepare statement. SQLite error: not an error [ALTER TABLE settings ADD COLUMN arch text default '0']
bcreate: import lpc data from: /tmp/tmp.drgeAQo0Lb via /tmp/tmp.SxSe3TINgi dump

Global VM ZFS guid: 12530442344092340708
To edit VM properties use: cbsd bconfig jname=openbsd1
To start VM use: cbsd bstart openbsd1
To stop VM use: cbsd bstop openbsd1
To remove VM use: cbsd bremove openbsd1
For attach VM console use: cbsd blogin openbsd1
Creating openbsd1 complete: Enjoy!
auto-generate cloud-init settings: /pool/jails/jails-system/openbsd1/cloud-init
Unable to fetch vm data from: /pool/jails/jails-system/openbsd1/local.sqlite
Unable to fetch vm data from: /pool/jails/jails-system/openbsd1/local.sqlite

jas@msa2:~ $ sudo cbsd bstart jname=openbsd1
Unable to fetch vm data from: /pool/jails/jails-system/openbsd1/local.sqlite

# cd /pool/jails/jails-system/
# ls -al
total 54
drwxrwxr-x   3 root cbsd   6 Nov 11 10:15 .
drwxr-xr-x  22 cbsd cbsd  32 Oct 27 09:22 ..
-rw-rw-r--   1 root cbsd  41 Oct 19 10:40 dir.id
lrwxrwxr-x   1 root cbsd  23 Nov 11 10:15 openbsd1 -> /pool/jails/vm/openbsd1
drwxr-xr-x  18 root wheel 36 Nov  7 11:22 samba-ad
lrwxrwxr-x   1 root cbsd  22 Oct 20 23:23 ubuntu2 -> /pool/jails/vm/ubuntu2
# cd openbsd1/
# ls -al
total 116
drwxrwx---  14 cbsd cbsd     20 Nov 11 10:15 .
drwxrwxr-x   4 root cbsd      4 Nov 11 10:15 ..
-rw-r--r--   1 root cbsd 540672 Nov 11 10:15 BHYVE_UEFI_VARS.fd
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 create.d
lrwxrwxr-x   1 root cbsd     32 Nov 11 10:15 dsk1.vhd -> /dev/zvol/pool/openbsd1/dsk1.vhd
drwxrwx---   2 root cbsd      4 Nov 11 10:15 etc
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 facts.d
-rw-rw----   1 cbsd cbsd  65536 Nov 11 10:15 local.sqlite
-rw-rw----   1 cbsd cbsd  32768 Nov 11 10:15 local.sqlite-shm
-rw-rw----   1 cbsd cbsd      0 Nov 11 10:15 local.sqlite-wal
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_create.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_poststart.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_poststop.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_prestart.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_prestop.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 master_reboot.d
-rw-------   1 root cbsd   4621 Nov 11 10:15 rc.conf_openbsd1
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 remove.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 start.d
drwxr-xr-x   2 cbsd cbsd      3 Oct 19 10:39 stop.d

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions