Difference between revisions of "Vnx-modify-rootfs"
Line 4: | Line 4: | ||
In order to update or modify a VNX root filesystem (rootfs from now on), you have to: | In order to update or modify a VNX root filesystem (rootfs from now on), you have to: | ||
− | <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:</li> |
<ul> | <ul> | ||
<li>Using vnx with the following parameters (recommended):</li> | <li>Using vnx with the following parameters (recommended):</li> | ||
Line 15: | Line 15: | ||
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). | 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> | </ul> | ||
− | <li>Once the virtual machine is started and you have access to the console, you can make the modifications desired | + | <li>Once the virtual machine is started and you have access to the console, you can make the modifications desired.</li> |
<li>Finally halt the virtual machine using the '''vnx_halt''' command. This will clean some log and history files, clean the apt cache and optionally leave a text message in /etc/vnx_rootfs_version describing the modifications done.</li> | <li>Finally halt the virtual machine using the '''vnx_halt''' command. This will clean some log and history files, clean the apt cache and optionally leave a text message in /etc/vnx_rootfs_version describing the modifications done.</li> | ||
</ul> | </ul> |
Revision as of 03:03, 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).
</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
- 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