Henning Kessler
Contributor
- Joined
- Feb 10, 2015
- Messages
- 143
Hello,
I am trying to install and run a linux-based (CentOS 6.x) virtual PBX appliance inside Bhyve on my 11.2-U5. This is how I tried to make it happen:
Create the virtual interface:
Create the zvol for the virtual disk:
contents of the device.map called starfade.map:
loading the linux kernel:
starting the vm:
after this I can run a successful installation and after the restart I am back at the prompt destroying the instance of this machine:
then I am loading the kernel from the virtual disk:
this is how the grub shell looks like:
Then when I am trying to boot the machine it panics:
Can someone help me with this??
I am trying to install and run a linux-based (CentOS 6.x) virtual PBX appliance inside Bhyve on my 11.2-U5. This is how I tried to make it happen:
Create the virtual interface:
Code:
sysctl net.link.tap.up_on_open=1 ifconfig tap1 create ifconfig bridge0 addm tap1
Create the zvol for the virtual disk:
Code:
zfs create -V 40G -o volmode=dev mypool/bhyve/starface-test
contents of the device.map called starfade.map:
Code:
(hd0) /dev/zvol/mypool/bhyve/starface-test (cd0) /mnt/mypool/data/software/Bhyve/Starface-06.07.00.18-20190823-095603_x86_64.iso
loading the linux kernel:
Code:
grub-bhyve -m starface.map -r cd0 -M 2048M starface
starting the vm:
Code:
bhyve -A -H -P -s 0:0,hostbridge \ -s 1:0,lpc -s 2:0,virtio-net,tap1 \ -s 3:0,virtio-blk,/dev/zvol/mypool/bhyve/starface-test \ -s 4:0,ahci-cd,/mnt/mypool/data/software/Bhyve/Starface-06.07.00.18-20190823-095603_x86_64.iso \ -l com1,stdio \ -c 4 \ -m 2048M \ starface
after this I can run a successful installation and after the restart I am back at the prompt destroying the instance of this machine:
Code:
bhyvectl --destroy --vm=starface
then I am loading the kernel from the virtual disk:
Code:
grub-bhyve -m starface.map -r hd0,msdos1 -M 2048M starface
this is how the grub shell looks like:
Code:
grub> ls (hd0) (hd0,msdos2) (hd0,msdos1) (cd0) (host) (lvm/VolGroup-lv_swap) (lvm/VolGroup-lv_root) grub> ls (hd0, Possible partitions are: Partition hd0,msdos1: Filesystem type ext* - Last modification time 2019-09-12 17:27:48 Thursday, UUID e9358d36-949f-4f63-b39f-c0ce600df27a - Partition start at 2048 - Total size 1024000 sectors Partition hd0,msdos2: No known filesystem detected - Partition start at 1026048 - Total size 82860032 sectors grub> ls (hd0,msdos1) Partition hd0,msdos1: Filesystem type ext* - Last modification time 2019-09-12 17:27:48 Thursday, UUID e9358d36-949f-4f63-b39f-c0ce600df27a - Partition start at 2048 - Total size 1024000 sectors grub> ls (hd0,msdos1)/ lost+found/ grub/ efi/ initramfs-2.6.32-754.15.3.el6.x86_64.img System.map-2.6.32-754.15.3.el6.x86_64 config-2.6.32-754.15.3.el6.x86_64 symvers-2.6.32-754.15.3.el6.x86_64.gz vmlinuz-2.6.32-754.15.3.el6.x 86_64 grub> linux (hd0,msdos1)/vmlinuz-2.6.32-754.15.3.el6.x86_64 root=/dev/mapper/VolGroup-lv_root grub> initrd (hd0,msdos1)/initramfs-2.6.32-754.15.3.el6.x86_64.img grub> boot
Then when I am trying to boot the machine it panics:
Code:
Refined TSC clocksource calibration: 2293.128 MHz. Switching to clocksource tsc Unhandled ps2 mouse command 0x88 input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input3 dracut Warning: No root device "block:/dev/mapper/VolGroup-lv_root" found dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line. dracut Warning: Signal caught! dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line. Kernel panic - not syncing: Attempted to kill init! Pid: 1, comm: init Not tainted 2.6.32-754.15.3.el6.x86_64 #1 Call Trace: [<ffffffff81558bca>] ? panic+0xa7/0x18b [<ffffffff81130370>] ? perf_event_exit_task+0xc0/0x340 [<ffffffff81086433>] ? do_exit+0x853/0x860 [<ffffffff811a33b5>] ? fput+0x25/0x30 [<ffffffff81086498>] ? do_group_exit+0x58/0xd0 [<ffffffff81086527>] ? sys_exit_group+0x17/0x20 [<ffffffff81564357>] ? system_call_fastpath+0x35/0x3a Killed
Can someone help me with this??