Difference between revisions of "Vnx-install-fedora23"

From VNX
Jump to: navigation, search
Line 6: Line 6:
 
<li>Install packages:</li>
 
<li>Install packages:</li>
 
<pre>  
 
<pre>  
dnf install -y qemu-kvm libvirt virt-manager virt-viewer perl-XML-LibXML \
+
dnf install -y qemu-kvm libvirt virt-manager virt-viewer perl-XML-LibXML
                perl-Sys-Virt perl-NetAddr-IP perl-XML-LibXML perl-XML-Tidy \
+
dnf install -y perl-Sys-Virt perl-NetAddr-IP perl-XML-LibXML perl-XML-Tidy  
                perl-AppConfig perl-Readonly perl-Net-Pcap perl-Net-IPv6Addr \
+
dnf install -y perl-AppConfig perl-Readonly perl-Net-Pcap perl-Net-IPv6Addr
                perl-Net-Telnet perl-IO-Pty-Easy  perl-Exception-Class pv \
+
dnf install -y perl-Net-Telnet perl-IO-Pty-Easy  perl-Exception-Class pv
                wmctrl uml_utilities perl-DBI libxml2-devel perl-Net-IP \
+
dnf install -y wmctrl uml_utilities perl-DBI libxml2-devel perl-Net-IP  
                roxterm xterm graphviz tree curl w3m  picocom expect pv \
+
dnf install -y roxterm xterm graphviz tree curl w3m  picocom expect pv
                tunctl screen wget lxc lxc-extra lxc-templates
+
dnf install -y tunctl screen wget lxc lxc-extra lxc-templates
 
</pre>
 
</pre>
 +
 +
<li>Tune libvirt configuration to work with VNX. In particular, edit /etc/libvirt/qemu.conf file and set the following parameters:</li>
 +
security_driver = "none"
 +
user = "root"
 +
group = "root"
 +
cgroup_device_acl = [
 +
    "/dev/null", "/dev/full", "/dev/zero",
 +
    "/dev/random", "/dev/urandom",
 +
    "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
 +
    "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio", "/dev/net/tun"
 +
]
 +
(you have to add "/dev/net/tun") and restart libvirtd for the changes to take effect:
 +
sudo systemctl restart libvirt-bin
  
 
<li>Install VNX:</li>
 
<li>Install VNX:</li>

Revision as of 22:07, 13 February 2016

VNX Installation over Fedora

Follow this steps to install VNX over Fedora 23:

  • Install packages:
  •  
    dnf install -y qemu-kvm libvirt virt-manager virt-viewer perl-XML-LibXML
    dnf install -y perl-Sys-Virt perl-NetAddr-IP perl-XML-LibXML perl-XML-Tidy 
    dnf install -y perl-AppConfig perl-Readonly perl-Net-Pcap perl-Net-IPv6Addr
    dnf install -y perl-Net-Telnet perl-IO-Pty-Easy  perl-Exception-Class pv
    dnf install -y wmctrl uml_utilities perl-DBI libxml2-devel perl-Net-IP 
    dnf install -y roxterm xterm graphviz tree curl w3m  picocom expect pv
    dnf install -y tunctl screen wget lxc lxc-extra lxc-templates
    
  • Tune libvirt configuration to work with VNX. In particular, edit /etc/libvirt/qemu.conf file and set the following parameters:
  • security_driver = "none"
    user = "root"
    group = "root"
    cgroup_device_acl = [
       "/dev/null", "/dev/full", "/dev/zero",
       "/dev/random", "/dev/urandom",
       "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
       "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio", "/dev/net/tun"
    ]
    

    (you have to add "/dev/net/tun") and restart libvirtd for the changes to take effect:

    sudo systemctl restart libvirt-bin
    
  • Install VNX:
  • mkdir /tmp/vnx-update
    cd /tmp/vnx-update
    wget -N http://vnx.dit.upm.es/vnx/vnx-latest.tgz
    tar xfvz vnx-latest.tgz
    cd vnx-*
    ./install_vnx
    
  • Create the VNX config file (/etc/vnx.conf). You just can move the sample config file:
  • mv /usr/share/vnx/etc/vnx.conf.sample /etc/vnx.conf
    
    li>Download root file systems from http://idefix.dit.upm.es/download/vnx/filesystems and install them following these instructions === Additional install steps for Dynamips support ===