Merge "Switch virtualbox script to 82540EM adapter driver"
This commit is contained in:
commit
8841a977e3
|
@ -93,7 +93,7 @@ add_hostonly_adapter_to_vm() {
|
||||||
echo "Adding hostonly adapter to $name and bridging with host NIC $nic..."
|
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.
|
# 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
|
--cableconnected${id} on --macaddress${id} auto
|
||||||
VBoxManage modifyvm $name --nicpromisc${id} allow-all
|
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..."
|
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.
|
# 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}"
|
--cableconnected${id} on --macaddress${id} auto --natnet${id} "${nat_network}"
|
||||||
VBoxManage modifyvm $name --nicpromisc${id} allow-all
|
VBoxManage modifyvm $name --nicpromisc${id} allow-all
|
||||||
VBoxManage controlvm $name setlinkstate${id} on
|
VBoxManage controlvm $name setlinkstate${id} on
|
||||||
|
|
Loading…
Reference in New Issue