diff --git a/functions/vm.sh b/functions/vm.sh index 67bc067..a4e5c53 100755 --- a/functions/vm.sh +++ b/functions/vm.sh @@ -93,7 +93,7 @@ add_hostonly_adapter_to_vm() { echo "Adding hostonly adapter to $name and bridging with host NIC $nic..." # Add Intel PRO/1000 MT Desktop (82540EM) card to VM. The card is 1Gbps. - VBoxManage modifyvm $name --nic${id} hostonly --hostonlyadapter${id} "$nic" --nictype${id} Am79C973 \ + VBoxManage modifyvm $name --nic${id} hostonly --hostonlyadapter${id} "$nic" --nictype${id} 82540EM \ --cableconnected${id} on --macaddress${id} auto VBoxManage modifyvm $name --nicpromisc${id} allow-all } @@ -105,7 +105,7 @@ add_nat_adapter_to_vm() { echo "Adding NAT adapter to $name for outbound network access through the host system..." # Add Intel PRO/1000 MT Desktop (82540EM) card to VM. The card is 1Gbps. - VBoxManage modifyvm $name --nic${id} nat --nictype${id} Am79C973 \ + VBoxManage modifyvm $name --nic${id} nat --nictype${id} 82540EM \ --cableconnected${id} on --macaddress${id} auto --natnet${id} "${nat_network}" VBoxManage modifyvm $name --nicpromisc${id} allow-all VBoxManage controlvm $name setlinkstate${id} on