Discussion:
Help needed for bhyve : vm_create: Device not configured
(too old to reply)
Manish Jain
2016-07-08 17:15:33 UTC
Permalink
I am trying to see if I can achieve Windows XP virtualization with my
FreeBSD 10.2 amd64 host. For a first step, I am trying to get a FreeBSD
10.2 guest up and running with the instructions at :
https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html

But I just get the error message "vm_create: Device not configured".
What could be wrong ? My commands and loaded kld's are listed underneath.

Thank for any help.

kldload vmm
ifconfig tap0 create
sysctl net.link.tap.up_on_open=1
ifconfig bridge0 create
ifconfig bridge0 addm re0 addm tap0
ifconfig bridge0 up

# sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d wxp.img
-i -I FreeBSD-10.3-RELEASE-amd64-disc1.iso fbsd10dot3vm
Launching virtual machine "fbsd10dot3vm" ...
vm_create: Device not configured

# kldstat
Id Refs Address Size Name
1 76 0xffffffff80200000 179ddb0 kernel
2 1 0xffffffff81a11000 11efa ext2fs.ko
3 1 0xffffffff81a23000 56aa fdescfs.ko
4 1 0xffffffff81a29000 9da0 linprocfs.ko
5 2 0xffffffff81a33000 43c7c linux.ko
6 1 0xffffffff81a77000 55ad linsysfs.ko
7 1 0xffffffff81a7d000 2baa uhid.ko
8 1 0xffffffff81a80000 358e ums.ko
9 2 0xffffffff81a84000 29b2 vboxnetflt.ko
10 2 0xffffffff81a87000 b9db netgraph.ko
11 2 0xffffffff81a93000 45340 vboxdrv.ko
12 1 0xffffffff81ad9000 40fa ng_ether.ko
13 1 0xffffffff81ade000 3f64 vboxnetadp.ko
14 1 0xffffffff81ae2000 df5f fuse.ko
15 1 0xffffffff81af0000 11785a radeonkms.ko
16 1 0xffffffff81c08000 522db drm2.ko
17 4 0xffffffff81c5b000 22bb iicbus.ko
18 1 0xffffffff81c5e000 1a51 iic.ko
19 1 0xffffffff81c60000 1e48 iicbb.ko
20 1 0xffffffff81c62000 1074 radeonkmsfw_RS780_pfp.ko
21 1 0xffffffff81c64000 5b6b radeonkmsfw_RS780_me.ko
22 1 0xffffffff81c6a000 1368 radeonkmsfw_R600_rlc.ko
23 1 0xffffffff81c6c000 1b1baf vmm.ko
24 1 0xffffffff81e1e000 55fc if_tap.ko
25 1 0xffffffff81e24000 93b5 if_bridge.ko
26 1 0xffffffff81e2e000 53fa bridgestp.ko
--
Regards

Manish Jain
Shane Ambler
2016-07-09 04:22:23 UTC
Permalink
Post by Manish Jain
I am trying to see if I can achieve Windows XP virtualization with my
FreeBSD 10.2 amd64 host. For a first step, I am trying to get a FreeBSD
https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html
But I just get the error message "vm_create: Device not configured".
What could be wrong ? My commands and loaded kld's are listed underneath.
Thank for any help.
kldload vmm
ifconfig tap0 create
sysctl net.link.tap.up_on_open=1
ifconfig bridge0 create
ifconfig bridge0 addm re0 addm tap0
ifconfig bridge0 up
# sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d wxp.img
-i -I FreeBSD-10.3-RELEASE-amd64-disc1.iso fbsd10dot3vm
Launching virtual machine "fbsd10dot3vm" ...
vm_create: Device not configured
Did you create wxp.img that you want to use as the drive?
The truncate command between the ifconfig and vmrun.sh is the one that
creates the empty file to be used.


Unless you are running a very recent build of FreeBSD current
(last 5 days) you will need some extra work for windows.

To get windows running you need to setup an unattended install for
windows as there is no gui available during boot.

https://wiki.freebsd.org/bhyve/Windows
--
FreeBSD - the place to B...Software Developing

Shane Ambler
Priyadarshan
2016-07-09 08:40:39 UTC
Permalink
Post by Manish Jain
I am trying to see if I can achieve Windows XP virtualization with my
FreeBSD 10.2 amd64 host. For a first step, I am trying to get a FreeBSD
https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html
But I just get the error message "vm_create: Device not configured".
What could be wrong ? My commands and loaded kld's are listed underneath.
Thank for any help.
kldload vmm
ifconfig tap0 create
sysctl net.link.tap.up_on_open=1
ifconfig bridge0 create
ifconfig bridge0 addm re0 addm tap0
ifconfig bridge0 up
# sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d wxp.img
-i -I FreeBSD-10.3-RELEASE-amd64-disc1.iso fbsd10dot3vm
Launching virtual machine "fbsd10dot3vm" ...
vm_create: Device not configured
# kldstat
Id Refs Address Size Name
1 76 0xffffffff80200000 179ddb0 kernel
2 1 0xffffffff81a11000 11efa ext2fs.ko
3 1 0xffffffff81a23000 56aa fdescfs.ko
4 1 0xffffffff81a29000 9da0 linprocfs.ko
5 2 0xffffffff81a33000 43c7c linux.ko
6 1 0xffffffff81a77000 55ad linsysfs.ko
7 1 0xffffffff81a7d000 2baa uhid.ko
8 1 0xffffffff81a80000 358e ums.ko
9 2 0xffffffff81a84000 29b2 vboxnetflt.ko
10 2 0xffffffff81a87000 b9db netgraph.ko
11 2 0xffffffff81a93000 45340 vboxdrv.ko
12 1 0xffffffff81ad9000 40fa ng_ether.ko
13 1 0xffffffff81ade000 3f64 vboxnetadp.ko
14 1 0xffffffff81ae2000 df5f fuse.ko
15 1 0xffffffff81af0000 11785a radeonkms.ko
16 1 0xffffffff81c08000 522db drm2.ko
17 4 0xffffffff81c5b000 22bb iicbus.ko
18 1 0xffffffff81c5e000 1a51 iic.ko
19 1 0xffffffff81c60000 1e48 iicbb.ko
20 1 0xffffffff81c62000 1074 radeonkmsfw_RS780_pfp.ko
21 1 0xffffffff81c64000 5b6b radeonkmsfw_RS780_me.ko
22 1 0xffffffff81c6a000 1368 radeonkmsfw_R600_rlc.ko
23 1 0xffffffff81c6c000 1b1baf vmm.ko
24 1 0xffffffff81e1e000 55fc if_tap.ko
25 1 0xffffffff81e24000 93b5 if_bridge.ko
26 1 0xffffffff81e2e000 53fa bridgestp.ko
--
Regards
Manish Jain
Hi,

Although I have not tried yet (I am waiting for upcoming FreeBSD
11-RELEASE), I believe bhyve supports Windows only from SVN tag r288524
onward:

https://wiki.freebsd.org/bhyve/Windows

Priyadarshan
Manish Jain
2016-07-09 10:51:07 UTC
Permalink
Yes, that was the first command (sorry, I did not include it in the output) :

truncate -s 20G wxp.img


On Sat, Jul 9, 2016 at 9:52 AM, Shane Ambler <***@ShaneWare.Biz> wrote:
On 09/07/2016 02:45, Manish Jain wrote:
I am trying to see if I can achieve Windows XP virtualization with my FreeBSD 10.2 amd64 host. For a first step, I am trying to get a FreeBSD 10.2 guest up and running with the instructions at : https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html But I just get the error message "vm_create: Device not configured". What could be wrong ? My commands and loaded kld's are listed underneath. Thank for any help. kldload vmm ifconfig tap0 create sysctl net.link.tap.up_on_open=1 ifconfig bridge0 create ifconfig bridge0 addm re0 addm tap0 ifconfig bridge0 up # sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d wxp.img -i -I FreeBSD-10.3-RELEASE-amd64-disc1.iso fbsd10dot3vm Launching virtual machine "fbsd10dot3vm" ... vm_create: Device not configured
Did you create wxp.img that you want to use as the drive? The truncate command between the ifconfig and vmrun.sh is the one that creates the empty file to be used. Unless you are running a very recent build of FreeBSD current (last 5 days) you will need some extra work for windows. To get windows running you need to setup an unattended install for windows as there is no gui available during boot. https://wiki.freebsd.org/bhyve/Windows
--
FreeBSD - the place to B...Software Developing Shane Ambler

Loading...