Difference between revisions of "Using real network device"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Very important warning)
 
Line 6: Line 6:
 
replace <VEID> with container ID and <network_device> with your physical network device you want to use, such as eth0
 
replace <VEID> with container ID and <network_device> with your physical network device you want to use, such as eth0
  
WARNING: don't try this command in remote mode, if you are trying it at the first time! You can lose remote access due to strange logic of mapping: this method fully removes given ethernet device from host system! So, didn't give to a guest system your primary uplink interface.
+
WARNING: don't try this command in remote mode, if you are trying it at the first time! You can lose remote access due to strange logic of mapping: this method fully removes given ethernet device from host system! So, don't give to a guest system your primary uplink interface.
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]
 
[[Category: Networking]]
 
[[Category: Networking]]

Latest revision as of 00:28, 18 June 2010

If you want to use a physical device in your VE, you can use this simple command:

# vzctl set <VEID> --netdev_add <network_device>

replace <VEID> with container ID and <network_device> with your physical network device you want to use, such as eth0

WARNING: don't try this command in remote mode, if you are trying it at the first time! You can lose remote access due to strange logic of mapping: this method fully removes given ethernet device from host system! So, don't give to a guest system your primary uplink interface.