From ca50df8eec08e2bb5bb64ea82596f0f919ebd98d Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Jun 01 2014 16:36:13 +0000 Subject: docs: bhyve driver documentation improvements - Document 'domxml-to-native' command - Mention that the nmdm console support needs an appropriate kernel module loaded --- diff --git a/docs/drvbhyve.html.in b/docs/drvbhyve.html.in index 603be80..e75eb83 100644 --- a/docs/drvbhyve.html.in +++ b/docs/drvbhyve.html.in @@ -98,6 +98,9 @@ the following to the domain XML (Since 1.2.4): </devices> ... + +

Make sure to load the nmdm kernel module if you plan to use that.

+

Then virsh console command can be used to connect to the text console of a guest.

@@ -110,6 +113,27 @@ to let a guest boot or start a guest using:

start --console domname
+

Converting from domain XML to Bhyve args

+ +

+The virsh domxml-to-native command can preview the actual +bhyve commands that will be executed for a given domain. +It outputs two lines, the first line is a bhyveload command and +the second is a bhyve command. +

+ +

Please note that the virsh domxml-to-native doesn't do any +real actions other than printing the command, for example, it doesn't try to +find a proper TAP interface and create it, like what is done when starting +a domain; and always returns tap0 for the network interface. So +if you're going to run these commands manually, most likely you might want to +tweak them.

+ +
+# virsh -c "bhyve:///system"  domxml-to-native --format bhyve-argv --xml /path/to/bhyve.xml
+/usr/sbin/bhyveload -m 214 -d /home/user/vm1.img vm1
+/usr/sbin/bhyve -c 2 -m 214 -A -I -H -P -s 0:0,hostbridge -s 3:0,virtio-net,tap0,mac=52:54:00:5d:74:e3 -s 2:0,virtio-blk,/home/user/vm1.img -s 1,lpc -l com1,/dev/nmdm0A vm1
+