User:Murdos/colinuxmbserver: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
((Imported from MoinMoin))
((Imported from MoinMoin))
Line 15: Line 15:
===Download the image using the link in VirtualMusicBrainzServer & extract the files===
===Download the image using the link in VirtualMusicBrainzServer & extract the files===


===Convert the virtual disk split in 2Gb files to a single virtual disk===
===Convert the virtual disks split in 2Gb files to single virtual disks===


# Be sure to have VMWare Server installed: you'll need the ''vmware-vdiskmanager'' tool which comes with it
# Be sure to have VMWare Server installed: you'll need the ''vmware-vdiskmanager'' tool which comes with it
Line 21: Line 21:


<pre>vmware-vdiskmanager -r MBServer-Root-000001-cl1.vmdk -t 0 MBServer-Root-000001-cl1-flattened.vmdk
<pre>vmware-vdiskmanager -r MBServer-Root-000001-cl1.vmdk -t 0 MBServer-Root-000001-cl1-flattened.vmdk
vmware-vdiskmanager -r MBServer-DB-000001-cl1.vmdk -t 0 MBServer-DB-000001-cl1-flattened.vmdk
</pre>
</pre>


===Convert the new single virtual disk in VMWare format to QEmu raw format===
===Convert the new single virtual disks in VMWare format to QEmu raw format===


# You need the QEmu ''qemu-img'' tool
# You need the QEmu ''qemu-img'' tool
Line 29: Line 30:


<pre>qemu-img convert MBServer-Root-000001-cl1-flattened.vmdk MBServer-Root.img
<pre>qemu-img convert MBServer-Root-000001-cl1-flattened.vmdk MBServer-Root.img
qemu-img convert MBServer-DB-000001-cl1-flattened.vmdk MBServer-DB.img
</pre>
</pre>


===Convert the QEmu raw virtual disk in coLinux raw format===
===Convert the QEmu raw virtual disks in coLinux raw format===


<small>[http://colinux.wikia.com/wiki/Converting_Distributions#E._If_converting_from_a_QEMU_RAW_virtual_disk_image more info]</small>
<small>[http://colinux.wikia.com/wiki/Converting_Distributions#E._If_converting_from_a_QEMU_RAW_virtual_disk_image more info]</small>
Line 38: Line 40:


<pre>dd if=MBServer-Root.img of=MBServer-Root bs=512 skip=63
<pre>dd if=MBServer-Root.img of=MBServer-Root bs=512 skip=63
dd if=MBServer-DB.img of=MBServer-DB bs=512 skip=63
</pre>
</pre>



Revision as of 23:30, 23 August 2007

Products > Server > Server development > Server setup > CoLinux MusicBrainz Server

What Is the CoLinux Virtual MusicBrainz Server?

The CoLinux Virtual MusicBrainz Server is variant of VirtualMusicBrainzServer using Cooperative Linux instead of VMWare to run the virtual machine image provided by MusicBrainz. This image contains a Linux environment fully configured with the latest release of the Server source code. If you want to experiment with the data, or try hacking on some new features, it is intended to be the fastest way to get up and running.

What's in the Image?

See VirtualMusicBrainzServer: we're using the same image.

Preparation

You first need to convert the virtual machine image for VMWare to a format adapted for coLinux.

Download the image using the link in VirtualMusicBrainzServer & extract the files

Convert the virtual disks split in 2Gb files to single virtual disks

  1. Be sure to have VMWare Server installed: you'll need the vmware-vdiskmanager tool which comes with it
  2. Assuming vmware-vdiskmanager is in your %PATH%, launch:
vmware-vdiskmanager -r MBServer-Root-000001-cl1.vmdk -t 0 MBServer-Root-000001-cl1-flattened.vmdk
vmware-vdiskmanager -r MBServer-DB-000001-cl1.vmdk -t 0 MBServer-DB-000001-cl1-flattened.vmdk

Convert the new single virtual disks in VMWare format to QEmu raw format

  1. You need the QEmu qemu-img tool
  2. Assuming qemu-img is in your %PATH%, launch:
qemu-img convert MBServer-Root-000001-cl1-flattened.vmdk MBServer-Root.img
qemu-img convert MBServer-DB-000001-cl1-flattened.vmdk MBServer-DB.img

Convert the QEmu raw virtual disks in coLinux raw format

more info

  1. You need a win32 port of dd provided by unxutils
  2. Assuming dd is in your %PATH%, launch:
dd if=MBServer-Root.img of=MBServer-Root bs=512 skip=63
dd if=MBServer-DB.img of=MBServer-DB bs=512 skip=63

Running the CoLinux Virtual MusicBrainz Server