Difference between revisions of "Vnx-install-root fs"

From VNX
Jump to: navigation, search
(KVM root fylesystems)
(Downloading instructions)
 
(33 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
VNX repository at http://vnx.dit.upm.es/vnx/filesystems.  
 
VNX repository at http://vnx.dit.upm.es/vnx/filesystems.  
  
All root filesystems but Fedora and CentOS ones have a "'''root'''" and a "'''vnx'''" account with password "'''xxxx'''". Fedora and CentOS systems have password "'''xxxxxx'''".
+
All root filesystems but Fedora and CentOS ones have a "'''root'''" and a "'''vnx'''" account with password "'''xxxx'''". Fedora and CentOS systems have password "'''xxxxxx'''" (a minimum of six chars are needed in this case).
  
 
== Downloading instructions ==
 
== Downloading instructions ==
Use the commands below to download and install root filesystems (the creation of the symbolic link at the end is optional; create it if you want a rootfs to be the default filesystem to be used by the example scenarios).
+
You can use two methods to download and install VNX root filesystems:
 +
<ul>
 +
<li>Use the '''vnx_download_rootfs''' tools distributed with VNX:</li>
 +
<ul>
 +
<li>Type:</li>
 +
cd /usr/share/vnx/filesystems
 +
vnx_download_rootfs
 +
<li>The tool will show you the root filesystems available and allow to choose the ones you want to download and install.</li>
 +
<li>Use '-p string' option to show only the root filesystems with 'string' in their name. For example, to see lxc root filesystems type: vnx_download_rootfs -p lxc</li>
 +
<li>Use '-s' option to just show the root filesystems available in VNX repository and exit.</li>
 +
<li>Use '-l' option if you want the tool to create the 'rootfs_*' soft links used by VNX example scenarios.</li>
 +
<li>Use '-r <rootfsfilename>' if you want to download a specific root filesystem in no interactive way.</li>
 +
</ul>
 +
<li>Download them manually form the VNX repository.</li>
 +
<ul>
 +
<li>To uncompress a KVM rootfs use:</li>
 +
bunzip2 vnx_rootfs_kvm_...
 +
<li>To uncompress an LXC rootfs use:</li>
 +
tar --numeric-owner -xzpf vnx_rootfs_lxc_...
 +
</ul>
 +
</ul>
 +
 
 +
'''IMPORTANT''': KVM root filesystems are not updated any time VNX version changes. So, after download and install a rootfs, it is highly recomended to update the VNXACE daemon following the procedure described [[Vnx-modify-rootfs|here]].
  
IMPORTANT: root filesystems are not updated any time VNX version changes. So, after download and install a rootfs, you have to update the VNXACE daemon following the procedure described [[Vnx-modify-rootfs|here]].
+
=== KVM root fylesystems available ===
  
=== KVM root fylesystems ===
+
See the current open source filesystems available VNX repository at http://vnx.dit.upm.es/vnx/filesystems (see 'old' directory for old outdated filesystems).
  
 +
For legal reasons we cannot distribute Windows XP, Windows 7, Dynamips or Olive root filesystems. See [[Docintro|VNX documentation]] for detailed recipes to create or use these type of root filesystems.
 +
<!--
 
<ul>
 
<ul>
 
<li>'''Ubuntu''':</li>
 
<li>'''Ubuntu''':</li>
 
<ul>
 
<ul>
<li>'''Ubuntu 12.04 (v024)''':</li>
 
cd /usr/share/vnx/filesystems
 
wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2.bz2
 
bunzip2 vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2.bz2
 
ln -s vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2 rootfs_ubuntu
 
 
<li>'''Ubuntu 12.04 (v024)''':</li>
 
<li>'''Ubuntu 12.04 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 26: Line 45:
 
  bunzip2 vnx_rootfs_kvm_ubuntu-12.04-v024.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_ubuntu-12.04-v024.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_ubuntu-12.04-v024.qcow2 rootfs_ubuntu
 
  ln -s vnx_rootfs_kvm_ubuntu-12.04-v024.qcow2 rootfs_ubuntu
<li>'''Ubuntu 11.04 (v024)''':</li>
+
<li>'''Ubuntu 12.04 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2 rootfs_ubuntu
+
  ln -s vnx_rootfs_kvm_ubuntu-12.04-gui-v024.qcow2 rootfs_ubuntu
 
<li>'''Ubuntu 11.04 (v024)''':</li>
 
<li>'''Ubuntu 11.04 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 36: Line 55:
 
  bunzip2 vnx_rootfs_kvm_ubuntu-11.04-v024.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_ubuntu-11.04-v024.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_ubuntu-11.04-v024.qcow2 rootfs_ubuntu
 
  ln -s vnx_rootfs_kvm_ubuntu-11.04-v024.qcow2 rootfs_ubuntu
<li>'''Ubuntu 10.10 (v024)''':</li>
+
<li>'''Ubuntu 11.04 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2 rootfs_ubuntu
+
  ln -s vnx_rootfs_kvm_ubuntu-11.04-gui-v024.qcow2 rootfs_ubuntu
 
<li>'''Ubuntu 10.10 (v024)''':</li>
 
<li>'''Ubuntu 10.10 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 46: Line 65:
 
  bunzip2 vnx_rootfs_kvm_ubuntu-10.10-v024.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_ubuntu-10.10-v024.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_ubuntu-10.10-v024.qcow2 rootfs_ubuntu
 
  ln -s vnx_rootfs_kvm_ubuntu-10.10-v024.qcow2 rootfs_ubuntu
<li>'''Ubuntu 10.04 (v024)''':</li>
+
<li>'''Ubuntu 10.10 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2 rootfs_ubuntu
+
  ln -s vnx_rootfs_kvm_ubuntu-10.10-gui-v024.qcow2 rootfs_ubuntu
 
<li>'''Ubuntu 10.04 (v024)''':</li>
 
<li>'''Ubuntu 10.04 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 56: Line 75:
 
  bunzip2 vnx_rootfs_kvm_ubuntu-10.04-v024.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_ubuntu-10.04-v024.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_ubuntu-10.04-v024.qcow2 rootfs_ubuntu
 
  ln -s vnx_rootfs_kvm_ubuntu-10.04-v024.qcow2 rootfs_ubuntu
 +
<li>'''Ubuntu 10.04 with GUI (v024)''':</li>
 +
cd /usr/share/vnx/filesystems
 +
wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2.bz2
 +
bunzip2 vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2.bz2
 +
ln -s vnx_rootfs_kvm_ubuntu-10.04-gui-v024.qcow2 rootfs_ubuntu
 
<li>'''Ubuntu 9.10 (v024)''':</li>
 
<li>'''Ubuntu 9.10 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 64: Line 88:
 
<li>'''Fedora''':</li>
 
<li>'''Fedora''':</li>
 
<ul>
 
<ul>
<li>'''Fedora 14 (v024)''':</li>
+
<li>'''Fedora 16 (v024)''':</li>
 +
cd /usr/share/vnx/filesystems
 +
wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-16-v024.qcow2.bz2
 +
bunzip2 vnx_rootfs_kvm_fedora-16-v024.qcow2.bz2
 +
ln -s vnx_rootfs_kvm_fedora-16-v024.qcow2 rootfs_fedora
 +
<li>'''Fedora 16 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-14-gui-v024.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-16-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_fedora-14-gui-v024.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_fedora-16-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_fedora-14-gui-v024.qcow2 rootfs_fedora
+
  ln -s vnx_rootfs_kvm_fedora-16-gui-v024.qcow2 rootfs_fedora
 
<li>'''Fedora 14 (v024)''':</li>
 
<li>'''Fedora 14 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
Line 74: Line 103:
 
  bunzip2 vnx_rootfs_kvm_fedora-14-v024.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_fedora-14-v024.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_fedora-14-v024.qcow2 rootfs_fedora
 
  ln -s vnx_rootfs_kvm_fedora-14-v024.qcow2 rootfs_fedora
<li>'''Fedora 16 (v024)''':</li>
+
<li>'''Fedora 14 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-16-gui-v024.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-14-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_fedora-16-gui-v024.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_fedora-14-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_fedora-16-gui-v024.qcow2 rootfs_fedora
+
  ln -s vnx_rootfs_kvm_fedora-14-gui-v024.qcow2 rootfs_fedora
<li>'''Fedora 16 (v024)''':</li>
 
cd /usr/share/vnx/filesystems
 
wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-16-v024.qcow2.bz2
 
bunzip2 vnx_rootfs_kvm_fedora-16-v024.qcow2.bz2
 
ln -s vnx_rootfs_kvm_fedora-16-v024.qcow2 rootfs_fedora
 
 
</ul>
 
</ul>
  
<li>'''Freebsd:'''</li>
+
<li>'''FreeBSD''':</li>
 
<ul>
 
<ul>
<li>'''Freebsd 8.2 (v022):'''</li>
+
<li>'''FreeBSD 9.0 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-8.2-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-9.0-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_freebsd-8.2-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_freebsd-9.0-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_freebsd-8.2-v022.qcow2 rootfs_freebsd
+
  ln -s vnx_rootfs_kvm_freebsd-9.0-v024.qcow2 rootfs_freebsd
<li>'''Freebsd 8.2 with GUI (v022):'''</li>
+
<li>'''FreeBSD 8.2 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-8.2-gui-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-8.2-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_freebsd-8.2-gui-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_freebsd-8.2-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_freebsd-8.2-gui-v022.qcow2 rootfs_freebsd-gui
+
  ln -s vnx_rootfs_kvm_freebsd-8.2-v024.qcow2 rootfs_freebsd
<li>'''Freebsd 7.4 (v022):'''</li>
+
<li>'''FreeBSD 8.2 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-7.4-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-8.2-gui-v024.qcow2.bz2
bunzip2 vnx_rootfs_kvm_freebsd-7.4-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_freebsd-8.2-gui-v024.qcow2.bz2
ln -s vnx_rootfs_kvm_freebsd-7.4-v022.qcow2 rootfs_freebsd
+
  ln -s vnx_rootfs_kvm_freebsd-8.2-gui-v024.qcow2 rootfs_freebsd
<li>'''Freebsd 7.4 with GUI (v022):'''</li>
 
cd /usr/share/vnx/filesystems
 
wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_freebsd-7.4-gui-v022.qcow2.bz2
 
  bunzip2 vnx_rootfs_kvm_freebsd-7.4-gui-v022.qcow2.bz2
 
  ln -s vnx_rootfs_kvm_freebsd-7.4-gui-v022.qcow2 rootfs_freebsd-gui
 
 
</ul>
 
</ul>
  
<li>'''Fedora:'''</li>
+
<li>'''CentOS''':</li>
 
<ul>
 
<ul>
<li>'''Fedora 14 (v022):'''</li>
+
<li>'''CentOS 6.2 (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-14-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-6.2-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_fedora-14-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_centos-6.2-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_fedora-14-v022.qcow2 rootfs_fedora
+
  ln -s vnx_rootfs_kvm_centos-6.2-v024.qcow2 rootfs_centos
<li>'''Fedora 14 with GUI (v022):'''</li>
+
<li>'''CentOS 6.2 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_fedora-14-gui-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-6.2-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_fedora-14-gui-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_centos-6.2-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_fedora-14-gui-v022.qcow2 rootfs_fedora-gui
+
  ln -s vnx_rootfs_kvm_centos-6.2-gui-v024.qcow2 rootfs_centos
</ul>
+
<li>'''CentOS 5.6 (v024)''':</li>
 
 
<li>'''CentOS:'''</li>
 
<ul>
 
<li>'''Centos 5.6 (v022):'''</li>
 
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-5.6-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-5.6-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_centos-5.6-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_centos-5.6-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_centos-5.6-v022.qcow2 rootfs_centos
+
  ln -s vnx_rootfs_kvm_centos-5.6-v024.qcow2 rootfs_centos
<li>'''Centos 5.6 with GUI (v022):'''</li>
+
<li>'''CentOS 5.6 with GUI (v024)''':</li>
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-5.6-gui-v022.qcow2.bz2
+
  wget -N http://vnx.dit.upm.es/vnx/filesystems/vnx_rootfs_kvm_centos-5.6-gui-v024.qcow2.bz2
  bunzip2 vnx_rootfs_kvm_centos-5.6-gui-v022.qcow2.bz2
+
  bunzip2 vnx_rootfs_kvm_centos-5.6-gui-v024.qcow2.bz2
  ln -s vnx_rootfs_kvm_centos-5.6-gui-v022.qcow2 rootfs_centos-gui
+
  ln -s vnx_rootfs_kvm_centos-5.6-gui-v024.qcow2 rootfs_centos
</ul>
 
 
 
<li>'''Windows XP, Windows 7, Dynamips and Olive:'''</li>
 
<ul>
 
<li>For legal reasons we cannot distribute any of these root filesystems. See [[Docintro|VNX documentation]] for detailed recipes to create or use these type of root fylesystems.
 
</ul>
 
 
</ul>
 
</ul>
 +
-->
  
 
=== UML root filesystems ===
 
=== UML root filesystems ===
  
 
If you plan to use the old UML root filesystems created for VNUML, you have to download the rootfs itself:
 
If you plan to use the old UML root filesystems created for VNUML, you have to download the rootfs itself:
# VNUML vnx_rootfs_kvm_tutorial and kernel
 
 
  cd /usr/share/vnx/filesystems
 
  cd /usr/share/vnx/filesystems
  wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml-debian-6.0-v022.bz2
+
  wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml_debian-6.0-v024.img.bz2
  bunzip2 vnx_rootfs_uml-debian-6.0-v022.bz2
+
  bunzip2 vnx_rootfs_uml_debian-6.0-v024.img.bz2
  ln -s vnx_rootfs_uml-debian-6.0-v022 rootfs_tutorial
+
  ln -s vnx_rootfs_uml_debian-6.0-v024.img rootfs_uml
 
  wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
 
  wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
 
  bunzip2 vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
 
  bunzip2 vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
Line 157: Line 166:
  
 
And the associated kernel:
 
And the associated kernel:
 +
cd /usr/share/vnx/kernels
 +
wget http://vnx.dit.upm.es/vnx/kernels/linux-um-3.3.8.tgz
 +
tar xfvz linux-um-3.3.8.tgz
 +
ln -s linux-um-3.3.8-src/linux-um-3.3.8
 +
Optionally, set the link to make this kernel the default one:
 +
ln -s linux-um-3.3.8 linux
 +
<!--
 
  cd /usr/share/vnx/kernels
 
  cd /usr/share/vnx/kernels
 
  wget -N http://jungla.dit.upm.es/~vnx/download/kernels/linux-2.6.18.1-bb2-xt-4m
 
  wget -N http://jungla.dit.upm.es/~vnx/download/kernels/linux-2.6.18.1-bb2-xt-4m
 
  chmod +x linux-2.6.18.1-bb2-xt-4m
 
  chmod +x linux-2.6.18.1-bb2-xt-4m
 
  ln -s linux-2.6.18.1-bb2-xt-4m linux
 
  ln -s linux-2.6.18.1-bb2-xt-4m linux
 +
-->
  
 
== Naming convention ==
 
== Naming convention ==

Latest revision as of 16:54, 19 February 2018

Downloading VNX root filesystems

You can download VNX preconfigured root filesystems from VNX repository at http://vnx.dit.upm.es/vnx/filesystems.

All root filesystems but Fedora and CentOS ones have a "root" and a "vnx" account with password "xxxx". Fedora and CentOS systems have password "xxxxxx" (a minimum of six chars are needed in this case).

Downloading instructions

You can use two methods to download and install VNX root filesystems:

  • Use the vnx_download_rootfs tools distributed with VNX:
    • Type:
    • cd /usr/share/vnx/filesystems
      vnx_download_rootfs
      
    • The tool will show you the root filesystems available and allow to choose the ones you want to download and install.
    • Use '-p string' option to show only the root filesystems with 'string' in their name. For example, to see lxc root filesystems type: vnx_download_rootfs -p lxc
    • Use '-s' option to just show the root filesystems available in VNX repository and exit.
    • Use '-l' option if you want the tool to create the 'rootfs_*' soft links used by VNX example scenarios.
    • Use '-r <rootfsfilename>' if you want to download a specific root filesystem in no interactive way.
  • Download them manually form the VNX repository.
    • To uncompress a KVM rootfs use:
    • bunzip2 vnx_rootfs_kvm_...
      
    • To uncompress an LXC rootfs use:
    • tar --numeric-owner -xzpf vnx_rootfs_lxc_...
      

IMPORTANT: KVM root filesystems are not updated any time VNX version changes. So, after download and install a rootfs, it is highly recomended to update the VNXACE daemon following the procedure described here.

KVM root fylesystems available

See the current open source filesystems available VNX repository at http://vnx.dit.upm.es/vnx/filesystems (see 'old' directory for old outdated filesystems).

For legal reasons we cannot distribute Windows XP, Windows 7, Dynamips or Olive root filesystems. See VNX documentation for detailed recipes to create or use these type of root filesystems.

UML root filesystems

If you plan to use the old UML root filesystems created for VNUML, you have to download the rootfs itself:

cd /usr/share/vnx/filesystems
wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml_debian-6.0-v024.img.bz2
bunzip2 vnx_rootfs_uml_debian-6.0-v024.img.bz2
ln -s vnx_rootfs_uml_debian-6.0-v024.img rootfs_uml
wget -N http://vnx.dit.upm.es/download/vnx/filesystems/vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
bunzip2 vnx_rootfs_uml-n3vlr-0.11-v022.img.bz2
ln -s vnx_rootfs_uml-n3vlr-0.11-v022.img rootfs_light

And the associated kernel:

cd /usr/share/vnx/kernels
wget http://vnx.dit.upm.es/vnx/kernels/linux-um-3.3.8.tgz
tar xfvz linux-um-3.3.8.tgz 
ln -s linux-um-3.3.8-src/linux-um-3.3.8

Optionally, set the link to make this kernel the default one:

ln -s linux-um-3.3.8 linux

Naming convention

Root filesystems names follow this format:

vnx_rootfs_<virtplatform>_<osname>-<osversion>-[gui-]<rootfsversion>.<ext>

being:

  • <virtplatform>: the virtualization platform the root filesystem was created for (kvm, uml, etc).
  • <osname>: the name of the operating system (or distribution in the case of Linux). Ej: ubuntu, freebsd, win7, etc.
  • <osversion>: the version of the OS.
  • gui: included if the root filesystem has a graphical user interface
  • <rootfsversion>: the version of the rootfs itself.
  • <ext>: the extension of the image. For example: qcow2.

Example:

  • vnx_rootfs_kvm-ubuntu-11.04-v022.qcow2 is a VNX root filesystem created with KVM, with an Ubuntu 11.04 without gui installed. The version of the rootfs is v022 and the format is qcow2.