[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Converting a VMDK on ESX to raw


  • To: Wei Liu <wei.liu2@xxxxxxxxxx>
  • From: "Manoj Subramaniam (manojsub)" <manojsub@xxxxxxxxx>
  • Date: Tue, 4 Feb 2014 19:07:49 +0000
  • Accept-language: en-US
  • Cc: "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 04 Feb 2014 19:09:08 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: AQHPHtGS+MLKvYMPYkeLfIsg42H3S5qgBzGAgARtZ4CAAO+6AP//9UuA
  • Thread-topic: [Xen-users] Converting a VMDK on ESX to raw

I see x86 boot sector too:

root@ubuntu:~# file win-dd.img
win-dd.img: x86 boot sector; partition 1: ID=0x7, active, starthead 32,
startsector 2048, 204800 sectors; partition 2: ID=0x7, starthead 223,
startsector 206848, 62702774 sectors, code offset 0xc0, OEM-ID "      м",
Bytes/sector 190, sectors/cluster 124, reserved sectors 191, FATs 6, root
entries 185, sectors 64514 (volumes <=32 MB) , Media descriptor 0xf3,
sectors/FAT 20644, heads 6, hidden sectors 309755, sectors 2147991229
(volumes > 32 MB) , physical drive 0x7e, dos < 4.0 BootSector (0x0)



Here’s my config file:
+++++++++++++++++++++++++

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 2048

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "xenwin2008"
vif = [ 'type=ioemu, bridge=xenbr0' ]
acpi = 1
apic = 1
disk = [ 'file:/root/win-dd.img,sda,w' ]
device_model = '/usr/lib/xen/bin/qemu-dm'

#--------------------------------------------------------------------------
---
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=1
vnc=0
#vncconsole=1
#vncpasswd=''

serial='pty'
usbdevice='tablet'



- Manoj



On 2/4/14, 3:46 AM, "Wei Liu" <wei.liu2@xxxxxxxxxx> wrote:

>On Tue, Feb 04, 2014 at 05:28:06AM +0000, Manoj Subramaniam (manojsub)
>wrote:
>> I tried this and it didn¹t work either.
>> 
>> Here¹s what I did. I had a windows VM on ESX (I did install GPL PV
>> drivers) and a Linux VM. I turned off the windows VM and attached it¹s
>> disk to the linux VM. So I could see it as /dev/sdd . Then I did a ³ dd
>> if=/dev/sdd of=windows.img bs=1m ³ After this I moved the windows.img to
>> another machine running Xen 4.2.3 and Ubuntu Dom0, I tried to bring it
>>up
>> as an HVM. It tries to boot up and then says ³Boot from hard disk
>>failed:
>> could not read the boot disk² and  ³No bootable device. Powering off in
>>30
>> seconds.²
>> 
>
>This looks right. Remember inside the VM you always sees a raw disk,
>nothing fancy going on, otherwise the OS itself won't be able to read
>its content.
>
>But TBH I've never used ESX. What happens when you do "file
>windows.img"?
>
>I have a raw disk image called "rhel7.img" and it returns "rhel7.img:
>x86 boot sector".
>
>Wei.
>
>> 
>> 
>> On 1/31/14, 5:51 PM, "mitch@xxxxxxxxxxxx" <mitch@xxxxxxxxxxxx> wrote:
>> 
>> >Wei can you provide a little more detail?
>> >I have a client machine running Windows 2000 on vmware 2 I desparately
>> >want to convert to XenServer 6.2 but so far my attempts have all
>>failed.
>> >Single machine - but I'm not quite sure what I'd be dd'ing to what?
>> >
>> >Cheers - have a great weekend!
>> >
>> >-----Original Message-----
>> >From: xen-users-bounces@xxxxxxxxxxxxx
>> >[mailto:xen-users-bounces@xxxxxxxxxxxxx] On Behalf Of Wei Liu
>> >Sent: January 31, 2014 2:13 PM
>> >To: Manoj Subramaniam (manojsub)
>> >Cc: xen-users@xxxxxxxxxxxxx; wei.liu2@xxxxxxxxxx
>> >Subject: Re: [Xen-users] Converting a VMDK on ESX to raw
>> >
>> >On Fri, Jan 31, 2014 at 07:25:37PM +0000, Manoj Subramaniam (manojsub)
>> >wrote:
>> >> I¹m trying to convert a vmdk windows image to a raw image compatible
>> >>with xen. I have tried qemu-img and vmkfstools so far, but have had no
>> >>luck I.e, DomU says it can¹t find the boot disk and fails. I am going
>>to
>> >> try out Redhat¹s virt-v2v. Is there a tool you guys use?
>> >> 
>> >
>> >A dumb method I can think of is you create a Linux guest on ESX, mount
>> >attach that disk and use dd. It should be doable if you only want to
>> >convert one or two disks.
>> >
>> >Wei.
>> >
>> >> - Manoj
>> >
>> >> _______________________________________________
>> >> Xen-users mailing list
>> >> Xen-users@xxxxxxxxxxxxx
>> >> http://lists.xen.org/xen-users
>> >
>> >
>> >_______________________________________________
>> >Xen-users mailing list
>> >Xen-users@xxxxxxxxxxxxx
>> >http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.