LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-13-2016, 02:04 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down Convert VirtualBox VM to Xen.


Hello.
I used below command for convert my VirtualBox VM to Xen :

# VBoxManage clonehd vm.vdi vm.img --format RAW

And write my Xen config like below :
Code:
name = "Converted"
builder = "hvm"
uuid= "8ea234db-8ee0-46ff-bda1-71d95bd257c6"
memory = 1024
vcpus = 2
interface=['br0']
vif = [ "mac=00:16:3e:46:e6:fb,bridge=br0" ]
disk = [ "file:/home/jason/vm.img,xvda,w" ]
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
I tested it for Linux and Windows and both OSs crashed and can't boot. Windows OS show me Blue Page and Linux...
How can I solve it?

Thank you.
 
Old 06-13-2016, 03:54 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Windows may not like it ever.

I assume that the conversion to raw may have been part of it. Guess you could try virtualbox with the raw hard drive file and see if it works. Qemu on the raw drive ought to work too as a first step test.

Guess you could use clonezilla or such too.

Last edited by jefro; 06-13-2016 at 07:35 PM.
 
Old 06-13-2016, 04:08 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
https://www.serverstack.com/blog/201...rtual-machine/ may be of help.
 
Old 06-14-2016, 01:49 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Habitual View Post
As you see I used same steps.
 
Old 06-14-2016, 02:42 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Moving VMs between virtualisation platforms can be problematic due to the different ways different platforms "present" the hardware.

Windows is especially prone to this and also because as a "paid for" O/S it ties itself closely to the hardware it's installed on, knowing things like the bios settings, the motherboard / hard disk serial numbers etc. and if it sees significant changes it assumes that it's been copied on to a different machine and at best will require license re-activation and at worst (what you're probably seeing) is that the installed HAL doesn't work with the underlying virtualisation platform.

From experience I'd strongly suggest that you build new VMs on the target platform and then migrate your data accordingly.
 
Old 06-14-2016, 08:43 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hack3rcon View Post
As you see I used same steps.
No, I didn't "see" you used the same steps. I did not read the link.
You didn't specify what documentation you had read, or tried, so you got google's answer.
Why do we have to beat info out of folks?
 
1 members found this post helpful.
Old 06-14-2016, 04:35 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Did you try to boot the raw file yet?
 
Old 06-15-2016, 02:25 AM   #8
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by jefro View Post
Did you try to boot the raw file yet?
I got Blue page.
 
Old 06-15-2016, 05:30 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Then my guess so far is the conversion failed.

You can make a raw drive and dd it over in the vm if you want. Or use clonezilla/redobackup.

Windows won't like any system changes usually. Either fix the hal before move or after move with oem media.

Last edited by jefro; 06-15-2016 at 05:31 PM.
 
Old 06-18-2016, 02:06 AM   #10
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by jefro View Post
Then my guess so far is the conversion failed.

You can make a raw drive and dd it over in the vm if you want. Or use clonezilla/redobackup.

Windows won't like any system changes usually. Either fix the hal before move or after move with oem media.
As you see I choice "RAW" as format. Can you guide me about dd it?
 
Old 07-07-2016, 12:58 AM   #11
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
Quote:
Originally Posted by hack3rcon View Post
As you see I choice "RAW" as format. Can you guide me about dd it?
There are lots of helpful dd sites out there.
 
Old 07-08-2016, 04:13 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You did fix the hal before you tried this didn't you?

It should also be possible to fix hal after you migrated it. Boot to windows image and fix install. I believe MS suggested you make full backup with system state and then load new OS on VM then apply restore to correct hal if all else fails.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Xen Hypervisor in VirtualBox hack3rcon Linux - Virtualization and Cloud 2 06-29-2015 03:01 PM
From virtualbox to Xen Jzarecta Linux - Virtualization and Cloud 1 08-05-2013 04:42 PM
LXer: Ubuntu 11.10: Xen vs. KVM vs. VirtualBox LXer Syndicated Linux News 0 10-31-2011 11:51 PM
Xen Vs VMWare Vs Sun VirtualBox yasir.iqbal Linux - Virtualization and Cloud 1 05-09-2010 03:39 AM
Convert from Virtual PC to XEN joshfoulk Linux - Software 1 01-11-2008 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration