Page 1 of 1

[HOWTO] Install KVM VIRTIO

Posted: 20 Jan 2013 19:52
by trendco
Hi,

for better Speed (Net & Disk) with KVM (for example PROXMOX), you can installl VIRTIO-Drivers:

I use NAS4FREE Version 9.1.0.1 - Sandstorm

- Download Drivers from http://people.freebsd.org/~kuriyama/virtio/ -> http://people.freebsd.org/~kuriyama/vir ... 242658.tbz
- NAS4FREE Webinterface -> System -> Packages -> Press "+" -> search the Download File -> Press "Install"
- NAS4FREE Webinterface -> Advanced -> File Editor -> Press "..." -> Click "boot" -> Click "loader.conf" -> Click "Ok" -> Click "Load" -> Insert the following at the end:

Code: Select all

virtio_load="YES"
virtio_pci_load="YES"
virtio_blk_load="YES"
if_vtnet_load="YES"
virtio_balloon_load="YES"
- Click "Save"
- Shutdown the NAS4FREE VM
- Now you can change the Network Interface to "virtio" and add Virtio-Disks
- Boot Up the VM and have Fun with the Speed-Upgrade :)

(If you've no Access to the Web Interface now, you have to configure the network IP in the console setup (2) again)

Re: [HOWTO] Install KVM VIRTIO

Posted: 05 Feb 2013 14:20
by mwapuleni
Hi,

I am tring to set this up but I can't find Packages under System. I use same version as you.

Re: [HOWTO] Install KVM VIRTIO

Posted: 06 Feb 2013 18:24
by rostreich
mwapuleni wrote:Hi,

I am tring to set this up but I can't find Packages under System. I use same version as you.
I think this works only on n4f FULL and not embedded.

Re: [HOWTO] Install KVM VIRTIO

Posted: 07 Feb 2013 23:50
by mwapuleni
You are right, I needed full version, it is working now. Thanks.

Re: [HOWTO] Install KVM VIRTIO

Posted: 08 Feb 2013 02:41
by siftu
What performance figures are you guys getting with simple iperf and dd tests under PROXMOX? Last I tried with a standard linux distro (Arch) I wasnt so impressed. I might give it a go again

Re: [HOWTO] Install KVM VIRTIO

Posted: 08 Feb 2013 03:58
by siftu
I tried again and got really good iperf results, disk benchmark wouldnt do it justice on my laptop.. go VIRTIO

Re: [HOWTO] Install KVM VIRTIO

Posted: 13 Mar 2013 18:40
by asitechsupport
trendco wrote:Hi,
- Click "Save"
- Shutdown the NAS4FREE VM
- Now you can change the Network Interface to "virtio" and add Virtio-Disks
- Boot Up the VM and have Fun with the Speed-Upgrade :)

(If you've no Access to the Web Interface now, you have to configure the network IP in the console setup (2) again)
Okay, so maybe I'm missing something... When I follow the steps of this post (I'm using PROXMOX v2.2, installed the same version of NAS4FREE and the package from the link), after shutdown of NAS4FREE I changed the network type to VIRTIO, and when I start NAS4FREE it has no network interface. When I attempt to set it up it doesn't detect any interfaces, and the automated routine wants you to plug in the network cord to see the interface, which of course can't be done.

So... I'm a bit rusty on my BSD (using Linux for a while now) how do I get NAS4FREE to see the new VIRTIO network interface?

Re: [HOWTO] Install KVM VIRTIO

Posted: 13 Mar 2013 19:50
by trendco
I used also Proxmox-2.2 and since a few days Proxmox-2.3 and it works as described above.
You did the entries in the loader.conf ?

Try to use the 9.1 driver: http://people.freebsd.org/~kuriyama/vir ... 242658.tbz

Re: [HOWTO] Install KVM VIRTIO

Posted: 14 Mar 2013 18:25
by asitechsupport
trendco wrote:I used also Proxmox-2.2 and since a few days Proxmox-2.3 and it works as described above.
You did the entries in the loader.conf ?

Try to use the 9.1 driver: http://people.freebsd.org/~kuriyama/vir ... 242658.tbz
Well... it's working now! I'll have to do some testing to understand why it didn't work the first few times I tried... If I come up with anything I'll report it back here for others who might have difficulties.

Re: [HOWTO] Install KVM VIRTIO

Posted: 07 Feb 2014 08:21
by LenIVEc
how can i see Nas4free version (embedded or full)??
I install "full", but don't see packages under system.

Re: [HOWTO] Install KVM VIRTIO

Posted: 07 Feb 2014 08:30
by raulfg3
LenIVEc wrote:how can i see Nas4free version (embedded or full)??
I install "full", but don't see packages under system.
in status| system see Platform, can be embeded or full
http://wiki.nas4free.org/doku.php?id=do ... tus_system

Re: [HOWTO] Install KVM VIRTIO

Posted: 07 Feb 2014 11:34
by LenIVEc
oops.... ?!

Re: [HOWTO] Install KVM VIRTIO

Posted: 07 Feb 2014 12:39
by raulfg3
you have live CD, so really you Can't have a installed Nas4Free and due nature of live version , all changes done in actual sesion are gone when reboot.