Hi, I'm trying to boot a Windows 7 Virtual Machine I migrated from Virtual Box to Bhyve running on FreeBsd 12.1-RELEASE 64bit
Before creating the VM I converted the .vdi disk to raw using "vboxmanage clonehd "Win 7.vdi" win7.img --format raw".
Then created the VM:
And dd'ed the disk:
The config file is this:
And the content of my /vms/Windows7 directory is this:
The problem I'm facing is that the VM desn't boot, showing the UEFI interactive shell after booting and connecting using VNC.
This is the vm-bhyve.log file:
Does anyone know why this isn't booting?
Before creating the VM I converted the .vdi disk to raw using "vboxmanage clonehd "Win 7.vdi" win7.img --format raw".
Then created the VM:
Code:
sudo vm create -t windows Windows7 disk0_opts="sectorsize=512"
And dd'ed the disk:
Code:
sudo dd if=win7.img of=/vms/Windows7/disk0.img
The config file is this:
Code:
loader="uefi"
graphics="yes"
xhci_mouse="yes"
cpu=1
memory=4G
# put up to 8 disks on a single ahci controller.
# without this, adding a disk pushes the following network devices onto higher slot numbers,
# which causes windows to see them as a new interface
ahci_device_limit="8"
# ideally this should be changed to virtio-net and drivers installed in the guest
# e1000 works out-of-the-box
network0_type="e1000"
network0_switch="public"
disk0_type="ahci-hd"
disk0_name="disk0.img"
disk0_opts="sectorsize=512"
# windows expects the host to expose localtime by default, not UTC
utctime="no"
uuid="ec6c2436-df2a-11ea-904a-b42e99ead36c"
network0_mac="58:9c:fc:06:7d:b9"
And the content of my /vms/Windows7 directory is this:
Code:
ls -lah /vms/Windows7/
total 52415540
drwxr-xr-x 2 root wheel 7B 15 ago. 17:26 .
drwxr-xr-x 7 root wheel 7B 15 ago. 16:10 ..
-rw-r--r-- 1 root wheel 44B 15 ago. 17:26 console
-rw------- 1 root wheel 50G 15 ago. 17:21 disk0.img
-rw-r--r-- 1 root wheel 17B 15 ago. 17:26 run.lock
-rw-r--r-- 1 root wheel 12K 15 ago. 17:26 vm-bhyve.log
-rw-r--r-- 1 root wheel 671B 15 ago. 17:25 Windows7.conf
The problem I'm facing is that the VM desn't boot, showing the UEFI interactive shell after booting and connecting using VNC.
This is the vm-bhyve.log file:
Code:
ago. 15 17:22:08: starting bhyve (run 1)
ago. 15 17:25:56: bhyve exited with status 1
ago. 15 17:25:56: destroying network device tap2
ago. 15 17:25:56: stopped
ago. 15 17:25:59: initialising
ago. 15 17:25:59: [loader: uefi]
ago. 15 17:25:59: [cpu: 1]
ago. 15 17:25:59: [memory: 4G]
ago. 15 17:25:59: [hostbridge: standard]
ago. 15 17:25:59: [com ports: com1]
ago. 15 17:25:59: [uuid: ec6c2436-df2a-11ea-904a-b42e99ead36c]
ago. 15 17:25:59: [utctime: no]
ago. 15 17:25:59: [debug mode: no]
ago. 15 17:25:59: [primary disk: disk0.img]
ago. 15 17:25:59: [primary disk dev: file]
ago. 15 17:25:59: initialising network device tap2
ago. 15 17:26:00: adding tap2 -> vm-public (public addm)
ago. 15 17:26:00: bring up tap2 -> vm-public (public addm)
ago. 15 17:26:00: dynamically allocated port 5900 for vnc connections
ago. 15 17:26:00: booting
ago. 15 17:26:00: [bhyve options: -c 1 -m 4G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -U ec6c2436-df2a-11ea-904a-b42e99ead36c]
ago. 15 17:26:00: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vms/Windows7/disk0.img,sectorsize=512 -s 5:0,e1000,tap2,mac=58:9c:fc:06:7d:b9 -s 6:0,fbuf,tcp=0.0.0.0:5900 -s 7:0,xhci,tablet]
ago. 15 17:26:00: [bhyve console: -l com1,/dev/nmdm-Windows7.1A]
ago. 15 17:26:00: [bhyve iso device: -s 3:0,ahci-cd,/vms/.config/null.iso]
Does anyone know why this isn't booting?