Merge "Switch virtualbox script to 82540EM adapter driver"

This commit is contained in:
Jenkins 2015-04-02 08:18:38 +00:00 committed by Gerrit Code Review
commit 8841a977e3
1 changed files with 2 additions and 2 deletions

View File

@ -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