Difference between revisions of "Vnx-modify-rootfs"
Line 1: | Line 1: | ||
{{Title|Updating or modifying a VNX root filesystem}} | {{Title|Updating or modifying a VNX root filesystem}} | ||
− | |||
__NOTOC__ | __NOTOC__ | ||
Line 7: | Line 6: | ||
<li>Start a virtual machine directly mounting that rootfs and with Internet connection. You can do it in several ways: | <li>Start a virtual machine directly mounting that rootfs and with Internet connection. You can do it in several ways: | ||
<ul> | <ul> | ||
− | <li>Using the | + | <li>Using vnx with the following parameters (recommended):</li> |
− | + | vnx --modify_rootfs <rootfs_name> | |
being <rootfs_name> the rootfs filename. | being <rootfs_name> the rootfs filename. | ||
− | <li> | + | <li>Creating a libvirt XML virtual machine definition (see examples in /usr/share/vnx/examples directory) and starting it using virsh:</li> |
virsh create rootfs_XXX.xml | virsh create rootfs_XXX.xml | ||
and manually opening the console using: | and manually opening the console using: | ||
Line 28: | Line 27: | ||
<ul> | <ul> | ||
− | <li> | + | <li>Start the virtual machine with the following command line options:</li> |
− | / | + | vnx --modify-rootfs <rootfs_name> --update-aced -y |
+ | being <rootfs_name> the rootfs filename. This command will try to update the VNXACE daemon to the latest version automatically (-y option). | ||
+ | <li>If everything goes well, a message informing the new version installed will be shown in the virtual machine console before halting it.</li> | ||
+ | <li>If the daemon is not updated automatically, you can do it manually from inside the virtual machine:</li> | ||
+ | <ul> | ||
+ | <li>Mounting the update disk:</li> | ||
+ | mount /dev/sdb /mnt # For Linux | ||
+ | mount -t msdosfs /dev/ad1 /mnt # For FreeBSD | ||
+ | <li>Installing VNXACED:</li> | ||
+ | perl /mnt/vnxaced-lf/install_vnxaced | ||
+ | </ul> | ||
+ | </ul> | ||
+ | |||
+ | <!-- | ||
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: | 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 | # virsh list | ||
Line 46: | Line 58: | ||
perl /media/cdrom/install_vnxaced | perl /media/cdrom/install_vnxaced | ||
</ul> | </ul> | ||
− | + | --> | |
=== Windows === | === Windows === | ||
Revision as of 03:01, 21 May 2012
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 vnx with the following parameters (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).
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
- Start the virtual machine with the following command line options:
vnx --modify-rootfs <rootfs_name> --update-aced -y
being <rootfs_name> the rootfs filename. This command will try to update the VNXACE daemon to the latest version automatically (-y option).
- Mounting the update disk:
mount /dev/sdb /mnt # For Linux mount -t msdosfs /dev/ad1 /mnt # For FreeBSD
perl /mnt/vnxaced-lf/install_vnxaced
Windows
To be completed
Olive
To be completed