LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-13-2009, 09:22 AM   #16
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337

Then how do I install DSL to it if I can't partition it?
 
Old 04-13-2009, 09:30 AM   #17
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
From a while ago when I was messing about with old Slack releases:

Code:
qemu -localtime -m 128 -hda slack81.img -cdrom slackware-8.1-install.iso -boot d
That installed Slack on the vhd (slack81.img). Then if you want to edit or otherwise mess with the install, you can create a .qcow image to work on and leave your original untouched (using the above example):

Code:
qemu-img create -b slack81.img -f qcow slack81.qcow
Boot that up:

Code:
qemu -localtime  -m 128 -hda slack81.qcow
If you've edited it to your liking, then:

Code:
qemu-img commit -f slack81.qcow
It's just like a normal install to a normal, real, HDD.

Last edited by brianL; 04-13-2009 at 09:35 AM.
 
Old 04-13-2009, 09:35 AM   #18
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
you can't, qemu is an emulator, as is virtualbox.
What do you want to achieve ?

You can use virtualbox or qemu to install an OS in a virtual environment.
Once installed you can start and use the OS in the virtual environment, but it still is on a virtual drive (img file)
qemu uses .img files, virtualbox uses .vdi files

Code:
cannabis:/home/repo# cd .VirtualBox/
cannabis:/home/repo/.VirtualBox# ls
compreg.dat  HardDisks	Machines  VirtualBox.xml  VirtualBox.xml.1.6-linux.bak	xpti.dat
cannabis:/home/repo/.VirtualBox# cd HardDisks/
cannabis:/home/repo/.VirtualBox/HardDisks# ls
linux.vdi  puppy.vdi  windows.vdi
cannabis:/home/repo/.VirtualBox/HardDisks#
I have installed windows 7 beta in virtualbox, I can use it, safe files, install programs, run updates...., but you can not partition or format it.
 
Old 04-13-2009, 09:42 AM   #19
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
I'll be able to give VirtualBox a go now I've got a decent amount of RAM.
 
Old 04-13-2009, 09:54 AM   #20
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
OK-so how do I install DSL to the vhd i make?
i just tried and of course it wants to format the "hd", then I reboot and nothing.
So-how do I install a distro to my hda.img without partitioning/formatting?
How do I save files etc?
Just Qemu
 
Old 04-13-2009, 10:56 AM   #21
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
DSL has trouble installing in virtual machines.
There is a backup option, perhaps you can take a look at that.
 
Old 04-13-2009, 11:02 AM   #22
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Yes Repo-that's what I'm trying to do-create the VHD for a DSL "frugal" install-I just wanna use the vhd as the container for holding the mydsl and backup.tar.gz
Can I do that?
What's the procedure for installing a distro this way-let's say slackware-what do I do when it asks to partition/format the vhd?
 
Old 04-13-2009, 11:59 AM   #23
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Quote:
Originally Posted by linus72 View Post
What's the procedure for installing a distro this way-let's say slackware-what do I do when it asks to partition/format the vhd?
Well, when I did it, I just went through the usual procedure with cfdisk. I'd made a .img file of 3 GB, so during the Slack install I created a swap (don't know if that was necessary) of 256 MB and the rest for /. Like I said before, it was no different to a real install.
 
Old 04-13-2009, 02:24 PM   #24
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
OK-let's start over-
I just tried in both Ubuntu and Slack, using what you guys said above, to install slack to a 5GB ".img".
It didn't work either time-at reboot says no bootable hd found...
To make things simpler-when I create a VHD with Qemulator-the GUI-where does it put the vhd?
 
Old 04-13-2009, 03:01 PM   #25
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Basically-this is what I'm trying to do...
Using the qemu .sh found in Billix you can boot qemu out of a folder/cd/etc and play dsl-that's cool-doesn't require qemu be installed on your PC at all
Problem-it'll only play a reg DSL, not a Mydsl remaster-which requires that you have a seperate fat32/other partition to backup/restore the data.
Well, I found a way to do that-but although everything boots and plays well-I get alot of errors on boot-up
"Chown-mydsl read-only fs"
"Chmod-mydsl-read-only fs"
This slows the boot and I need a way to do it without the errors.
So, basically I don't even need a vhd-just a "CONTAINER" of so many MB's that can hold the mydsl/backup.tar.gz and let it be accessed.
Any idea's?
 
Old 04-13-2009, 04:41 PM   #26
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
The vhd is the .img file you create. It's where you create it. I've never used Qemulator, did mine from the CLI.
 
  


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
video4linux Riddle jazpaisley Linux - Newbie 17 07-13-2009 04:52 AM
need help with a riddle phntm31 General 10 09-29-2006 03:09 PM
Riddle me this on 2.6.10 aufomechanic Linux - General 2 02-09-2005 03:56 AM
A riddle: can you solve it? schatoor General 53 03-27-2004 07:42 AM
riddle for you all SlippySlappy General 9 10-07-2003 11:30 AM


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