VMware Communities
bluerfoot
Contributor
Contributor

new mac user has a few questions about using linux vm's on fusion

Hi, I just bought my first mac (the 2011 air) and want to learn some linux. I would like to do the following:

--- setup 2 vm's one as a server and one as a client and have the machines use static ip addresses so that I can learn networking between them.

My question is...can I create a network using fusion where I can have 2 vm's on the same network using static ip address, but still have access to the "outside world" pretty much meaing the internet? I tried virtualbox and using both bridge and nat the 2 linux vm's could ping outside but could not ping eachother. I tried another (was it called "host only"?) and the machines could then ping eachother without dhcp addresses but I had no connectivity outside (so I could not use yum to get updates etc).

So basically is there a way to setup fusion so I can setup 2 linux vm'a with static ip address, have them ping eachother, and have them access the internet? I was able to do this by default using kvm on a linux laptop that I had, but that laptop died and I decided to go the mac route.

I guess if not I could try linux in bootcamp and then run kvm, but I really don't want to mess up my macbook air especially since linux is not officialy supported in boot camp. I also wonder if any of the above would be made more complicated (if it can be done) by the fact that the macbook air only has wireless ethernet.

Thanks for listening, really appreciate some feedback, before I download and install fusion.

0 Kudos
3 Replies
WoodyZ
Immortal
Immortal

The short answer is, yes, VMware Fusion can do what you've expressed what you want to do. Smiley Wink

0 Kudos
bluerfoot
Contributor
Contributor

how about the medium answer?

Am I barking up the right tree?

mba:VMware Fusion bluerfoot$ cat networking
VERSION=1,0
answer VNET_1_DHCP yes
answer VNET_1_DHCP_CFG_HASH E10F1A96EE9AD718116080EDCD799B7CC828EF5D
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 192.168.93.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_8_DHCP yes
answer VNET_8_DHCP_CFG_HASH C9216B911F865E35A931A04B2EB6506D309A29CB
answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
answer VNET_8_HOSTONLY_SUBNET 192.168.132.0
answer VNET_8_NAT yes
answer VNET_8_VIRTUAL_ADAPTER yes
0 Kudos
a_p_
Leadership
Leadership

I'd suggest you go with NAT.

  • 192.168.132.1 - virtual network adapter (VMnet8) on the host (MAC) - default
  • 192.168.132.2 - default gateway and DNS server address
  • 192.168.132.3 ... 127 - IP range for fixed IP addresses
  • 192.168.132.128 ... 254 - IP range reserved for DHCP

To setup the Linux servers, choose an IP address from the fixed range (subnet mask 255.255.255.0) and set the default gateway as well as the DNS server address in the VM to 192.168.132.2.

André

0 Kudos