Vnx-modify-rootfs
Updating or modifying a VNX root filesystem
In order to update or modify a VNX root filesystem (rootfs from now on), you have to:
- Using the vnx_modify_rootfs tool (recommended):
vnx_modify_rootfs <rootfs_name>
being <rootfs_name> the rootfs filename.
virsh create rootfs_XXX.xml
and manually opening the console using:
virt-viewer <vmname>
being <vmname> the name assigned by libvirt to the virtual machine (you can get it with "virsh list" command or just looking for the <name> tag in root_fs_XXX.xml file).
</ul>
Updating VNXACE daemon
If you have a rootfs with the autoconfiguration and command execution daemon (ACE) already installed, you can use the autoupdate functionality to update the daemon to a newer version. Just follow this procedure:
Linux and FreeBSD
- Once the virtual machine is running, execute the update utility:
/usr/share/vnx/bin/vnx_update_aced <vmname> /usr/share/vnx/aced/<vnxaced_file_name>
being <vmname> the name assigned by libvirt to the virtual machine, and <vnxaced_file_name> the filename of the latest VNXACE version (just have a look at /usr/share/vnx/aced directory take the highest version number). For example:
# virsh list Id Nombre Estado
10 vnx_rootfs_kvm_ubuntu-12.04-v023.qcow2 running # /usr/share/vnx/bin/vnx_update_aced vnx_rootfs_kvm_ubuntu-12.04-v023.qcow2 /usr/share/vnx/aced/vnx-aced-lf-2.0b.1882.tgz
In case the VNXACE daemon is not automatilly updated, you can do it manually. From inside the VM:
- Mount the cdrom with:
mount /media/cdrom
perl /media/cdrom/install:
/usr/share/vnx/bin/vnx_modify_rootfs rootfs_ubuntu.xml
Modify root filesystem scenarios (root_fs_XXX.xml)
To modify a root filesystem, for example, installing new software packages, just start the associated libvirt scenario with:
To easy the process, you can use the vnx_modify_rootfs simple script that starts the virtual machine and opens the console: