Definitions

- We will use em0 network interface for the VMs and em1 to manage the software.
- We are going to install Microsoft Windows 10 Proin this Demo
- VirtIO Drivers .iso image can be download here: https://fedorapeople.org/
- Shared DataDir: /vms by default
- Storage Dir: /data2 in our example

Deploy Virtual Machine (Windows)

Prerequisites

- BVCP Installed into FreeBSD Box.
- You have shell and root access to the box (we use SSH) to demonstrate.
- You have logged in into the webinterface.

1) Prepare the environment

  1. We setup em1 interface when installing FreeBSD Host to access the box

  2. We let the VMs go throught the em0 interface because of a possible network lag (when the first bridge attached the OS will reset the em0)

  3. We Downloaded virtio and windows ISO images into the Shared DataDir (/vms/iso_images) by issuing command fetch https://[url].iso

  4. We Created the first Storage in the webinterface and named Data2 Storage

  5. We Created the first Virtual Network in the webinterface and selected the em0 NIC as gateway to bound

2) Create and Configure the Virtual Machine

  1. Create new virtual machine, fill the prefix and the descriptive name

  2. Select the virtual machine to enter configration section

  3. Display, Number of Processor Cores, Sockets, RAM, Architecture, Operating System are required and must be configured

  4. Select Create (ISO) CD-ROM then select Windows .iso image that you downloaded already, and do it again with virtio-drivers.iso

  5. Create Virtual Disk for the System, then attach the virtual disk and use VirtIO Driver

  6. Create Network interface, the legacy Intel e1000 reported as unsafe and Windows instances freezes when using it, select VirtIO driver

  7. The network interfaces are created as disabled by default due reason of accidentally shutdown the network, enable it

3) Install Windows

At the first launch the bridge and its interfaces will be reset due to the natural behavior of FreeBSD if you have one network interface, you may experience of network drop of about 2-8 seconds, so thats normal. In fact of this `issue` on production use we would recommend to use separate interface for bridge and management.
Some Setup requires user interaction to start-up such as Windows, since you can attach on the vnc/console when the VM is running, we highly recommend to enable [Wait for console] option unless you want race with the hypervisor.

  1. Start the VM and press any key for Windows Setup Bootup

  2. Navigate through basic steps until that Windows wants to see harddrives but nothing found, click on the load drivers and select: E:\viostor\w10\amd64, then you can see the harddrive.

  3. Continue Windows Installation

  4. Meanwhile you can disable option: [Wait for console]

  5. Skip networking and setting up Microsoft account because the Windows might does not detect your network card

  6. Let the Windows setup finish the task completely, then login and bring up the device manager, and select your virtio (E:) drive and install all missing drivers.

  7. Done