Skip to content

Pram0596 patch 4 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 2, 2025
Merged

Pram0596 patch 4 #46

merged 4 commits into from
Apr 2, 2025

Conversation

pram0596
Copy link
Contributor

@pram0596 pram0596 commented Apr 1, 2025

No description provided.

+ One should have account to Broadcom developer site to download library.

## Environment:
+ **virt-v2v Virtual appliance** - `192.168.11.11`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the IP-Address static/required OR Was it in your test environment?
If customer spins up an Appliance and their IP-Addr is expected to be different, I'd suggest removing this.

anande
anande previously requested changes Apr 1, 2025
Copy link
Member

@anande anande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add PR Subject and description.

Comment on lines 25 to 27
https://libguestfs.org/nbdkit-vddk-plugin.1.html
https://developer.broadcom.com/sdks/vmware-virtual-disk-development-kit-vddk/latest
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vddk-programming-guide/GUID-158D8330-7C9C-4F9C-83E1-4DC154DA3C66.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 32 to 69
### Build and Install vddk plugins:
+ #### Login to virt-v2v appliance.
#### On controller node:
```shell
ssh -i ~/.ssh/rpc_support [email protected]
sudo -i
```

+ #### Download vddk code from git repository.
#### On virtual appliance:
```shell
git clone https://github.com/libguestfs/nbdkit.git
```
+ #### Run below commands to install required packages and vddk plugins.
#### On virtual appliance:
```shell
sudo apt-get install libtool
apt install pkg-config m4 libtool automake autoconf
cd nbdkit/
```
```shell
autoreconf -i
./configure --disable-dependency-tracking
```
```shell
apt install make
make
make install
```
```shell
cp /usr/local/lib/nbdkit/plugins/nbdkit-vddk-plugin.so \
/usr/lib/x86_64-linux-gnu/nbdkit/plugins/
```
+ #### Check if vddk plugins has been installed successfully.
#### On virtual appliance:
```shell
nbdkit vddk libdir=/usr/local/lib/nbdkit/plugins/ --dump-plugin
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Login to virt-v2v appliance.

On controller node:

ssh -i ~/.ssh/rpc_support [email protected]  
sudo -i  

Download vddk code from git repository on virtual appliance:

git clone https://github.com/libguestfs/nbdkit.git

Run below commands to install required packages and vddk plugins on virtual appliance:

sudo apt-get install libtool
apt install pkg-config m4 libtool automake autoconf
cd nbdkit/

autoreconf -i
./configure --disable-dependency-tracking

apt install make 
make
make install

cp /usr/local/lib/nbdkit/plugins/nbdkit-vddk-plugin.so \
   /usr/lib/x86_64-linux-gnu/nbdkit/plugins/  

Check if vddk plugins has been installed successfully on virtual appliance:

nbdkit vddk libdir=/usr/local/lib/nbdkit/plugins/ --dump-plugin  

Comment on lines 70 to 102
#### Example output:
```shell
path=/usr/local/lib/nbdkit/plugins/nbdkit-vddk-plugin.so
name=vddk
version=1.33.11
api_version=2
struct_size=384
max_thread_model=parallel
thread_model=parallel
errno_is_preserved=0
magic_config_key=file
has_longname=1
has_unload=1
has_dump_plugin=1
has_config=1
has_config_complete=1
has_config_help=1
has_get_ready=1
has_after_fork=1
has_open=1
has_close=1
has_get_size=1
has_block_size=1
has_can_flush=1
has_can_extents=1
has_can_fua=1
has_pread=1
has_pwrite=1
has_flush=1
has_extents=1
vddk_default_libdir=/usr/local/lib/vmware-vix-disklib
vddk_has_nfchostport=1
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!! example "Command Output"

path=/usr/local/lib/nbdkit/plugins/nbdkit-vddk-plugin.so
name=vddk
version=1.33.11
api_version=2
struct_size=384
max_thread_model=parallel
thread_model=parallel
errno_is_preserved=0
magic_config_key=file
has_longname=1
has_unload=1
has_dump_plugin=1
has_config=1
has_config_complete=1
has_config_help=1
has_get_ready=1
has_after_fork=1
has_open=1
has_close=1
has_get_size=1
has_block_size=1
has_can_flush=1
has_can_extents=1
has_can_fua=1
has_pread=1
has_pwrite=1
has_flush=1
has_extents=1
vddk_default_libdir=/usr/local/lib/vmware-vix-disklib
vddk_has_nfchostport=1

Comment on lines 103 to 117
+ #### Download and place VMware vddk library:
Login to Broadcom web link https://developer.broadcom.com/sdks/vmware-virtual-disk-development-kit-vddk/latest and download zip file. Place it under /tmp/ on virt-v2v appliance. In my case I downloaded the latest version which is `8.0.3`.

+ #### Move tar file under /opt and extract it.
```shell
ls -l /tmp/VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz
mv /tmp/VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz /opt/
```
```shell
cd /opt
tar xvzf VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz
cd vmware-vix-disklib-distrib/
ls
```
+ #### Appliance is ready to migrate the vm using vddk plugins now.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Download and Extract VMware VDDK library:

Login to Broadcom VDDK SDK Downloads page and download zip file. Place it under /tmp/ on virt-v2v appliance. In my case I downloaded the latest version which is 8.0.3.

Move tar file under /opt and extract it.

ls -l /tmp/VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz
mv /tmp/VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz /opt/

cd /opt
tar xvzf VMware-vix-disklib-8.0.0-20521017.x86_64.tar.gz 
cd vmware-vix-disklib-distrib/
ls

Appliance is ready to migrate the vm using vddk plugins now.

Updated md file with the required changes.
@cloudnull cloudnull merged commit 3accfb8 into rackerlabs:main Apr 2, 2025
2 checks passed
@pram0596 pram0596 deleted the pram0596-patch-4 branch April 3, 2025 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants