Mac vmware fusion linux

Install Ubuntu Linux in VMware Fusion on the Mac?

I need to test out some software within Ubuntu Linux for work. I don’t want to dual boot, so I’m looking at VMware Fusion for my iMac. Can I install Ubuntu Linux in VMware Fusion, and if so, what are the steps?

Great choices all around, Ubuntu is my favorite Linux distro and VMware Fusion has been a cornerstone of my Mac experience for many years and does a great job installing and running just about every flavor of Linux (and Windows too). Even better, you can grab a free ISO disk image of Ubuntu directly from their Web site and once you’ve grabbed the 1.5GB file, it’s rather astonishingly easy to go from download to running Ubuntu installation!

The only comment I’ll make about dual boot versus virtual machine is that a dual boot install will be a bit cleaner and faster, if that makes a difference. If you’re testing software that accesses device drivers or hardware, for example, a dual boot is probably going to be better. If you’ve just got some regular user software to test out, or just want to learn more about Linux with the easy Ubuntu world, then a VM is going to be a smarter alternative. One huge benefit: You can run Ubuntu and whatever other VM you prefer simultaneous to also running MacOS X and all of your favorite Mac apps too.

To start, you’ll need VMware Fusion, of course. Grab an evaluation copy or go ahead and pay for a license at vmware.com. Now pop out to Ubuntu to grab the ISO. Easiest is to go to ubuntu.com/download/desktop or just click on the box below (it’ll grab the latest copy if things have updated in the interim between me writing this and you downloading the OS):

Источник

Installing Ubuntu using VMWare fusion tech Preview on MAC M1 silicon

Image description 1- Click on «Install from disk or image». Image description 2- Browse and select to the ISO Ubuntu file downloaded. Image description 3- Click Finish. Image description

Читайте также:  Этапы загрузки системы linux

Disabling Network Adapter

1- Go to the Settings
Image description 2- Select Network Adapter 3- Deselect Connect network adapter
Image description

Installing Ubuntu

1- Now, start the VM.
2- Click on «Install Ubuntu Server»
3- Select all the defaults and keep on going.
4- Eventually, you will reach here.
Image description
5- Once install You can see that «installing system» changes to «Install Complete!». Then, click on «Reboot Now» and Press «Enter» again.
Image description
6- The VM will stuck on the following screen simply Press «Enter» to continue.
Image description
7- Enable the Network adapter back again by going to the Settings > Network Adapter > Selecting «Connect Network Adapter» option.

8- You will be prompt to Enter Username and password which you configured while installing the operating system.
9- You will reach the following screen.
Image description
10- Also remove the ISO by going to settings and unselecting «CD/DVD (SATA)
Image description

Updating repositories and rebooting

sudo apt update sudo reboot 

Installing Desktop Environment

sudo apt install tasksel sudo tasksel install ubuntu-desktop sudo reboot 

Install VMWare tools

sudo apt install -y open-vm-tools-desktop sudo reboot now 

Take Snapshot for fresh installation

We can revert back to it in case there is some issue. Image description Image description Image description

Источник

Installation of VMWare Fusion

Buy VMWare Fusion, download, and install (write the serial number during installation). To get quickly started, you download a trial version for free and later buy it and register the serial number (easy).

Installation of Ubuntu

Go to http://www.ubuntu.com/desktop/get-ubuntu/download and choose the latest 64-bit Desktop version of Ubuntu. Save the downloaded Ubuntu file at some place you can recognize later.

Other Linux distributions. We strongly recommend to use a Debian-based GNU/Linux distribution, because Debian has by far the largest collection of prebuilt mathematical software.

Among the Debian-based distributions, we recommend Ubuntu, simply because switching keyboard layouts is more reliable or easier in Ubuntu than in, e.g., Lubuntu, Xubuntu, and Linux Mint (a configured layout might be gone after a reboot). Switching keyboard layouts are particularly convenient when doing programming with an English/American keyboard, with braces and brackets in natural places, and then writing emails using a native keyboard with special characters.

Quick description

  1. Launch VMWare Fusion (the instructions here are for version 7).
  2. Click on File — New and choose to Install from disc or image.
  3. Click on Use another disc or disc image and choose your .iso file with the Ubuntu image.
  4. Choose Easy Install, fill in password, and check the box for sharing files with the host operating system.
  5. Choose Customize Settings and make the following settings (these settings can be changed later, if desired):
    • Processors and Memory: Set a minimum of 2 Gb memory, but not more than half of your computer’s total memory. The virtual machine can use all processors.
    • Hard Disk: Choose how much disk space you want to use inside the virtual machine (20 Gb is considered a minimum).
  6. Choose where you want to store virtual machine files on the hard disk. The default location is usually fine. The directory with the virtual machine files needs to be frequently backed up so make sure you know where it is.
  7. Ubuntu will now install itself without further dialog, but it will take some time.
  8. You may need to define a higher resolution of the display in the Ubuntu machine. Find the System settings icon on the left, go to Display, choose some display (you can try several, click Keep this configuration when you are satisfied).
  9. You can have multiple keyboards on Ubuntu. Launch System settings, go to Keyboard, click the Text entry hyperlink, add keyboard(s) (Input sources to use), and choose a shortcut, say Ctrl+space or Ctrl+backslash , in the Switch to next source using field. Then you can use the shortcut to quickly switch keyboard.
  10. A terminal window is key for programmers. Click on the Ubuntu icon on the top of the left pane, search for gnome-terminal , right-click its new icon in the left pane and choose Lock to Launcher such that you always have the terminal easily accessible when you log in. The gnome-terminal can have multiple tabs ( Ctrl+shift+t to make a new tab).
Читайте также:  How to make file writable linux

Installing software on Ubuntu

You now have a full Ubuntu machine, but there is not much software on a it. Installation is performed through the Ubuntu Software Center (a graphical application) or through Unix commands, typically

Terminal> sudo apt-get install packagename

To look up the right package name, run apt-cache search followed by typical words of that package. The strength of the apt-get way of installing software is that the package and all packages it depends on are automatically installed through the apt-get install command. This is in a nutshell why Ubuntu (or Debian-based Linux systems) are so user-friendly for installing sophisticated mathematical software.

  • install_minimal.sh : install a minimal collection (recommended)
  • install_rich.sh : install a rich collection (takes time to run)
Terminal> cd ~/Downloads Terminal> bash install_minimal.sh

The program will run for quite some time, hopefully without problems. If it stops, set a comment sign # in front of the line where it stopped and rerun.

File sharing

The Ubuntu machine can see the files on your host system if you download VMWare Tools. Go to the Virtual Machine pull-down menu in VMWare Fusion and choose Install VMWare Tools. A tarfile is downloaded. Click on it and it will open a folder vmware-tools-distrib , normally in your home folder. Move to the new folder and run sudo perl vmware-install.pl . You can go with the default answers to all the questions.

On a Mac, you must open Virtual Machine — Settings. and choose Sharing to bring up a dialog where you can add the folders you want to be visible in Ubuntu. Just choose your home folder. Then turn on the file sharing button (or turn off and on again). Go to Ubuntu and check if you can see all your host system’s files in /mnt/hgfs/ .

Читайте также:  What is linux nfs server

If you later detect that /mnt/hgfs/ folder has become empty, VMWare Tools must be reinstalled by running sudo perl vmware-install.pl as above or

Terminal> sudo /usr/bin/vmware-config-tools.pl

Backup of a VMWare virtual machine on a Mac. The entire Ubuntu machine is a folder on the host computer, typically with a name like Documents/Virtual Machines/Ubuntu 64-bit . Backing up the Ubuntu machine means backing up this folder. However, if you use tools like Time Machine and work in Ubuntu during backup, the copy of the state of the Ubuntu machine is likely to be corrupt. You are therefore strongly recommended to shut down the virtual machine prior to running Time Machine or simply copying the folder with the virtual machine to some backup disk.

If something happens to your virtual machine, it is usually a straightforward task to make a new machine and import data and software automatically from the previous machine.

Troubleshooting

Internet Does not Work in Ubuntu. Invoke the VMWare Fusion menu Virtual Machine — Settings — Network and test Share the Mac’s network connection versus Connect directly to the physical network (Bridged).

Источник

Оцените статью
Adblock
detector