LinuxQuestions.org
Visit Jeremy's Blog.
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 12-31-2013, 05:32 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
Problem on booting cloned VM


Hi all,

Host Ubuntu 12.043
Guest OpenSUSE 13.1
Oracle VirtualBox

All cloned guests can't boot

Warning:
Timed out waiting for device dev-disk-by\x2did-ata\x...2dpart1.device.
Dependency failed for /boot
Dependency failed for Local File Systems


Found following 2 threads:
Unable to use cloned VM, OpenSUSE, VirtualBox
http://superuser.com/questions/43235...use-virtualbox

Cannot boot OpenSuse 12 after cloning disk due to by-id access to the disk
http://diggerpage.blogspot.hk/2011/1...r-cloning.html

but couldn't resolve how to fix the problem. Please help

TIA

Rgds
satimis
 
Old 12-31-2013, 11:11 AM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Why did you clone the vm? How did you clone the vm? Usually you just copy the entire vm instead of a clone.


Yes, a normal computer that is cloned could have specific hardware that is mentioned in a few places. One is grub, another is fstab. A rule before clone is to make the terms generic like /dev/sda1 or such instead of my name or uuid.

You'll have to correct all entries that mention the old system to either generic or the new name/uuid or other. A live cd should help correct.
 
Old 12-31-2013, 11:21 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by jefro View Post
Why did you clone the vm? How did you clone the vm? Usually you just copy the entire vm instead of a clone. - snip -
The openSUSE VM was cloned on the same PC. The cloned VM has booting problem. I tried at least 3 times creating 3 cloned VMs.

However the strange thing is no problem on cloning Debian 7.3.1/LinuxMint16/Ubuntu12.04, all VMs cloned without booting issue.

satimis
 
Old 01-02-2014, 08:31 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Opensuse uses specifics in their boot and fstab. Change to generic or correct them to the new system.
 
Old 01-03-2014, 12:59 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Solved

Hi all,

Problem solved as follow;

Start the VM with live-kde-opensuse13.1 ISO

Start Terminal

linux@linux:~> su

# fdisk -l
Code:
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0002efa7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      819199      408576   83  Linux
/dev/sda2          819200    83886079    41533440   8e  Linux LVM
Mount LVM

# pvs
Code:
  PV         VG     Fmt  Attr PSize  PFree
  /dev/sda2  system lvm2 a--  39.61g 8.00m
# lvdisplay /dev/system
Code:
....   
  --- Logical volume ---
  LV Path                /dev/system/root
  LV Name                root
  VG Name                system
# mount /dev/system/root /mnt

# ls /mnt/
Code:
bin   dev  home  lib64       media  opt   root  sbin     srv  tmp  var
boot  etc  lib   lost+found  mnt    proc  run   selinux  sys  usr
# cp /mnt/etc/fstab /mnt/etc/fstab.ORIG_20140103

# nano /mnt/etc/fstab
change the line;
Code:
/dev/disk/by-id/ata-VBOX_HARDDISK_VBef165ce6-8bf1a0de-part1 /boot  ext4  acl,user_xattr 1 2
as;
Code:
/dev/sda1 /boot  ext4  acl,user_xattr 1 2
Shutdown the VM and remote the live-kde-opensuse13.1 ISO

Start VM. Now it can boot without problem.

Thanks


Edit
====
To avoid the step mounting the LVM do as follow;

After booting the Live-CD

Kmenu -> Applications -> System -> File Manager -> File Manager-Super User Mode

Then it can directly edit the "fstab" file there.


Rgds
satimis

Last edited by satimis; 01-03-2014 at 04:58 AM.
 
Old 01-04-2014, 03:37 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Thank you for the detailed method to fix it.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning and booting a cloned drive nicklay Linux - Server 9 07-06-2013 09:57 AM
Booting a Cloned Drive and booting with both drives plugged in. NYCmitch25 Linux - General 2 02-18-2013 11:49 AM
problem when restore cloned image pinkhawk75 Linux - Newbie 1 04-15-2009 05:07 AM
Cloned image using Acronis not booting dogbreath_NZ Linux - Kernel 2 08-10-2006 12:35 AM
Cloned CD problem,K3B. akihandyman Mandriva 3 01-08-2005 05:58 PM


All times are GMT -5. The time now is 08:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration