LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-02-2012, 03:33 AM   #1
optimusNII
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
making a virtual ubuntu guest, host


Good morning,
please I have an Ubuntu12.04 running in vmware workstation, it's was my way of carrying my linux machine around. Now I'm getting a laptop & I'm wondering if I can make my virtual 12.04 run as the main OS on my Hp4530s
 
Old 11-02-2012, 07:28 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Usually there should be no problem with that. Create the necessary partitions, copy the files over, adapt /etc/fstab to the new machine and re-install the bootloader.
 
Old 11-02-2012, 08:41 AM   #3
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by TobiSGD View Post
Usually there should be no problem with that. Create the necessary partitions, copy the files over, adapt /etc/fstab to the new machine and re-install the bootloader.
Better just make an image of the virtual partition (with dd, to the real filesystem) then transfer it to the new hdd (no need removing the laptop hdd, it can be done with a live cd with netcat (preferably over ethernet). Ideal is to make a partition of the needed size before. Then install the bootloader, boot the system and (if needed) install drivers and stuff.
This way you will have the whole system as it was before.
 
Old 11-02-2012, 09:43 AM   #4
optimusNII
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gradinaruvasile View Post
Better just make an image of the virtual partition (with dd, to the real filesystem) then transfer it to the new hdd (no need removing the laptop hdd, it can be done with a live cd with netcat (preferably over ethernet). Ideal is to make a partition of the needed size before. Then install the bootloader, boot the system and (if needed) install drivers and stuff.
This way you will have the whole system as it was before.
first, I'm greatful.
But how do you mean 'make an image of the virtual partition'? There's a .vmx image of the virtual ubuntu12.04 existent already in documents\virtual machines, the host machine is a windows 7. Is that what you're referring to?
 
Old 11-02-2012, 03:15 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Copy or clone a VM as if it were real drive.

I think he means to use a live iso to boot up the VM. Then dd the (virtual) mounted drive to some file either on a new blank virtual hard drive or over network.

The basic ways to copy or clone a VM are the same for a real computer. One can use a bit by bit such as dd or one can use other tools like gparted, cpio, tar or such to copy partition file by file.

It might be possible to use tools like redobackup and clonezilla also booted to the virtual machine. Then again use a new blank virtual hard drive or network drive to save the image(s).


I think there are tools to even mount some virtual hard drive's as one might mount an iso image to a currently booted linux system. That would require some linux being booted to the current host.

You might even be able to convert the .vhd to a .raw file. That raw file may or may not work to dd over to a real computer.

The main issue with dd is that some systems may have to be changed in places. Grub or other fstab entries may be device by name or such and will have to be corrected.

Another way is to do a clean install of your choice and update and add in all apps you have. Then only copy over the personal data.

Last edited by jefro; 11-02-2012 at 03:20 PM.
 
  


Reply

Tags
ubuntu 12.04, virtual machine



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
security of virtual linux guest on windows host o12357 Linux - Security 6 05-29-2012 03:42 AM
[SOLVED] Virtual machine windows xp as host OS and Fedora as guest OS Ajit Gunge Linux - Software 3 04-23-2012 08:25 AM
Braking out of a virtual machine guest and cracking the host OS, possible? ServerNoob Linux - Virtualization and Cloud 11 06-04-2011 06:20 AM
Linux host with windows guest virtual box Hioushi Linux - Virtualization and Cloud 8 02-17-2011 05:35 PM
Virtual machine freezes host and guest davholla Linux - Virtualization and Cloud 3 11-20-2010 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:24 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