Hello all!
I am a student at HOWEST Belgium studying Multimedia and Creative Technologies as IOT and Infrastructure engineer and was given the assignment to research the migration from vSphere to Citrix Xencenter.
I have successfully managed to import vSphere machines to Xencenter using the GUI, but I am struggling to automate things through the CLI.
I'm trying to import a VHD file to my newly created VM's VDI (which was made through the CLI)
I've given the VDI 25GB which is more than sufficient for the 12GB VHD upload i want to import.
I have tried the following;
Using the xe vm-install template="Ubuntu Bionic Beaver 18.04" new-name-label="Ubuntu-CLI" command to create a virtual machine
xe vdi-resize uuid=3498dc9a-da28-485f-b11f-a8285ae0099e disk-size=25GiB resizing it to 25GB
xe vdi-import uuid=d49da951-4560-4a4b-b86b-4811ba6772a2 filename=/mnt/VMDKShare/UbuntuVM-1.vhd format=vhd --progress to import my own VHD (converted from vSphere VMDK)
resulting in the following error:
Using the xe vm-install template="Ubuntu Bionic Beaver 18.04" new-name-label="Ubuntu-CLI" command to create a virtual machine
Removing the disk through the GUI
Adding a new disk with xe vdi-create sr-uuid=e7870991-edf0-c489-c6cd-c7c1ea6afb93 name-label=UbuntuVM_Disk1 type=system virtual-size=25000000 3af2f10b-6ad3-da15-1a32-d3102d791412
Uploading my own VHD again with xe vdi-import uuid=d49da951-4560-4a4b-b86b-4811ba6772a2 filename=/mnt/VMDKShare/UbuntuVM-1.vhd format=vhd --progress to import my own VHD (converted from vSphere VMDK)
resulting in the same error:
Tried to import a VMDK, OVF or VHD file through the cli with xe vm-import filename=/mnt/VMDKShare/Win10-TestVM.vmdk sr-uuid=e7870991-edf0-c489-c6cd-c7c1ea6afb93
Resulting in the following error:
Created a Virtual Machine through the GUI with the VMDK import, booting perfectly fine, finding the VHD file coupled to the VDI, removed the VDI and copied my own VDI and pasted it in the same directory with the same UUID. This just failed to boot the VM..
I'm wondering if I'm doing something wrong, am I using the commands wrong? Am I missing parameters?
Question
Simon Demuynck
Hello all!
I am a student at HOWEST Belgium studying Multimedia and Creative Technologies as IOT and Infrastructure engineer and was given the assignment to research the migration from vSphere to Citrix Xencenter.
I have successfully managed to import vSphere machines to Xencenter using the GUI, but I am struggling to automate things through the CLI.
I'm trying to import a VHD file to my newly created VM's VDI (which was made through the CLI)
I've given the VDI 25GB which is more than sufficient for the 12GB VHD upload i want to import.
I have tried the following;
I'm wondering if I'm doing something wrong, am I using the commands wrong? Am I missing parameters?
I'm hoping to hear back from you soon!
Kind Regards,
Simon Demuynck
Link to comment
14 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now