deployment of virtual machine from virtual box to ESXI - virtualbox

Actually I'm working on an administration and system project. I'm using ESXI, virtual box and OVH.
lastly, I got an error which blocked me and didn't let me to complete my configuration. the error is
<OperatingSystemSection ovf:id="80">
<Info>The kind of installed guest operating system</Info>
<Description>RedHat_64</Description>
<vbox:OSType ovf:required="false">RedHat_64</vbox:OSType>
</OperatingSystemSection>
let me explain to clarify the problem.
as anyone knows that before deploying anything to the cloud we must pass through a development phase. After that, if everything is good, we do a migration of all our resources that we have configured into a cloud environment.
Now here, I used in the development phase: virtual box, and I have a virtual machine that I have exported from VBOX to put it into the esxi enviroment which is located in OVH.
I converted the exported VM from ova to ovf by following this tutorial: [1]: https://felixcentmerino.wordpress.com/2014/10/15/migrate-virtual-machine-from-oracle-virtualbox-to-esxi-5-5/
but when I would like to deploy the ovf file to the ESXi I get the error that is mentioned above.
could anyone help me please?

Replace by:
<OperatingSystemSection ovf:id="107">
<Info>The kind of installed guest operating system</Info>
<!-- <Description>RedHat_64</Description> -->
<!-- <vbox:OSType ovf:required="false">RedHat_64</vbox:OSType> -->
<vbox:OSType ovf:required="false">centos64Guest</vbox:OSType>
</OperatingSystemSection>

Related

Generating CentOS image for Openstack Ironic Boot Failure

I am trying to create a custom CentOS image to be used as an image for Openstack Ironic. I am following the guide here: https://docs.openstack.org/image-guide/centos-image.html. I created the image, and deploy it on my baremetal server. On the ironic side it seems that it has successfully 'dd' the image into the server. But when the server boots up, it can't find any of the partitions with the error /dev/disk/by-uuid/XXXX does not exist. I am able to boot it to rescue mode, but I am clueless on what to do to debug it.
I also used the same procedure to deploy custom Ubuntu Image, and it seems to work perfectly fine. Does anyone have any suggestions to solve this?
Okay, after much tinkering, I have found the problem. This is more of a CentOS7 problem than an openstack problem.
I have found the kickstart script that generates the CentOS cloud build (https://github.com/CentOS/sig-cloud-instance-build/blob/master/cloudimg/CentOS-7-x86_64-GenericCloud-201606-r1.ks). Turns out that they included the dracut-config-generic package which my custom CentOS image did not include. After some google searching work, I found this link (https://www.systutorials.com/docs/linux/man/8-dracut/) stated that:
On RHEL-7 the hostonly mode is the default mode. Generic "non-hostonly" images are created, if the dracut-config-generic rpm is installed. The rescue kernel entry in the bootloader menu is also a generic image.
Without dracut-config-generic, the images can only run in the virtualised environment I set up. So after adding this package, I can successfully deploy it through openstack ironic successfully.
Hope this helps anyone that was trying on this.

Virtual box Host only Network Interface

When I am trying to add a new Network Interface for Host only network, Virtual Box version :Version 5.0.22 r108108.
I am getting a following error:
Could not find Host Interface Networking driver! Please reinstall.
Result Code:
E_FAIL (0x80004005)
Component:
HostNetworkInterfaceWrap
Interface:
IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}
Reinstall the Virtual Box and restart your system.
open virtual box -> select the default virtual machine-> setting -> network -> change host-only to bridged networking -> start virtual machine -> Open docker quickStart Terminal to connect
You must reinstall the driver.
Go to device manager, you will find an "unknown driver" missing then update it by pointing to this link:
C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf
Existing answers didn't help me, but this did:
Open the Network tab of your VirtualBox settings.
Cycle through all Adapter tabs and make sure none of them points to something non-existent, even if the adapter is disabled.
For disabled adapters, enable them, set to Not attached, then disable again.
Save.
UPD: that didn't solve it. The solution was to reinstall VirtualBox like #ArpitArgarwal suggests, but simply repairing it didn't help. What helped was:
Manually uninstall existing VirtualBox.
Install VirtualBox, starting the installer with admin privileges.
1.Open Virtual Box with Run as administrator. Then it showing below snapshot error: 0x80004005 belongs to Failed to open a session for the virtual machine. Check with this error correct or not.
http://commandstech.com/how-to-resolve-failed-to-open-a-session-for-the-virtual-machine-error-code-0x80004005/
5.Now, the issue may be solved. If an issue is still pending then close it Virtual Box. Then open with Headless start option. It means that Restart the Virtual Box.
In some cases, (worked for me) running and getting the latest update of vbox fix the problem. And got the Host Interface Networking driver automatically installed.
The update I run was:
VirtualBox-6.0.14-133895-Win
Follow the below settings and it will allow you to configure Host-only Adapter-
Open VirtualBox Manager
Click on "File" -> "Host Network Manager"
Click on "Create".
Now you can select "Host-only Adapter" from Network tab of a VM.
Note: Screenshot taken from VirtualBox 6.0

unable to load ovf to virtualbox created using vmware vphrere export?

I am trying to load a VM that was created by someone else using VMware vSphere into virtualbox. I got these 3 files, the first one being an xml ovf file, the second one containing the SHA1 sums and the last one being a 3.2GB vmdk:
myVM.ovf
myVM.mf
myVM-disk1.vmdk
When I try Import an Appliance choosing the ovf file, I get this error:
Failed to import appliance /home/username/VirtualBox VMs/blah/blah/myVM.ovf.
<vbox:Machine> element in OVF contains a medium attachment for the disk image 58d8e82a-37a1-4c10-b3be-b53cdb213fbe but the OVF describes no such image.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}
I made sure the menu is pointing to the right vmdk file, but still there is something wrong.
Any ideas?
At the Import dialog, try to uncheck USB controller and CD/DVD devices.
If that will help, You can enable them afterwards. In fact, You will need them to install Guest Additions later.
This helped for me, to install Microsoft prepared Virtual machines for different Internet Explorer tests from http://dev.modern.ie/tools/vms/windows/
I received a similar issue today when doing a simple export / import of a windows 7 vm running Oracle VM 4.3.1 on linux mint. I exported in OVF 2.0 and it generated an .ova file. I had nearly identical error message when importing the image. I am assuming the image was made with Oracle VM.
"Failed to import appliance /home/val/Desktop/win7.ova"... "the OVF describes no such image"
THE FIX: All I had to do was rename the .ova file to .ovf; you may have to change the .ovf extension to .ova as well. Also ensure you are the owner of the file (chown) and you have correct permissions(chmod). This worked for me it may work for you.
I found this fix here: https://www.virtualbox.org/ticket/9414

Is a ova file interchangable between Oracle's VirtualBox and VMware's player?

It seems to be easy question but I an new at this. I got a ova from one of my partners. He told me he exported a VM file using Export Appliance in VirtualBox. And my office's laptop is installed with VM player. My guess is that it is the same ova filetype. It supposed to open in both VMs. However, VW play shows this message.
Failed to open virtual machine: Failed to query source for information.
Any thought on this?

Unable to determine guest operating system: Vmware error

Ok, here's a very short and to the point question. When trying to import a virtual PC 2004 Windows 2003 Server VM in VM Workstation 6.0.2 I'm getting an error 'unable to determine guest operating system'. Soo how to fix?
From here:
Make sure that that the VM is not currently running in VMware Server.
Make sure that VMware Server does not have a lock on the VM’s files. You have have to stop all VMware Server Services and/or reboot the (VMWare) server.
Make sure you have appropriate permissions to the VM’s files.
This is a fairly generic error from VMware Converter so I would try the following:
Step 1. Make sure you are running the latest version of VMware Converter. Updates seem to come pretty often for this tool.
Step 2. Check the VMware Converter log file. More often than not you will find the source of your problem here.