LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-10-2018, 01:47 PM   #1
JoaoaoJ
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
Unhappy Trying to put a VMWare OS on a USB stick


Hey so i'm new to linux and what not and im working with debian on VMWare player for a school project, we are supposed to put a couple of programs on the virtual machine (php,mysql,apache,etc.) and then put in a pen drive and make be installable and able to run live. I've done everything but i cannot make the last part work so my question is : how do i put the debian os, that i have put all the programs in, in a pen drive and make it bootable on other computers. Please Help! Thank you.
 
Old 05-10-2018, 06:38 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you have vmware player on each machine you want to use the VM on, you just load the VM files onto a USB drive. Wherever you put the Debian VM, that's where it should be. But if you want to boot the VM on a machine that doesn't have vmware player, that would be more difficult. You'd need a whole Linux system on the USB drive. It's doable though.
 
Old 05-10-2018, 07:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I guess I had better ask this. Do you require that the usb be bootable and be a debian installer method?

As for any other method, a VM can be considered a real physical computer for the most part. You'd take any method to clone or copy some install across hardware. Things like command line dd or bootable images like clonezilla would move across vm to file on usb and then from file on usb to physical.
 
Old 05-11-2018, 05:44 AM   #4
JoaoaoJ
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
If you have vmware player on each machine you want to use the VM on, you just load the VM files onto a USB drive. Wherever you put the Debian VM, that's where it should be. But if you want to boot the VM on a machine that doesn't have vmware player, that would be more difficult. You'd need a whole Linux system on the USB drive. It's doable though.
Yeah i need i to be bootable without vmware.
 
Old 05-11-2018, 05:45 AM   #5
JoaoaoJ
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I guess I had better ask this. Do you require that the usb be bootable and be a debian installer method?

As for any other method, a VM can be considered a real physical computer for the most part. You'd take any method to clone or copy some install across hardware. Things like command line dd or bootable images like clonezilla would move across vm to file on usb and then from file on usb to physical.
Yes i need to be bootable so that you can boot your computer from the usb and install the os or run it live.
 
Old 05-11-2018, 07:14 AM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
There was a nice project - remastersys, which was supposed to pack your debian system into bootable (and installable) iso file, but unfortunately that project was abandoned for a few years now.
However, there is LinuxRespin - fork of remastersys - https://github.com/ch1x0r/LinuxRespin. Though I didn't try this fork

Last edited by Teufel; 05-11-2018 at 07:16 AM.
 
Old 05-11-2018, 08:55 AM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Post Install from VM image.

Quote:
Originally Posted by JoaoaoJ View Post
Yes i need to be bootable so that you can boot your computer from the usb and install the os or run it live.
I'd really need to know more about the Debian VM to determine how to do it. If it's a real Debian VM, where Debian has been installed in a VM, I can't figure out how I would use that for installation.

But if you want to try something, I have an idea. Set up the virtual machine with a shared directory to the host. Then, boot the VM. Then do
Code:
$ dd if=/dev/sda of=/shared_directory/debian_image.img bs=64k.
Then, write the img file to a USB drive using dd.

Or, you could make the USB mount point the shared directory in the VM, and you could save a step. The resulting USB drive should boot, and you can use dd to copy it to the hard drive, kind of like an installation.
 
1 members found this post helpful.
Old 05-11-2018, 01:22 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
sudo apt-get install debian-installer-launcher in the vm maybe also to start. Not sure an installed system has it.

Now to get the usb to take the files/programs.

Kickstart might be used but I've never used it like that.
 
Old 05-12-2018, 06:37 AM   #9
JoaoaoJ
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
sudo apt-get install debian-installer-launcher in the vm maybe also to start. Not sure an installed system has it.

Now to get the usb to take the files/programs.

Kickstart might be used but I've never used it like that.
So I installed it but what now?
 
Old 05-12-2018, 07:44 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Simplest solution would have been remastersys which could be installed on Debian and would then create an iso of the installed/modified system with the installer. Haven't tried Respin suggested above so it might work. There are at least two other programs which do this with current major Ubuntu systems but I doubt they will work with Debian. Even remastersys had a different version for Debian.

You could try the suggestion by AwsomeMachine above. If you've done some online searching on this subject, you should have found a large number of sites discussing it and some with similar (although more convoluted) methods. Generally, didn't work though from my reading. Not having anything similar to remastersys, you would probably need to use the host machine or a live system with mkisofs/genisoimage.

Last edited by yancek; 05-12-2018 at 01:13 PM.
 
Old 05-12-2018, 07:56 AM   #11
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
I use a minimal Puppy Linux with VirtualBox and it works well.

Or if the target machine has a working Windows, just portable VirtualBox.
 
Old 05-12-2018, 01:17 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Just to clarify what you want to do, so we are all of the same understanding. My reading of your post(s) is that you basically want to install Debian, configure it to your liking by adding and or removing software (including the Debian installer) and when that is accomplished, you want to remaster it and create an iso which is bootable and of course, installable. You have done this in a virtual setting (VMWare) and do not want to boot/install it or use VMWare, VirtualBox or other virtualization software but want to boot it from a usb on your computer or other computers, is that all correct?
 
Old 05-14-2018, 08:26 AM   #13
JoaoaoJ
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Just to clarify what you want to do, so we are all of the same understanding. My reading of your post(s) is that you basically want to install Debian, configure it to your liking by adding and or removing software (including the Debian installer) and when that is accomplished, you want to remaster it and create an iso which is bootable and of course, installable. You have done this in a virtual setting (VMWare) and do not want to boot/install it or use VMWare, VirtualBox or other virtualization software but want to boot it from a usb on your computer or other computers, is that all correct?
Yes that is correct, teh usb has to install the debian os along with the programms added by me (apache,php,etc).
 
Old 05-14-2018, 09:55 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Have you tried the dd command suggested above? If so, what happened.
Remastersys installed on Debian would have done the job but I doubt it will work on a new version of Debian. Have you tried Linux Respin suggested Debian? If so, what happened? I would try that first as it would be the simplest, if it works?

Have you tried the method suggested in post 7? If so, what happened?

I haven't used VMWare but did this in VirtualBox by using a Linux iso situated on the host drive and accessing it through the Settings/Storage option and then from Settings/System, setting the optical drive to boot before the HD in VBox. I'm sure there are similar settings in VMWare.

Last edited by yancek; 05-14-2018 at 12:43 PM.
 
  


Reply



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
[SOLVED] what if I put /home on a USB stick separate from the OS? newbiesforever Linux - General 2 04-20-2013 12:19 AM
[SOLVED] How would I put WattOS on a usb stick? dsplayer14 Linux - Newbie 4 02-27-2012 05:48 PM
LXer: Put Windows to the Most Appropriate Use: Create a Bootable USB Stick with Ubunt LXer Syndicated Linux News 0 05-01-2010 05:30 PM
How do you put DSL on a USB stick? killwerty DamnSmallLinux 1 01-13-2009 12:50 PM
[FC4] USB Stick unmounts itself every 30 seconds, cannot put data onit polemon Linux - Newbie 2 07-24-2005 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 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
Open Source Consulting | Domain Registration