virtualbox: how to create a linux virtual machine

49
VirtualBox: How to create a Linux Virtual Machine. http://www.itworld.com/blog/readme-file/ 1

Upload: rosamond-leonard

Post on 08-Jan-2018

248 views

Category:

Documents


0 download

DESCRIPTION

Create a new Virtual Machine (VM), with “Linux” as type and “Other Linux” as version. I selected Other Linux (32 bit), because I’m installing from a 32 bit DVD ISO image.

TRANSCRIPT

Page 1: VirtualBox: How to create a Linux Virtual Machine

VirtualBox: How to create a Linux Virtual Machine.

http://www.itworld.com/blog/readme-file/ 1

Page 2: VirtualBox: How to create a Linux Virtual Machine

Open VirtualBox. Click the new button on the top left toolbar button to create a new virtual machine image.

http://www.itworld.com/blog/readme-file/ 2

Page 3: VirtualBox: How to create a Linux Virtual Machine

Create a new Virtual Machine (VM), with “Linux” as type and “Other Linux” as version. I selected Other Linux (32 bit), because I’m installing from a 32 bit DVD ISO image.

http://www.itworld.com/blog/readme-file/ 3

Page 4: VirtualBox: How to create a Linux Virtual Machine

Assign as much memory as you realistically can to the VM. 1024 MB is sufficient.

http://www.itworld.com/blog/readme-file/ 4

Page 5: VirtualBox: How to create a Linux Virtual Machine

Create a virtual hard drive.

http://www.itworld.com/blog/readme-file/ 5

Page 6: VirtualBox: How to create a Linux Virtual Machine

Select VDI (Virtual Disk Image) as drive type.

http://www.itworld.com/blog/readme-file/ 6

Page 7: VirtualBox: How to create a Linux Virtual Machine

Select Fixed size as storage type. This prevents many issues and problems if installing to a VM using a Linux ISO file.

http://www.itworld.com/blog/readme-file/ 7

Page 8: VirtualBox: How to create a Linux Virtual Machine

I chose 24 GB for the size of this drive, however Slackware will install successfully on a 16 GB VM drive.

http://www.itworld.com/blog/readme-file/ 8

Page 9: VirtualBox: How to create a Linux Virtual Machine

VirtualBox then creates the storage unit.

http://www.itworld.com/blog/readme-file/ 9

Page 10: VirtualBox: How to create a Linux Virtual Machine

Right-click the new VM image and select Settings.

http://www.itworld.com/blog/readme-file/ 10

Page 11: VirtualBox: How to create a Linux Virtual Machine

Check Hardware clock settings. Some Linux/*nix installs prefer the Hardware clock in UTC time option enabled.

http://www.itworld.com/blog/readme-file/ 11

Page 12: VirtualBox: How to create a Linux Virtual Machine

Many installations of Linux will fail unless the Enable PAE/NX option is clicked on. This is found inside the Processor tab under System.

http://www.itworld.com/blog/readme-file/ 12

Page 13: VirtualBox: How to create a Linux Virtual Machine

Don’t forget to add the Linux ISO file as a secondary master drive.

http://www.itworld.com/blog/readme-file/ 13

Page 14: VirtualBox: How to create a Linux Virtual Machine

Network settings. Ensure Enable Network Adapter is checked if you need networking or Internet capability working in the Linux VM.

http://www.itworld.com/blog/readme-file/ 14

Page 15: VirtualBox: How to create a Linux Virtual Machine

USB controller settings.

http://www.itworld.com/blog/readme-file/ 15

Page 16: VirtualBox: How to create a Linux Virtual Machine

Click the Run button on the toolbar to begin installation.

http://www.itworld.com/blog/readme-file/ 16

Page 17: VirtualBox: How to create a Linux Virtual Machine

VirtualBox dialog instructing the user to strike the right Ctrl key to toggle VM capture of keyboard and mouse input.

http://www.itworld.com/blog/readme-file/ 17

Page 18: VirtualBox: How to create a Linux Virtual Machine

Press Enter key to begin installation...

http://www.itworld.com/blog/readme-file/ 18

Page 19: VirtualBox: How to create a Linux Virtual Machine

Login as root, then run cfdisk to create a new Linux partition.

http://www.itworld.com/blog/readme-file/ 19

Page 20: VirtualBox: How to create a Linux Virtual Machine

Create a New partition...

http://www.itworld.com/blog/readme-file/ 20

Page 21: VirtualBox: How to create a Linux Virtual Machine

Ensure the FS type is Linux, then toggle the partition Bootable.

http://www.itworld.com/blog/readme-file/ 21

Page 22: VirtualBox: How to create a Linux Virtual Machine

In cfdisk, Write the partition and Exit when finished. Type setup at the prompt, then Select source installation media.

http://www.itworld.com/blog/readme-file/ 22

Page 23: VirtualBox: How to create a Linux Virtual Machine

Install from a Slackware DVD.

http://www.itworld.com/blog/readme-file/ 23

Page 24: VirtualBox: How to create a Linux Virtual Machine

Scan for the DVD drive...

http://www.itworld.com/blog/readme-file/ 24

Page 25: VirtualBox: How to create a Linux Virtual Machine

...then select the Linux partition as target.

http://www.itworld.com/blog/readme-file/ 25

Page 26: VirtualBox: How to create a Linux Virtual Machine

Quick format is recommended for Linux VM’s.

http://www.itworld.com/blog/readme-file/ 26

Page 27: VirtualBox: How to create a Linux Virtual Machine

I chose to format my partition as a ext4 filesystem.

http://www.itworld.com/blog/readme-file/ 27

Page 28: VirtualBox: How to create a Linux Virtual Machine

Formatting is complete and mount point added to /etc/fstab.

http://www.itworld.com/blog/readme-file/ 28

Page 29: VirtualBox: How to create a Linux Virtual Machine

Begin the install, I chose to install the full distro.

http://www.itworld.com/blog/readme-file/ 29

Page 30: VirtualBox: How to create a Linux Virtual Machine

Innumerable package names flash on the screen during installation.

http://www.itworld.com/blog/readme-file/ 30

Page 31: VirtualBox: How to create a Linux Virtual Machine

Skip creation of a USB boot stick as they are useless for VirtualBox Linux VM’s.

http://www.itworld.com/blog/readme-file/ 31

Page 32: VirtualBox: How to create a Linux Virtual Machine

Install LILO automatically.

http://www.itworld.com/blog/readme-file/ 32

Page 33: VirtualBox: How to create a Linux Virtual Machine

Chose frame buffer console.

http://www.itworld.com/blog/readme-file/ 33

Page 34: VirtualBox: How to create a Linux Virtual Machine

Hit Enter when prompted for optional LILO parameters.

http://www.itworld.com/blog/readme-file/ 34

Page 35: VirtualBox: How to create a Linux Virtual Machine

To be safe, select No UTF-8 console. This does not effect X or window managers such as KDE.

http://www.itworld.com/blog/readme-file/ 35

Page 36: VirtualBox: How to create a Linux Virtual Machine

Install LILO to Master Boot Record. This enables your Linux VM to boot after it is “turned on.”

http://www.itworld.com/blog/readme-file/ 36

Page 37: VirtualBox: How to create a Linux Virtual Machine

Mouse settings. You will most likely need to change this from the default PS/2 Intellimouse to “USB connected mouse.”

http://www.itworld.com/blog/readme-file/ 37

Page 38: VirtualBox: How to create a Linux Virtual Machine

Select Yes to enable gpm (general purpose mouse).

http://www.itworld.com/blog/readme-file/ 38

Page 39: VirtualBox: How to create a Linux Virtual Machine

Configure network.

http://www.itworld.com/blog/readme-file/ 39

Page 40: VirtualBox: How to create a Linux Virtual Machine

Enter hostname.

http://www.itworld.com/blog/readme-file/ 40

Page 41: VirtualBox: How to create a Linux Virtual Machine

Enter domain name.

http://www.itworld.com/blog/readme-file/ 41

Page 42: VirtualBox: How to create a Linux Virtual Machine

I chose DHCP for network configuration type.

http://www.itworld.com/blog/readme-file/ 42

Page 43: VirtualBox: How to create a Linux Virtual Machine

Hit Enter for DHCP hostname.

http://www.itworld.com/blog/readme-file/ 43

Page 44: VirtualBox: How to create a Linux Virtual Machine

Confirm setup.

http://www.itworld.com/blog/readme-file/ 44

Page 45: VirtualBox: How to create a Linux Virtual Machine

Chose startup services, I hit OK to run the default services. These can always be changed later if needed.

http://www.itworld.com/blog/readme-file/ 45

Page 46: VirtualBox: How to create a Linux Virtual Machine

No custom screen fonts.

http://www.itworld.com/blog/readme-file/ 46

Page 47: VirtualBox: How to create a Linux Virtual Machine

Choose the appropriate hardware clock setting.

http://www.itworld.com/blog/readme-file/ 47

Page 48: VirtualBox: How to create a Linux Virtual Machine

Chose your favorite window manager.

http://www.itworld.com/blog/readme-file/ 48

Page 49: VirtualBox: How to create a Linux Virtual Machine

Installation is finished, and you may now run the Slackware Linux VM inside VirtualBox.

http://www.itworld.com/blog/readme-file/ 49