LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2012, 10:19 AM   #1
cerien
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
Moving an existing Centos to a XenServer with different disk layout


Hello All,

I have an existing box, with 3 OSes on it: mandriva, centos 5.6, and a dead windows.

I want to move this to a XenServer. I've moved the whole lot with a conversion utility, and it is working.

I'd like to "extract" the Centos partitions (/ /boot and swap), and have them only in one VM.

I've created a disk (/dev/hda), with three partitions on it. I've mkfs.ext3 or mkswap as required, cp'ed the data.
I've never succeeded in reinstalling grub with grub reinstall, did it manually (grub, device (hd0) /dev/hda, root (hd0,0) setup (hd0,0) )

I've labeled the partitions with tune2fs and e2label
I've edited the /etc/fstab

the drive now boots, and I reach the 'Red Hat nash version 5.1.19.6 starting) point

thats when it goes bad !

I get the messages:
mkrootdev: expected fs mount point
mount missing mount point
setuproot: moving /dev failed: no such file or directory
setuproot: error mounting /proc: no such file or directory
setuproot: error mounting /sys: no such file or directory

kernel panic, etc...

So,...

What else do I need to tune to get the box running ?

Many thanks for your help

J.
 
Old 01-17-2012, 02:49 AM   #2
Hamerins
LQ Newbie
 
Registered: May 2011
Distribution: Backtrack 5 R1, Fedora 16 Security Spin, Archlinux
Posts: 25

Rep: Reputation: 0
Hello J,

Can you provide the fstab for the centos, also please tell me whether you have cloned the entire hard drive of the old machine..
Also Please provide the fstab for the xen virtual machine

Regards,
Hamerins

Last edited by Hamerins; 01-17-2012 at 03:39 AM.
 
Old 01-17-2012, 07:21 AM   #3
cerien
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
thanks for your help,

the issue arose when I was trying to create a disk with only the centos partitions, leaving out the other 2 OSes

I've eventually regenerated initrd via mkinitrd and it fixed the problem,

rgds,

j.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Citrix XenServer or Xen on CentOS grob115 Linux - Virtualization and Cloud 3 06-10-2010 02:57 PM
CentOS 5.3 32bit on Citrix XenServer NO graphical interface Eddi1984 Linux - Newbie 2 03-23-2010 02:30 PM
Difference CentOS Xen and Citrix XenServer jonaskellens Linux - Virtualization and Cloud 5 12-03-2009 12:54 PM
Moving an Existing Installation dudeman41465 Linux - General 1 09-13-2006 05:30 PM
Moving existing install to new fs type daboochmeister Linux - General 1 06-18-2006 01:15 PM


All times are GMT -5. The time now is 02:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration