Let VMware use logical volumes as virtual disks

Source: Internet
Author: User
Tags create directory vmware server

After decompression, run make in the build directory; Make install Installation

Create directory/DEV/SD (virtual SCSI disk) and/or/DEV/HD (Virtual IDE disk)

Use Lvcreate to create logical volumes and add links to newly created logical volumes in/DEV/SD and/or/DEV/HD.

If you are using VMware Workstation, you can start the virtual machine using the following command

$ ld_preload=libvmware-bdwrapper.so.0 vmware_bdwrapper_devices=/dev/hd/tex:/dev/sd/test VMWARE

Where/dev/hd/tex and/dev/sd/text are links to logical volumes.

If you are using VMware Server, you need to modify/etc/init.d/vmware, at the beginning, after #!/bin/sh, add the following

Export ld_preload=libvmware-bdwrapper.so.0

Export Vmware_bdwrapper_devices=/dev/hd/tex:/dev/sd/test

Rename/usr/lib/vmware/bin/vmware-vmx to/usr/lib/vmware/bin/vmware-vmx.old, establish file/usr/lib/vmware/bin/vmware-vmx, as follows

#!/usr/bin/perl

$ENV {ld_preload}= ' libvmware-bdwrapper.so.0 ';

$ENV {vmware_bdwrapper_devices}= '/dev/hd/tex:/dev/sd/test ';

exec '/usr/lib/vmware/bin/vmware-vmx.old ', @ARGV

And give the same permissions as/usr/lib/vmware/bin/vmware-vmx.old.

When you are done, you can increase the disk of/dev/hd/tex,/dev/sd/text as a virtual machine as if you were adding a normal physical hard disk.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.