-
Notifications
You must be signed in to change notification settings - Fork 19
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
Pram0596 patch 4 #46
Conversation
Adding an entry for Pramod Kumar (Elastic Engineering)
Update .authors.yml
+ One should have account to Broadcom developer site to download library. | ||
|
||
## Environment: | ||
+ **virt-v2v Virtual appliance** - `192.168.11.11` |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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 | ||
``` |
There was a problem hiding this comment.
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
#### 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 | ||
``` |
There was a problem hiding this comment.
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
+ #### 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. |
There was a problem hiding this comment.
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.
No description provided.