ResolutionThe Virtuozzo Management Console (VZMC) allows the Administrator to map any Disk from the Hardware Node to a selected VE. Virtually any drive available on the Node can be mounted to a VE, including the following:
- a physical hard drive
- a DVD-ROM drive
- a CD-ROM drive
- a floppy disk
- a Virtual Drive associated with an ISO image, etc.
To be able to forward an ISO image to a VE, please install Daemon tools, a freely available utility, to your Parallels Virtuozzo Containers (PVC) host server and insert an ISO image to a Virtual Drive. Once a Virtual Drive is inserted with an ISO image, that drive can be mounted into a VE.
To mount a Hardware Node drive to a VE, perform the following operations:
In VZMC, click the Virtual Private Servers item under the corresponding Hardware Node name to display a list of all Virtual Private Servers residing on the Node. Right-click the VE where you wish to mount the drive from the Hardware Node, and select Tasks > Manage Mounts on the context menu.
Alternatively, you can open the Virtual Private Server Manager window for the given VE and click on the Manage Mounts link in the Actions section of the VZMC view pane. In the opened window, click on the Add button to display the Mount Point window.
In this window, do the following:
In the Mount point list, click the drop-down arrow and select a letter under which the mounted drive will be accessible inside the Virtual Private Server. In the example below, the mounted drive will be related to D.
Check the Mount Hardware Node drive radio button, and on the drop-down menu, select a mount drive and its related letter that you will to mount to the VE. In the example below, the mounted Hardware Node drive is the CD ROM drive of the Hardware Node.
Select OK to close the Mount Point screen. You will see the new drive added to the list of available mount points.
Select Close to close out the Mount Points Manager screen.
Alternatively, this can be done using the command line in the following way:
vzctl mountext VE_ID --srcdir D: --dstdir D:
--scrdir points to the folder or disk drive inside the VE
--dstdir points to the folder or disk drive on the Hardware Node
Please note that the command line allows you to map any folder from the Host to a folder in a VE.
Let's say we want to map c:\windows\servicepackfiles\i386 from the Host to c:\spfiles in a VE:
1. Allow the VE to access the Host's disk "C" on the host:
vzctl set VEID --devadd C:
2. Create the destination folder inside of the VE:
vzctl exec VEID cmd /c mkdir c:\spfiles
3. Map c:\windows\servicepackfiles\i386 from the Host to the VE:
vzctl mountext VEID --srcdir c:\spfiles --dstdir c:\windows\servicepackfiles\i386